diff options
author | wdenk <wdenk> | 2004-10-11 22:51:13 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-10-11 22:51:13 +0000 |
commit | d407bf52b5dfb96816969c126f14b35df1f233ae (patch) | |
tree | aa50256e0a1f8a949e690e3e6db0f9cbcba81d09 /include/configs | |
parent | 2ee665339b06285a5fd9e36410d1167efc9b0606 (diff) | |
download | u-boot-imx-d407bf52b5dfb96816969c126f14b35df1f233ae.zip u-boot-imx-d407bf52b5dfb96816969c126f14b35df1f233ae.tar.gz u-boot-imx-d407bf52b5dfb96816969c126f14b35df1f233ae.tar.bz2 |
* Patch by Philippe Robin, 28 Sept 2004:
Fix Flash support for Versatile.
* Patch by Roger Blofeld, 16 Sep 2004:
Fix timeout for DHCP command retry
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/versatile.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/configs/versatile.h b/include/configs/versatile.h index 49d7251..16db43b 100644 --- a/include/configs/versatile.h +++ b/include/configs/versatile.h @@ -96,7 +96,7 @@ #define CFG_SERIAL0 0x101F1000 #define CFG_SERIAL1 0x101F2000 -#define CONFIG_COMMANDS (CFG_CMD_DHCP | CFG_CMD_IMI | CFG_CMD_NET | CFG_CMD_PING | CFG_CMD_BDI | CFG_CMD_MEMORY) +#define CONFIG_COMMANDS (CFG_CMD_DHCP | CFG_CMD_IMI | CFG_CMD_NET | CFG_CMD_PING | CFG_CMD_BDI | CFG_CMD_MEMORY | CFG_CMD_FLASH | CFG_CMD_ENV) /*#define CONFIG_COMMANDS (CFG_CMD_IMI | CFG_CMD_BDI | CFG_CMD_MEMORY) */ @@ -155,15 +155,25 @@ /*----------------------------------------------------------------------- * FLASH and environment organization */ -#define CFG_ENV_IS_NOWHERE + +#define VERSATILE_SYS_BASE 0x10000000 +#define VERSATILE_SYS_FLASH_OFFSET 0x4C +#define VERSATILE_FLASHCTRL (VERSATILE_SYS_BASE + VERSATILE_SYS_FLASH_OFFSET) +#define VERSATILE_FLASHPROG_FLVPPEN (1 << 0) /* Enable writing to flash */ + #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */ #define PHYS_FLASH_SIZE 0x34000000 /* 64MB */ /* timeout values are in ticks */ #define CFG_FLASH_ERASE_TOUT (20*CFG_HZ) /* Timeout for Flash Erase */ #define CFG_FLASH_WRITE_TOUT (20*CFG_HZ) /* Timeout for Flash Write */ -#define CFG_MAX_FLASH_SECT 128 -#define CFG_ENV_SIZE 32768 +#define CFG_MAX_FLASH_SECT (256) #define PHYS_FLASH_1 (CFG_FLASH_BASE) +#define CFG_ENV_IS_IN_FLASH 1 /* env in flash instead of CFG_ENV_IS_NOWHERE */ +#define CFG_ENV_SECT_SIZE 0x00020000 /* 256 KB sectors (x2) */ +#define CFG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */ +#define CFG_ENV_OFFSET 0x01f00000 /* environment starts here */ +#define CFG_ENV_ADDR (CFG_FLASH_BASE + CFG_ENV_OFFSET) + #endif /* __CONFIG_H */ |