diff options
author | Jason Liu <r64343@freescale.com> | 2013-05-17 16:51:02 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2013-05-21 13:28:03 +0800 |
commit | 7a63e23d7e9d82c077c56e8d52ef554325fa6630 (patch) | |
tree | cc698995cadfe9d5595736cd98c3e5d959da78f0 /include | |
parent | 20f5f1f8f166731f3cfc9f1e6e24e732ccacfa97 (diff) | |
download | u-boot-imx-7a63e23d7e9d82c077c56e8d52ef554325fa6630.zip u-boot-imx-7a63e23d7e9d82c077c56e8d52ef554325fa6630.tar.gz u-boot-imx-7a63e23d7e9d82c077c56e8d52ef554325fa6630.tar.bz2 |
ENGR00263305-9 i.mx6q/dl/solo:sabreauto: Add the WEIM-NOR support
Add the WEIM-NOR support
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6qsabre_common.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/configs/mx6qsabre_common.h b/include/configs/mx6qsabre_common.h index 2338667..a787c94 100644 --- a/include/configs/mx6qsabre_common.h +++ b/include/configs/mx6qsabre_common.h @@ -202,9 +202,16 @@ #define CONFIG_ENV_SIZE (8 * 1024) +#ifndef CONFIG_SYS_NOSMP +#define CONFIG_SYS_NOSMP +#endif + #if defined CONFIG_SYS_BOOT_SPINOR #define CONFIG_SYS_USE_SPINOR #define CONFIG_ENV_IS_IN_SPI_FLASH +#elif defined CONFIG_SYS_BOOT_EIMNOR +#define CONFIG_SYS_USE_EIMNOR +#define CONFIG_ENV_IS_IN_FLASH #else #define CONFIG_ENV_IS_IN_MMC #endif @@ -219,6 +226,19 @@ #define CONFIG_SF_DEFAULT_MODE (SPI_MODE_0) #endif +#ifdef CONFIG_SYS_USE_EIMNOR +#undef CONFIG_SYS_NO_FLASH +#define CONFIG_SYS_FLASH_BASE WEIM_ARB_BASE_ADDR +#define CONFIG_SYS_FLASH_SECT_SIZE (128 * 1024) +#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ +#define CONFIG_SYS_MAX_FLASH_SECT 256 /* max number of sectors on one chip */ +#define CONFIG_SYS_FLASH_CFI /* Flash memory is CFI compliant */ +#define CONFIG_FLASH_CFI_DRIVER /* Use drivers/cfi_flash.c */ +#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* Use buffered writes*/ +#define CONFIG_SYS_FLASH_EMPTY_INFO +#define CONFIG_SYS_FLASH_PROTECTION +#endif + #if defined(CONFIG_ENV_IS_IN_MMC) #define CONFIG_ENV_OFFSET (6 * 64 * 1024) #elif defined(CONFIG_ENV_IS_IN_SPI_FLASH) @@ -228,6 +248,12 @@ #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED +#elif defined(CONFIG_ENV_IS_IN_FLASH) +#undef CONFIG_ENV_SIZE +#define CONFIG_ENV_SIZE CONFIG_SYS_FLASH_SECT_SIZE +#define CONFIG_ENV_SECT_SIZE CONFIG_SYS_FLASH_SECT_SIZE +#define CONFIG_ENV_OFFSET (4 * CONFIG_SYS_FLASH_SECT_SIZE) + #endif #define CONFIG_OF_LIBFDT |