| From 4e6b0d3d1b2ab62b81f1550f0d75526d9d4bbd91 Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Wed, 11 Dec 2013 03:48:16 +0100 |
| Subject: ARM: shmobile: armadillo: Set backlight enable GPIO |
| |
| The Armadillo 800 EVA panel module has a backlight enable signal |
| connected to GPIO 61. Instead of requesting the GPIO in board code and |
| setting it to a high level unconditionally, pass the GPIO number to the |
| PWM backlight driver as the backlight enable GPIO. |
| |
| Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| (cherry picked from commit 9a3beb04ec32cab91a8e562ae068433387b84547) |
| (Queued by Simon Horman for v3.14 but not yet in Linus's tree) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| arch/arm/mach-shmobile/board-armadillo800eva.c | 5 +---- |
| 1 file changed, 1 insertion(+), 4 deletions(-) |
| |
| diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c |
| index c1e3a3bb2da6..d7513bc6d4ea 100644 |
| --- a/arch/arm/mach-shmobile/board-armadillo800eva.c |
| +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c |
| @@ -422,7 +422,7 @@ static struct platform_pwm_backlight_data pwm_backlight_data = { |
| .max_brightness = 255, |
| .dft_brightness = 255, |
| .pwm_period_ns = 33333, /* 30kHz */ |
| - .enable_gpio = -1, |
| + .enable_gpio = 61, |
| }; |
| |
| static struct platform_device pwm_backlight_device = { |
| @@ -1209,9 +1209,6 @@ static void __init eva_init(void) |
| r8a7740_pinmux_init(); |
| r8a7740_meram_workaround(); |
| |
| - /* LCDC0 */ |
| - gpio_request_one(61, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */ |
| - |
| /* GETHER */ |
| gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ |
| |
| -- |
| 1.8.5.rc3 |
| |