remove backlight ctrl from fb driver
authorzyw <zyw@rock-chips.com>
Fri, 3 Dec 2010 18:26:00 +0000 (02:26 +0800)
committerzyw <zyw@rock-chips.com>
Fri, 3 Dec 2010 18:26:00 +0000 (02:26 +0800)
arch/arm/configs/rk29_sdk_defconfig [changed mode: 0644->0755]
drivers/video/rk29_fb.c

old mode 100644 (file)
new mode 100755 (executable)
index b202b07..16c6efb
@@ -752,7 +752,11 @@ CONFIG_FB_RK29=y
 # CONFIG_FB_METRONOME is not set
 # CONFIG_FB_MB862XX is not set
 # CONFIG_FB_BROADSHEET is not set
-# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
+# CONFIG_LCD_CLASS_DEVICE is not set
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+# CONFIG_BACKLIGHT_GENERIC is not set
+CONFIG_BACKLIGHT_RK29_BL=y
 
 #
 # Display device support
index 5db8bf29bcefb348a5abba52025abe72e2cbd28d..1f555af3db02e7dc6b91d436ce9b64255c68aa32 100755 (executable)
@@ -215,20 +215,6 @@ void set_lcd_pin(struct platform_device *pdev, int enable)
         gpio_direction_output(lcd_standby, 0);
                gpio_set_value(lcd_standby, enable ? lcd_standby_pol : !lcd_standby_pol);
     }
-
- /********* open backlight just for test ***************/
-    rk29_mux_api_set(GPIO1B5_PWM0_NAME, 0);
-    if(0 != gpio_request(RK29_PIN1_PB5, NULL))
-    {
-        gpio_free(RK29_PIN1_PB5);
-        printk(">>>>>> RK29_PIN1_PB5 gpio_request err \n ");
-    }
-    gpio_direction_output(RK29_PIN1_PB5, GPIO_HIGH);
-    gpio_set_value(RK29_PIN1_PB5, GPIO_HIGH);
-    gpio_direction_output(RK29_PIN1_PB5, GPIO_HIGH);
-    printk("P1B5 High \n");
-/************************/
-
 }
 
 int mcu_do_refresh(struct rk29fb_inf *inf)