599
pxa_set_fb_info(NULL, &raumfeld_sharp_lcd_info);
601
/* Earlier devices had the backlight regulator controlled
602
* via PWM, later versions use another controller for that */
603
if ((system_rev & 0xff) < 2) {
604
mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT;
605
pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1);
606
platform_device_register(&raumfeld_pwm_backlight_device);
608
platform_device_register(&raumfeld_lt3593_device);
610
599
ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable");
612
601
pr_warning("Unable to request GPIO_TFT_VA_EN\n");
614
603
gpio_direction_output(GPIO_TFT_VA_EN, 1);
616
607
ret = gpio_request(GPIO_DISPLAY_ENABLE, "display enable");
618
609
pr_warning("Unable to request GPIO_DISPLAY_ENABLE\n");
620
611
gpio_direction_output(GPIO_DISPLAY_ENABLE, 1);
613
/* Hardware revision 2 has the backlight regulator controlled
614
* by an LT3593, earlier and later devices use PWM for that. */
615
if ((system_rev & 0xff) == 2) {
616
platform_device_register(&raumfeld_lt3593_device);
618
mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT;
619
pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1);
620
platform_device_register(&raumfeld_pwm_backlight_device);
623
pxa_set_fb_info(NULL, &raumfeld_sharp_lcd_info);
622
624
platform_device_register(&pxa3xx_device_gcu);