diff options
author | Sudhakar Rajashekhara <sudhakar.raj@ti.com> | 2010-01-20 13:58:48 +0530 |
---|---|---|
committer | Sudhakar Rajashekhara <sudhakar.raj@ti.com> | 2010-01-20 13:58:48 +0530 |
commit | 652a0e7a3e86a6b525eb517d16009bf0ab73b0ed (patch) | |
tree | 7babe063b6592454de614a2166c34aeb48c4d9f8 /include | |
parent | 19f9aac5aead520631a8495885d5cb3f9af35b86 (diff) |
da850: Add support for NOR boot mode
Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/da850evm.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h index 067b783d89..dc4e7377cf 100644 --- a/include/configs/da850evm.h +++ b/include/configs/da850evm.h @@ -29,6 +29,7 @@ */ #define CONFIG_USE_SPIFLASH #undef CONFIG_USE_NAND +#undef CONFIG_SYS_USE_NOR /* * SoC Configuration @@ -131,19 +132,19 @@ #define DEF_BOOTM "" #endif -#ifdef CONFIG_USE_NOR +#ifdef CONFIG_SYS_USE_NOR #define CONFIG_ENV_IS_IN_FLASH #undef CONFIG_SYS_NO_FLASH -#define CONFIG_SYS_FLASH_CFI_DRIVER +#define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_FLASH_CFI +#define CONFIG_SYS_FLASH_PROTECTION #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of flash banks */ -#define CONFIG_SYS_FLASH_SECT_SZ (64 << 10) /* 64KB */ -#define CONFIG_ENV_OFFSET (CONFIG_SYS_FLASH_SECT_SZ*3) +#define CONFIG_SYS_FLASH_SECT_SZ (128 << 10) /* 128KB */ +#define CONFIG_ENV_OFFSET (CONFIG_SYS_FLASH_SECT_SZ * 3) #define CONFIG_SYS_FLASH_BASE DAVINCI_ASYNC_EMIF_DATA_CE2_BASE -#define PHYS_FLASH_SIZE (32 << 20) /* Flash size 32MB */ -#define CONFIG_SYS_MAX_FLASH_SECT (PHYS_FLASH_SIZE/CONFIG_SYS_FLASH_SECT_SZ) +#define PHYS_FLASH_SIZE (8 << 20) /* Flash size 8MB */ +#define CONFIG_SYS_MAX_FLASH_SECT (PHYS_FLASH_SIZE/CONFIG_SYS_FLASH_SECT_SZ) + 3 #define CONFIG_ENV_SECT_SIZE CONFIG_SYS_FLASH_SECT_SZ -#define CONFIG_SYS_FLASH_SPL_ACCESS #endif #ifdef CONFIG_USE_SPIFLASH @@ -227,7 +228,7 @@ #endif #if !defined(CONFIG_USE_NAND) && \ - !defined(CONFIG_USE_NOR) && \ + !defined(CONFIG_SYS_USE_NOR) && \ !defined(CONFIG_USE_SPIFLASH) #define CONFIG_ENV_IS_NOWHERE #define CONFIG_SYS_NO_FLASH |