summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-11 03:48:16 +0100
committerSimon Horman <horms+renesas@verge.net.au>2013-12-19 19:08:25 +0900
commit9a3beb04ec32cab91a8e562ae068433387b84547 (patch)
tree240119cdae7c6d2d5c98e6cda6bcbeae37c1f705 /arch/arm/mach-shmobile
parent974faba70550409049ee349939f4479ad98908ae (diff)
downloadblackbird-op-linux-9a3beb04ec32cab91a8e562ae068433387b84547.tar.gz
blackbird-op-linux-9a3beb04ec32cab91a8e562ae068433387b84547.zip
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>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index d9e28c7aca49..2ea89355d8c1 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -423,7 +423,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 = {
@@ -1203,9 +1203,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 */
OpenPOWER on IntegriCloud