screen b101ew05:support rk616 lvds
authoryxj <yxj@rock-chips.com>
Thu, 18 Apr 2013 14:23:15 +0000 (22:23 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 18 Apr 2013 14:46:35 +0000 (22:46 +0800)
drivers/video/display/screen/lcd_b101ew05.c

index 327c9caf2918671b4f6880a24b5bcd5e089ddda1..f1c4334adae6f6d507be709ab5d9acc057a8994a 100755 (executable)
@@ -8,14 +8,14 @@
 #include "../../rockchip/hdmi/rk_hdmi.h"
 #endif
 
-
-#ifdef CONFIG_RK610_LVDS
+#if  defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS) 
 #include "../transmitter/rk610_lcd.h"
 #endif
 
 
 /* Base */
-#ifdef CONFIG_RK610_LVDS
+#if  defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS)
 #define OUT_TYPE               SCREEN_LVDS
 #define LVDS_FORMAT            LVDS_8BIT_2
 #else
@@ -42,7 +42,7 @@
 #define LCD_WIDTH              216
 #define LCD_HEIGHT             135
 /* Other */
-#ifdef CONFIG_RK610_LVDS
+#if defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS)  
 #define DCLK_POL       1
 #else
 #define DCLK_POL       0
@@ -336,7 +336,7 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
        screen->standby = NULL;
        screen->dsp_lut = dsp_lut;
        screen->sscreen_get = set_scaler_info;
-#ifdef CONFIG_RK610_LVDS
+#if defined(CONFIG_RK610_LVDS) || defined(CONFIG_RK616_LVDS)
        screen->sscreen_set = rk610_lcd_scaler_set_param;
 #endif
 }