Merge branch 'buildman' of git://git.denx.de/u-boot-x86
[oweals/u-boot.git] / arch / arm / cpu / armv7 / exynos / pinmux.c
index 86a0c75326730bffe70d8112955d222552ef5a38..94d02970516e9efce5065852bf73182647dfd9de 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
-#include <asm/arch/gpio.h>
+#include <asm/gpio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/sromc.h>
 
@@ -172,6 +172,9 @@ static int exynos5420_mmc_config(int peripheral, int flags)
                 * this same assumption.
                 */
                if ((peripheral == PERIPH_ID_SDMMC0) && (i == (start + 2))) {
+#ifndef CONFIG_SPL_BUILD
+                       gpio_request(i, "sdmmc0_vdden");
+#endif
                        gpio_set_value(i, 1);
                        gpio_cfg_pin(i, S5P_GPIO_OUTPUT);
                } else {
@@ -704,8 +707,8 @@ static int exynos4x12_mmc_config(int peripheral, int flags)
                ext_func = S5P_GPIO_FUNC(0x3);
                break;
        case PERIPH_ID_SDMMC4:
-               start = EXYNOS4_GPIO_K00;
-               start_ext = EXYNOS4_GPIO_K13;
+               start = EXYNOS4X12_GPIO_K00;
+               start_ext = EXYNOS4X12_GPIO_K13;
                func = S5P_GPIO_FUNC(0x3);
                ext_func = S5P_GPIO_FUNC(0x4);
                break;
@@ -834,7 +837,7 @@ static int exynos4x12_pinmux_config(int peripheral, int flags)
 int exynos_pinmux_config(int peripheral, int flags)
 {
        if (cpu_is_exynos5()) {
-               if (proid_is_exynos5420())
+               if (proid_is_exynos5420() || proid_is_exynos5800())
                        return exynos5420_pinmux_config(peripheral, flags);
                else if (proid_is_exynos5250())
                        return exynos5_pinmux_config(peripheral, flags);