summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-08-08 14:51:07 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2013-12-21 22:46:01 +0100
commitb9f267ce231635029d37d42d31702ab979784da5 (patch)
treec791d4cb8c3fec31361fac6e7104b2c91c6073b6
parent93951f4ed8b15c7140961a24d7fa756e3ec204ff (diff)
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>
-rw-r--r--src/cpu/samsung/exynos5420/pinmux.c9
1 files changed, 8 insertions, 1 deletions
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)