summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-06-03 16:44:18 +0800
committerYe.Li <B37916@freescale.com>2014-06-17 11:13:40 +0800
commit0d1d042ec0016e40d3a2dbd35278b1456f04c9cb (patch)
tree97fb1fa1321a00a3e4a3370ea1c10b774235600a /include/configs
parent249f3d675ff804a015563abcdecbc98a62cc4927 (diff)
downloadu-boot-imx-0d1d042ec0016e40d3a2dbd35278b1456f04c9cb.zip
u-boot-imx-0d1d042ec0016e40d3a2dbd35278b1456f04c9cb.tar.gz
u-boot-imx-0d1d042ec0016e40d3a2dbd35278b1456f04c9cb.tar.bz2
ENGR00315894-9 i.mx6q/dl/solo:sabreauto: Add the WEIM-NOR support
Add the WEIM-NOR support Signed-off-by: Jason Liu <r64343@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx6sabre_common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h
index 128502e..125026a 100644
--- a/include/configs/mx6sabre_common.h
+++ b/include/configs/mx6sabre_common.h
@@ -266,6 +266,9 @@
#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
@@ -280,6 +283,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)
@@ -289,6 +305,11 @@
#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