Commit 9a3beb04 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

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: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 974faba7
...@@ -423,7 +423,7 @@ static struct platform_pwm_backlight_data pwm_backlight_data = { ...@@ -423,7 +423,7 @@ static struct platform_pwm_backlight_data pwm_backlight_data = {
.max_brightness = 255, .max_brightness = 255,
.dft_brightness = 255, .dft_brightness = 255,
.pwm_period_ns = 33333, /* 30kHz */ .pwm_period_ns = 33333, /* 30kHz */
.enable_gpio = -1, .enable_gpio = 61,
}; };
static struct platform_device pwm_backlight_device = { static struct platform_device pwm_backlight_device = {
...@@ -1203,9 +1203,6 @@ static void __init eva_init(void) ...@@ -1203,9 +1203,6 @@ static void __init eva_init(void)
r8a7740_pinmux_init(); r8a7740_pinmux_init();
r8a7740_meram_workaround(); r8a7740_meram_workaround();
/* LCDC0 */
gpio_request_one(61, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */
/* GETHER */ /* GETHER */
gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment