From: Simon Glass Date: Wed, 11 Jan 2012 12:42:28 +0000 (+0000) Subject: tegra: Use funcmux for MMC on seaboard X-Git-Tag: u-boot_fixes_v1~181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca28090d2114eba17fb30579a69691d2b3aadf74;p=kernel%2Fu-boot.git tegra: Use funcmux for MMC on seaboard Use the new funcmux_select() feature to set up the MMC pin mux. Signed-off-by: Simon Glass Signed-off-by: Tom Warren --- diff --git a/board/nvidia/seaboard/seaboard.c b/board/nvidia/seaboard/seaboard.c index 56acd61..9ab6825 100644 --- a/board/nvidia/seaboard/seaboard.c +++ b/board/nvidia/seaboard/seaboard.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include #include #include @@ -59,23 +61,8 @@ void gpio_config_uart(void) */ static void pin_mux_mmc(void) { - /* SDMMC4: config 3, x8 on 2nd set of pins */ - pinmux_set_func(PINGRP_ATB, PMUX_FUNC_SDIO4); - pinmux_set_func(PINGRP_GMA, PMUX_FUNC_SDIO4); - pinmux_set_func(PINGRP_GME, PMUX_FUNC_SDIO4); - - pinmux_tristate_disable(PINGRP_ATB); - pinmux_tristate_disable(PINGRP_GMA); - pinmux_tristate_disable(PINGRP_GME); - - /* SDMMC3: SDIO3_CLK, SDIO3_CMD, SDIO3_DAT[3:0] */ - pinmux_set_func(PINGRP_SDB, PMUX_FUNC_SDIO3); - pinmux_set_func(PINGRP_SDC, PMUX_FUNC_SDIO3); - pinmux_set_func(PINGRP_SDD, PMUX_FUNC_SDIO3); - - pinmux_tristate_disable(PINGRP_SDC); - pinmux_tristate_disable(PINGRP_SDD); - pinmux_tristate_disable(PINGRP_SDB); + funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT); + funcmux_select(PERIPH_ID_SDMMC3, FUNCMUX_SDMMC3_SDB_4BIT); /* For power GPIO PI6 */ pinmux_tristate_disable(PINGRP_ATA);