diff options
author | Ye.Li <B37916@freescale.com> | 2014-06-24 11:20:03 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2014-06-25 18:54:02 +0800 |
commit | da0e5e9e12c79a250002c1b442e25f93603f9695 (patch) | |
tree | a44a16f8424afa2e35867d10b7de50bbfb41d466 /include | |
parent | acaff11da33f8f0cb1521d3c48e64e7ed9a87bec (diff) | |
download | u-boot-imx-da0e5e9e12c79a250002c1b442e25f93603f9695.zip u-boot-imx-da0e5e9e12c79a250002c1b442e25f93603f9695.tar.gz u-boot-imx-da0e5e9e12c79a250002c1b442e25f93603f9695.tar.bz2 |
ENGR00319772 iMX6SX:ARM2: Add EIM-NOR support for 17x17 ARM2 board
The NOR flash PC28F00AG18 has 512 of 256KB erase blocks which are
locked after power on reset. Change the 17x17 ARM2 configurations
to match the flash parameters, and enable the CONFIG_SYS_FLASH_PROTECTION
to allow write to the flash.
The EIM-NOR on 17x17 ARM2 board uses MUXed mode. This has less
effort on board rework.
When boot from EIM-NOR, set SW8, SW7, SW5 to all off.
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6sx_17x17_arm2.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/mx6sx_17x17_arm2.h b/include/configs/mx6sx_17x17_arm2.h index e5bae55..9db44cf 100644 --- a/include/configs/mx6sx_17x17_arm2.h +++ b/include/configs/mx6sx_17x17_arm2.h @@ -20,4 +20,13 @@ #define CONFIG_SYS_MMC_ENV_DEV 1 #define CONFIG_SYS_MMC_ENV_PART 0 /* user area */ #endif + +#ifdef CONFIG_SYS_USE_EIMNOR +#undef CONFIG_SYS_FLASH_SECT_SIZE +#undef CONFIG_SYS_MAX_FLASH_SECT +#define CONFIG_SYS_FLASH_SECT_SIZE (256 * 1024) +#define CONFIG_SYS_MAX_FLASH_SECT 512 /* max number of sectors on one chip */ +#define CONFIG_SYS_FLASH_PROTECTION +#endif + #endif |