exynos5420: configure SD_0_CDn as VDDEN for eMMC

On Exynos5420 the MMC channel 0 is connected to eMMC
Which does not have a card detection pin. Also this pin
is connected as VDDEN to PMIC.

This is ported from https://gerrit.chromium.org/gerrit/#/c/60732/

Signed-off-by: David Hendricks <dhendrix@chromium.org>

Change-Id: I19048d22b7dd00df1716b6b5b332a7eb70fe0836
Reviewed-on: https://gerrit.chromium.org/gerrit/65247
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/4445
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
David Hendricks 2013-08-08 14:51:07 -07:00 committed by Patrick Georgi
parent 93951f4ed8
commit b9f267ce23

View file

@ -81,7 +81,14 @@ static void exynos_pinmux_sdmmc(int start, int start_ext)
void exynos_pinmux_sdmmc0(void) void exynos_pinmux_sdmmc0(void)
{ {
exynos_pinmux_sdmmc(GPIO_C00, GPIO_C30); exynos_pinmux_sdmmc(GPIO_C00, GPIO_C30);
gpio_set_pull(GPIO_C02, GPIO_PULL_UP); /*
* MMC0 is intended to be used for eMMC. The card detect pin is used
* as a VDDEN signal to power on the eMMC. The 5420 iROM makes this
* same assumption.
*/
gpio_set_pull(GPIO_C02, GPIO_PULL_NONE);
gpio_cfg_pin(GPIO_C02, GPIO_OUTPUT);
gpio_set_value(GPIO_C02, 1);
} }
void exynos_pinmux_sdmmc1(void) void exynos_pinmux_sdmmc1(void)