From: Andes Date: Fri, 2 Dec 2016 14:49:54 +0800 Subject: [U-Boot] [PATCH 2/3] nds32: mmc: Support mmc DM. Message-ID: <1480661394-14303-1-git-send-email-uboot@andestech.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: rick Enable mmc DM flow as default for ag101p board. Signed-off-by: rick c: Andes --- 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