diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-10 21:48:16 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-19 05:08:25 -0500 |
commit | 9a3beb04ec32cab91a8e562ae068433387b84547 (patch) | |
tree | 240119cdae7c6d2d5c98e6cda6bcbeae37c1f705 /arch | |
parent | 974faba70550409049ee349939f4479ad98908ae (diff) |
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')
-rw-r--r-- | arch/arm/mach-shmobile/board-armadillo800eva.c | 5 |
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 = { | |||
423 | .max_brightness = 255, | 423 | .max_brightness = 255, |
424 | .dft_brightness = 255, | 424 | .dft_brightness = 255, |
425 | .pwm_period_ns = 33333, /* 30kHz */ | 425 | .pwm_period_ns = 33333, /* 30kHz */ |
426 | .enable_gpio = -1, | 426 | .enable_gpio = 61, |
427 | }; | 427 | }; |
428 | 428 | ||
429 | static struct platform_device pwm_backlight_device = { | 429 | static struct platform_device pwm_backlight_device = { |
@@ -1203,9 +1203,6 @@ static void __init eva_init(void) | |||
1203 | r8a7740_pinmux_init(); | 1203 | r8a7740_pinmux_init(); |
1204 | r8a7740_meram_workaround(); | 1204 | r8a7740_meram_workaround(); |
1205 | 1205 | ||
1206 | /* LCDC0 */ | ||
1207 | gpio_request_one(61, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */ | ||
1208 | |||
1209 | /* GETHER */ | 1206 | /* GETHER */ |
1210 | gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ | 1207 | gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ |
1211 | 1208 | ||