diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-04-23 00:11:47 +0900 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-25 00:05:09 +0200 |
commit | b4aff1ffaf7120032c653357c007faa14f74d29d (patch) | |
tree | da1704499e797921b7e31df1ce4980e0759a1490 /include/configs/qemu-mips.h | |
parent | 4a1f11b45a82908e5b0df602d703082413a6b7ed (diff) | |
download | u-boot-imx-b4aff1ffaf7120032c653357c007faa14f74d29d.zip u-boot-imx-b4aff1ffaf7120032c653357c007faa14f74d29d.tar.gz u-boot-imx-b4aff1ffaf7120032c653357c007faa14f74d29d.tar.bz2 |
qemu-mips.h: Add CFI support
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>
Diffstat (limited to 'include/configs/qemu-mips.h')
-rw-r--r-- | 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 931eccc..d6bcc8e 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 |