]> git.sur5r.net Git - u-boot/commitdiff
ARM: atmel: sama5d3xek: enable NOR flash support
authorBo Shen <voice.shen@atmel.com>
Fri, 18 Jul 2014 08:43:08 +0000 (16:43 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Thu, 18 Sep 2014 22:11:16 +0000 (00:11 +0200)
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
include/configs/sama5d3xek.h

index 56c2454dff2ec1f33f94b49381a70ce6e9d0c6e4..0104d5f90a9bdc24ab2a9088bc9e255386cd43a5 100644 (file)
 #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.