Skip to contentSkip to conversation

nds32: mmc: Support mmc DM.

PATCH New Andes 1 participant 1 message Dec 2, 2016

lore
Share & tools
lore

Andes

author
#0 lore raw

PATCH 2/3 nds32: mmc: Support mmc DM.

From: rick <[email protected]>

Enable mmc DM flow as default for ag101p board.

c: Andes <[email protected]>

---
 board/AndesTech/adp-ag101p/adp-ag101p.c |    2 ++
 configs/adp-ag101p_defconfig            |    4 ++++
 2 files changed, 6 insertions(+)
board/AndesTech/adp-ag101p/adp-ag101p.c +2 -0
index 84c77f7..dbeb662 100644
@@ -76,6 +76,8 @@ ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info)
 
 int board_mmc_init(bd_t *bis)
 {
+#ifndef CONFIG_DM_MMC
 	ftsdc010_mmc_init(0);
+#endif
 	return 0;
 }
configs/adp-ag101p_defconfig +4 -0
index 8c2fc0b..f22a85b 100644
@@ -12,6 +12,10 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_FAT=y
 CONFIG_OF_CONTROL=y
 CONFIG_DM=y
+CONFIG_BLK=y
+CONFIG_DM_MMC=y
+CONFIG_DM_MMC_OPS=y
+CONFIG_NDS32_MMC=y
 CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
 CONFIG_TIMER=y
Signature · 1 line
1.7.9.5