]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
exynos: Allow PWM0 pinmux to be set up
authorSimon Glass <sjg@chromium.org>
Mon, 22 Feb 2016 04:08:56 +0000 (21:08 -0700)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 25 May 2016 04:25:18 +0000 (13:25 +0900)
This is commonly used for LCD backlight control. Add pinmux support for it
on exynos5250 and 5420.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/mach-exynos/pinmux.c

index 12eb79cb0cba417cf9bdcdfb1abefbbdd02c62b3..fec2df9bd95013826d4e75e346835e3c97f6ce89 100644 (file)
@@ -506,6 +506,9 @@ static int exynos5_pinmux_config(int peripheral, int flags)
                 */
                gpio_set_pull(EXYNOS5_GPIO_X07, S5P_GPIO_PULL_NONE);
                break;
+       case PERIPH_ID_PWM0:
+               gpio_cfg_pin(EXYNOS5_GPIO_B20, S5P_GPIO_FUNC(2));
+               break;
        default:
                debug("%s: invalid peripheral %d", __func__, peripheral);
                return -1;
@@ -548,6 +551,9 @@ static int exynos5420_pinmux_config(int peripheral, int flags)
        case PERIPH_ID_I2C10:
                exynos5420_i2c_config(peripheral);
                break;
+       case PERIPH_ID_PWM0:
+               gpio_cfg_pin(EXYNOS5420_GPIO_B20, S5P_GPIO_FUNC(2));
+               break;
        default:
                debug("%s: invalid peripheral %d", __func__, peripheral);
                return -1;