]> git.sur5r.net Git - u-boot/commitdiff
nios2: use cfi flash driver model
authorThomas Chou <thomas@wytron.com.tw>
Wed, 28 Oct 2015 07:10:39 +0000 (15:10 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Thu, 12 Nov 2015 00:26:58 +0000 (08:26 +0800)
Use cfi flash driver model.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
configs/nios2-generic_defconfig
include/configs/nios2-generic.h

index e42a15ea7e8532716ab4532e459f22750e4b029c..0a6de6fffbdcd51bfeb4cb4024f90e08b66db22e 100644 (file)
@@ -17,6 +17,8 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_ALTERA_PIO=y
 CONFIG_MISC=y
 CONFIG_ALTERA_SYSID=y
+CONFIG_MTD=y
+CONFIG_CFI_FLASH=y
 CONFIG_DM_ETH=y
 CONFIG_ALTERA_TSE=y
 CONFIG_ALTERA_JTAG_UART=y
index dbd39d6a58c120894b31ecd09ee1377e7e0c8c8a..4569de8a96c5b6df7025f475c9f16797cbf20719 100644 (file)
 /*
  * CFI Flash
  */
-#define CONFIG_SYS_FLASH_BASE          0xe0000000
 #define CONFIG_FLASH_CFI_DRIVER
 #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */
 #define CONFIG_SYS_FLASH_CFI
 #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 #define CONFIG_SYS_FLASH_PROTECTION
-#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT      1
 #define CONFIG_SYS_MAX_FLASH_SECT      512
 
 /*