diff options
author | Sven Neumann <s.neumann@raumfeld.com> | 2011-05-25 07:37:31 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-07-11 02:26:31 -0400 |
commit | 8c568df9d7e9b40063f0a5d4235e3d28df88f92a (patch) | |
tree | 64426e9b47bd6fb1e45339086c43a06846ba8d95 /arch/arm/mach-pxa | |
parent | a065685d2f0b4bb69d0f64d2cd396a5c463db2a9 (diff) |
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: Sven Neumann <s.neumann@raumfeld.com>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/raumfeld.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c index d130f77b6d11..8e5b3d8a86be 100644 --- a/arch/arm/mach-pxa/raumfeld.c +++ b/arch/arm/mach-pxa/raumfeld.c | |||
@@ -598,14 +598,15 @@ static void __init raumfeld_lcd_init(void) | |||
598 | 598 | ||
599 | pxa_set_fb_info(NULL, &raumfeld_sharp_lcd_info); | 599 | pxa_set_fb_info(NULL, &raumfeld_sharp_lcd_info); |
600 | 600 | ||
601 | /* Earlier devices had the backlight regulator controlled | 601 | /* Hardware revision 2 has the backlight regulator controlled |
602 | * via PWM, later versions use another controller for that */ | 602 | * by an LT3593, earlier and later devices use PWM for that. */ |
603 | if ((system_rev & 0xff) < 2) { | 603 | if ((system_rev & 0xff) == 2) { |
604 | platform_device_register(&raumfeld_lt3593_device); | ||
605 | } else { | ||
604 | mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT; | 606 | mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT; |
605 | pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1); | 607 | pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1); |
606 | platform_device_register(&raumfeld_pwm_backlight_device); | 608 | platform_device_register(&raumfeld_pwm_backlight_device); |
607 | } else | 609 | } |
608 | platform_device_register(&raumfeld_lt3593_device); | ||
609 | 610 | ||
610 | ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable"); | 611 | ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable"); |
611 | if (ret < 0) | 612 | if (ret < 0) |