From b9f267ce231635029d37d42d31702ab979784da5 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Thu, 8 Aug 2013 14:51:07 -0700 Subject: 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 Change-Id: I19048d22b7dd00df1716b6b5b332a7eb70fe0836 Reviewed-on: https://gerrit.chromium.org/gerrit/65247 Reviewed-by: Gabe Black Commit-Queue: David Hendricks Tested-by: David Hendricks Reviewed-on: http://review.coreboot.org/4445 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/cpu/samsung/exynos5420/pinmux.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/cpu/samsung') diff --git a/src/cpu/samsung/exynos5420/pinmux.c b/src/cpu/samsung/exynos5420/pinmux.c index 843a6db723..573cdb679c 100644 --- a/src/cpu/samsung/exynos5420/pinmux.c +++ b/src/cpu/samsung/exynos5420/pinmux.c @@ -81,7 +81,14 @@ static void exynos_pinmux_sdmmc(int start, int start_ext) void exynos_pinmux_sdmmc0(void) { 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) -- cgit v1.2.3