public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 2/2][MIPS] qemu-mips.h: Add CFI support
Date: Wed, 23 Apr 2008 00:11:47 +0900	[thread overview]
Message-ID: <480E0033.9030307@ruby.dti.ne.jp> (raw)
In-Reply-To: <1208798540-22251-2-git-send-email-plagnioj@jcrosoft.com>

From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

CONFIG_ENV_OVERWRITE is also added.

This patch is originally created by Jean-Christophe PLAGNIOL-VILLARD.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
---

 include/configs/qemu-mips.h |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)


diff --git a/include/configs/qemu-mips.h b/include/configs/qemu-mips.h
index be00356..46bfee7 100644
--- a/include/configs/qemu-mips.h
+++ b/include/configs/qemu-mips.h
@@ -72,8 +72,6 @@
 #define CONFIG_CMD_ELF
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_EXT2
-#undef CONFIG_CMD_IMLS
-#undef CONFIG_CMD_FLASH
 #undef CONFIG_CMD_LOADB
 #undef CONFIG_CMD_LOADS
 #define CONFIG_CMD_DHCP
@@ -81,7 +79,6 @@
 #define CONFIG_DRIVER_NE2000
 #define CONFIG_DRIVER_NE2000_BASE	(0xb4000300)
 
-#define CFG_NO_FLASH
 #define CFG_NS16550
 #define CFG_NS16550_SERIAL
 #define CFG_NS16550_REG_SIZE	1
@@ -144,11 +141,19 @@
 
 /* We boot from this flash, selected with dip switch */
 #define CFG_FLASH_BASE		0xbfc00000
+#define CFG_MAX_FLASH_BANKS	1
+#define CFG_MAX_FLASH_SECT	128
+#define CFG_FLASH_CFI		1	/* Flash memory is CFI compliant */
+#define CFG_FLASH_CFI_DRIVER	1
+#define CFG_FLASH_USE_BUFFER_WRITE	1
 
-#define CFG_ENV_IS_NOWHERE	1
+#define CFG_ENV_IS_IN_FLASH	1
+#define CFG_ENV_ADDR		(CFG_FLASH_BASE + 0x40000)
 
 /* Address and size of Primary Environment Sector */
-#define CFG_ENV_SIZE		0x10000
+#define CFG_ENV_SIZE		0x8000
+
+#define CONFIG_ENV_OVERWRITE	1
 
 #undef CONFIG_NET_MULTI
 

  parent reply	other threads:[~2008-04-22 15:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-21 17:22 [U-Boot-Users] [PATCH 0/2] NE2000: Fix regresssion introduced by e710185aae90 on non AX88796 Jean-Christophe PLAGNIOL-VILLARD
2008-04-21 17:22 ` [U-Boot-Users] [PATCH 1/2] qemu-mips: add CFI support and coding style cleanup Jean-Christophe PLAGNIOL-VILLARD
2008-04-21 17:22   ` [U-Boot-Users] [PATCH 2/2] qemu-mips: add full functionnalty and support of CONFIG_SMALLEST Jean-Christophe PLAGNIOL-VILLARD
2008-04-21 17:48     ` [U-Boot-Users] [PATCH 2/2 V2] " Jean-Christophe PLAGNIOL-VILLARD
2008-04-21 19:26       ` Wolfgang Denk
2008-04-22  6:26         ` Jean-Christophe PLAGNIOL-VILLARD
2008-04-22 10:01           ` Wolfgang Denk
2008-04-22  7:26         ` Shinya Kuribayashi
2008-04-22  7:38           ` Shinya Kuribayashi
2008-04-22 15:10   ` [U-Boot-Users] [PATCH 1/2][MIPS] qemu-mips: Cleanup whiespaces, tab indentations, etc Shinya Kuribayashi
2008-04-22 15:32     ` Wolfgang Denk
2008-04-22 15:35       ` Shinya Kuribayashi
2008-04-22 20:50       ` Jean-Christophe PLAGNIOL-VILLARD
2008-04-23  2:02         ` Shinya Kuribayashi
2008-04-25  7:16           ` Wolfgang Denk
2008-04-22 15:11   ` Shinya Kuribayashi [this message]
2008-04-25  7:16     ` [U-Boot-Users] [PATCH 2/2][MIPS] qemu-mips.h: Add CFI support Wolfgang Denk
2008-04-21 19:24 ` [U-Boot-Users] [PATCH 0/2] NE2000: Fix regresssion introduced by e710185aae90 on non AX88796 Wolfgang Denk
2008-04-22  6:28   ` Jean-Christophe PLAGNIOL-VILLARD
2008-04-22 10:02     ` Wolfgang Denk
     [not found]       ` <1209015794-9805-1-git-send-email-plagnioj@jcrosoft.com>
2008-04-24  5:43         ` [U-Boot-Users] [PATCH 1/1] " Jean-Christophe PLAGNIOL-VILLARD
2008-04-24  5:57           ` [U-Boot-Users] [PATCH 0/1 V2] NE2000: coding style cleanup Jean-Christophe PLAGNIOL-VILLARD
2008-04-24  5:57             ` [U-Boot-Users] [PATCH 1/1 V2] NE2000: Fix regresssion introduced by e710185aae90 on non AX88796 Jean-Christophe PLAGNIOL-VILLARD
2008-04-25  7:16             ` [U-Boot-Users] [PATCH 0/1 V2] NE2000: coding style cleanup Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=480E0033.9030307@ruby.dti.ne.jp \
    --to=skuribay@ruby.dti.ne.jp \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox