update fb
author钟勇汪 <zyw@rock-chips.com>
Wed, 19 May 2010 03:50:17 +0000 (03:50 +0000)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jun 2010 05:35:13 +0000 (13:35 +0800)
drivers/video/rk2818_fb.c

index 56763e432958a5330be600ea84a3b9da73f54cf9..93ac65e925604c21e98334f232956e78011b4116 100644 (file)
@@ -60,7 +60,7 @@
 #define WIN1_USE_DOUBLE_BUF     1       //win1 use double buf to accelerate display
 #define LANDSCAPE_USE_ROTATE    1       //rotate win1 in landscape with mcu panel
 
-#if 0
+#if 1
        #define fbprintk(msg...)        printk(msg);
 #else
        #define fbprintk(msg...)
@@ -1871,20 +1871,6 @@ static int __init rk2818fb_probe (struct platform_device *pdev)
        int irq = 0;
     int ret = 0;
 
-//------------------back light-----------------------
-    rk2818_mux_api_set(GPIOF2_APWM0_SEL_NAME, 0);
-    ret = gpio_request(RK2818_PIN_PF2, NULL); 
-    if(ret != 0)
-    {
-        gpio_free(RK2818_PIN_PF2);
-        printk(KERN_ERR ">>>>>> back light gpio_request err \n ");
-        return 1;
-    }
-    gpio_direction_output(RK2818_PIN_PF2, 0);
-       gpio_set_value(RK2818_PIN_PF2, 0);
-
-//-----------------------------------------
-
     fbprintk(">>>>>> %s : %s\n", __FILE__, __FUNCTION__);
 
     /* Malloc rk2818fb_inf and set it to pdev for drvdata */