[U-Boot] [PATCH v2 2/2] ARM: atmel: sama5d3xek: enable NOR flash support

Bo Shen voice.shen at atmel.com
Fri Jul 18 10:43:08 CEST 2014


Signed-off-by: Bo Shen <voice.shen at atmel.com>
---
Changes in v2:
  - Add CONFIG_SYS_FLASH_PROTECTION
  - Correct the max sector number

 include/configs/sama5d3xek.h | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/include/configs/sama5d3xek.h b/include/configs/sama5d3xek.h
index da27180..844416f 100644
--- a/include/configs/sama5d3xek.h
+++ b/include/configs/sama5d3xek.h
@@ -79,8 +79,19 @@
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/* No NOR flash */
+/* NOR flash */
+#define CONFIG_CMD_FLASH
+
+#ifdef CONFIG_CMD_FLASH
+#define CONFIG_FLASH_CFI_DRIVER
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_BASE		0x10000000
+#define CONFIG_SYS_MAX_FLASH_SECT	131
+#define CONFIG_SYS_MAX_FLASH_BANKS	1
+#else
 #define CONFIG_SYS_NO_FLASH
+#endif
 
 /*
  * Command line configuration.
-- 
1.8.5.2



More information about the U-Boot mailing list