diff mbox

[U-Boot,19/25] exynos: Allow PWM0 pinmux to be set up

Message ID 1452816014-7538-20-git-send-email-sjg@chromium.org
State Accepted
Commit af5b5eae53d2a9a79fc6fd9df862a75b65d1dccb
Delegated to: Minkyu Kang
Headers show

Commit Message

Simon Glass Jan. 15, 2016, midnight UTC
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>
---

 arch/arm/mach-exynos/pinmux.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Minkyu Kang Jan. 15, 2016, 9:31 a.m. UTC | #1
On 15/01/16 09:00, Simon Glass wrote:
> 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>
> ---
> 
>  arch/arm/mach-exynos/pinmux.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/mach-exynos/pinmux.c b/arch/arm/mach-exynos/pinmux.c
> index 12eb79c..fec2df9 100644
> --- a/arch/arm/mach-exynos/pinmux.c
> +++ b/arch/arm/mach-exynos/pinmux.c
> @@ -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;
> 

Acked-by: Minkyu Kang <mk7.kang@samsung.com>

Thanks,
Minkyu Kang.
diff mbox

Patch

diff --git a/arch/arm/mach-exynos/pinmux.c b/arch/arm/mach-exynos/pinmux.c
index 12eb79c..fec2df9 100644
--- a/arch/arm/mach-exynos/pinmux.c
+++ b/arch/arm/mach-exynos/pinmux.c
@@ -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;