Commit 8c568df9 authored by Sven Neumann's avatar Sven Neumann Committed by Eric Miao

ARM: pxa/raumfeld: adapt to upcoming hardware change

The backlight control is going to change back to PWM in the
upcoming Raumfeld Controller hardware revision.
Signed-off-by: default avatarSven Neumann <s.neumann@raumfeld.com>
Acked-by: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent a065685d
...@@ -598,14 +598,15 @@ static void __init raumfeld_lcd_init(void) ...@@ -598,14 +598,15 @@ static void __init raumfeld_lcd_init(void)
pxa_set_fb_info(NULL, &raumfeld_sharp_lcd_info); pxa_set_fb_info(NULL, &raumfeld_sharp_lcd_info);
/* Earlier devices had the backlight regulator controlled /* Hardware revision 2 has the backlight regulator controlled
* via PWM, later versions use another controller for that */ * by an LT3593, earlier and later devices use PWM for that. */
if ((system_rev & 0xff) < 2) { if ((system_rev & 0xff) == 2) {
platform_device_register(&raumfeld_lt3593_device);
} else {
mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT; mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT;
pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1); pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1);
platform_device_register(&raumfeld_pwm_backlight_device); platform_device_register(&raumfeld_pwm_backlight_device);
} else }
platform_device_register(&raumfeld_lt3593_device);
ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable"); ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable");
if (ret < 0) if (ret < 0)
......
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