All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 2/3] nds32: mmc: Support mmc DM.
@ 2016-12-02  6:49 Andes
  0 siblings, 0 replies; only message in thread
From: Andes @ 2016-12-02  6:49 UTC (permalink / raw)
  To: u-boot

From: rick <rick@andestech.com>

Enable mmc DM flow as default for ag101p board.

Signed-off-by: rick <rick@andestech.com>
c: Andes <uboot@andestech.com>
---
 board/AndesTech/adp-ag101p/adp-ag101p.c |    2 ++
 configs/adp-ag101p_defconfig            |    4 ++++
 2 files changed, 6 insertions(+)

diff --git a/board/AndesTech/adp-ag101p/adp-ag101p.c b/board/AndesTech/adp-ag101p/adp-ag101p.c
index 84c77f7..dbeb662 100644
--- a/board/AndesTech/adp-ag101p/adp-ag101p.c
+++ b/board/AndesTech/adp-ag101p/adp-ag101p.c
@@ -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;
 }
diff --git a/configs/adp-ag101p_defconfig b/configs/adp-ag101p_defconfig
index 8c2fc0b..f22a85b 100644
--- a/configs/adp-ag101p_defconfig
+++ b/configs/adp-ag101p_defconfig
@@ -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
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-02  6:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02  6:49 [U-Boot] [PATCH 2/3] nds32: mmc: Support mmc DM Andes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.