summaryrefslogtreecommitdiff
path: root/arch/arm/mach-exynos/pinmux.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-14 14:18:47 -0500
committerTom Rini <trini@konsulko.com>2018-12-14 14:18:47 -0500
commit8fc26fce41592175ae004514e431e68a9dd60671 (patch)
tree9d4f5d9b057a749742e9dcead3cfa41c4ddae5ea /arch/arm/mach-exynos/pinmux.c
parentd117d8f19b0625f88309e47a8a32c2faa384dddc (diff)
parentf987177db9c988142032ed8142a093cce2378a90 (diff)
Merge tag 'dm-pull-14dec18' of git://git.denx.de/u-boot-dm
Complete conversion of sound to driver model
Diffstat (limited to 'arch/arm/mach-exynos/pinmux.c')
-rw-r--r--arch/arm/mach-exynos/pinmux.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/pinmux.c b/arch/arm/mach-exynos/pinmux.c
index f6743ca0f6..b24f1bb8f4 100644
--- a/arch/arm/mach-exynos/pinmux.c
+++ b/arch/arm/mach-exynos/pinmux.c
@@ -378,6 +378,20 @@ static void exynos5_i2s_config(int peripheral)
}
}
+static void exynos5420_i2s_config(int peripheral)
+{
+ int i;
+
+ switch (peripheral) {
+ case PERIPH_ID_I2S0:
+ for (i = 0; i < 5; i++)
+ gpio_cfg_pin(EXYNOS5420_GPIO_Z0 + i,
+ S5P_GPIO_FUNC(0x02));
+ break;
+ }
+}
+
+
void exynos5_spi_config(int peripheral)
{
int cfg = 0, pin = 0, i;
@@ -550,6 +564,9 @@ static int exynos5420_pinmux_config(int peripheral, int flags)
case PERIPH_ID_I2C10:
exynos5420_i2c_config(peripheral);
break;
+ case PERIPH_ID_I2S0:
+ exynos5420_i2s_config(peripheral);
+ break;
case PERIPH_ID_PWM0:
gpio_cfg_pin(EXYNOS5420_GPIO_B20, S5P_GPIO_FUNC(2));
break;
@@ -863,7 +880,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() || proid_is_exynos5422())
+ if (proid_is_exynos542x())
return exynos5420_pinmux_config(peripheral, flags);
else if (proid_is_exynos5250())
return exynos5_pinmux_config(peripheral, flags);