summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-06-24 11:20:03 +0800
committerYe.Li <B37916@freescale.com>2014-06-25 18:57:14 +0800
commit115ec908f5f4425aabcd26071212fa48073890c3 (patch)
treea44a16f8424afa2e35867d10b7de50bbfb41d466 /include
parent8b8630ada916304bbc5612acf76d81d981c0365b (diff)
downloadu-boot-imx-115ec908f5f4425aabcd26071212fa48073890c3.zip
u-boot-imx-115ec908f5f4425aabcd26071212fa48073890c3.tar.gz
u-boot-imx-115ec908f5f4425aabcd26071212fa48073890c3.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> (cherry picked from commit da0e5e9e12c79a250002c1b442e25f93603f9695)
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx6sx_17x17_arm2.h9
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