]> git.sur5r.net Git - u-boot/commitdiff
nds32: board: Support ftsdc010 DM.
authorRick Chen <rick@andestech.com>
Mon, 28 Aug 2017 08:17:13 +0000 (16:17 +0800)
committerRick Chen <rickchen36@gmail.com>
Thu, 30 Nov 2017 02:04:25 +0000 (10:04 +0800)
AG101P/AE3XX enable ftsdc010 dm flow.

Signed-off-by: Rick Chen <rick@andestech.com>
board/AndesTech/adp-ag101p/adp-ag101p.c
configs/adp-ae3xx_defconfig
configs/adp-ag101p_defconfig
include/configs/adp-ae3xx.h
include/configs/adp-ag101p.h

index 79608f4efe861e9fceedfc050e0965a0f7acacf1..f918c630c1720669f7564e7ca535012558663422 100644 (file)
@@ -85,8 +85,10 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
 
 int board_mmc_init(bd_t *bis)
 {
+#ifndef CONFIG_DM_MMC
 #ifdef CONFIG_FTSDC010
        ftsdc010_mmc_init(0);
+#endif
 #endif
        return 0;
 }
index 38696e6f4085acef0d65e635332c6f95cd9064f9..600566955a3fbf225c51b57aa0db3a79950f4bb1 100644 (file)
@@ -27,6 +27,9 @@ CONFIG_CFI_FLASH=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_DM_MMC=y
+CONFIG_MMC_NDS32=y
+CONFIG_FTSDC010=y
 CONFIG_DM_ETH=y
 CONFIG_FTMAC100=y
 CONFIG_BAUDRATE=38400
index 5cf2d265525a592a4ee30b2d81a4556344ac1efb..82cf7f2481eefdae1baea99b061fabeb728f3d3f 100644 (file)
@@ -18,6 +18,9 @@ CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
 CONFIG_MMC=y
+CONFIG_DM_MMC=y
+CONFIG_MMC_NDS32=y
+CONFIG_FTSDC010=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_DM_ETH=y
 CONFIG_FTMAC100=y
index 69460293330f9fbc8764ce4a2b06d02a510a67c3..5644a6153bc7b745e886a276a738d14c6bd8fad3 100644 (file)
@@ -91,7 +91,6 @@
 /*
  * SD (MMC) controller
  */
-#define CONFIG_FTSDC010
 #define CONFIG_FTSDC010_NUMBER         1
 #define CONFIG_FTSDC010_SDIO
 
index fad4d308e036463379383016b9170c129e6ce3c6..f2de3846313b7274faf2e8c6e2722bdf66fc6473 100644 (file)
@@ -97,7 +97,6 @@
 /*
  * SD (MMC) controller
  */
-#define CONFIG_FTSDC010
 #define CONFIG_FTSDC010_NUMBER         1
 #define CONFIG_FTSDC010_SDIO