add panel dpi
authorzyw <zyw@rock-chips.com>
Thu, 9 Dec 2010 10:49:45 +0000 (18:49 +0800)
committerzyw <zyw@rock-chips.com>
Thu, 9 Dec 2010 10:49:45 +0000 (18:49 +0800)
12 files changed:
drivers/video/display/screen/lcd_a060se02.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_hl070vm4.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_hsd100pxn.c [changed mode: 0644->0755]
drivers/video/display/screen/lcd_hsd800x480.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_hx8357.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_nt35580.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_nt35582.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_s1d13521.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_td043mgea1.c [changed mode: 0755->0644]
drivers/video/display/screen/lcd_tj048nc01ca.c [changed mode: 0755->0644]
drivers/video/display/screen/screen.h
drivers/video/rk29_fb.c

old mode 100755 (executable)
new mode 100644 (file)
index b24540b..4cb1875
@@ -26,6 +26,8 @@
 #define DCLK_POL               0
 #define SWAP_RB                        0
 
+#define LCD_WIDTH       600    //need modify
+#define LCD_HEIGHT      800
 
 
 int lcd_init(void)
@@ -127,6 +129,9 @@ void set_lcd_info(struct rk29fb_screen *screen)
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
        screen->left_margin = H_BP;
        screen->right_margin = H_FP;
old mode 100755 (executable)
new mode 100644 (file)
index f81aada..50edbfb
 #define V_VD                   480
 #define V_FP                   10
 
+
+#define LCD_WIDTH       800    //need modify
+#define LCD_HEIGHT      480
+
 /* Other */
 #define DCLK_POL               1 ///0
 #define SWAP_RB                        0
@@ -57,6 +61,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk2918lcd_info *lcd_info
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
     screen->pixclock = OUT_CLK;
        screen->left_margin = H_BP;
old mode 100644 (file)
new mode 100755 (executable)
index 5bd792e..459261a
@@ -24,6 +24,8 @@
 #define V_VD                   768\r
 #define V_FP                   18\r
 \r
+#define LCD_WIDTH       202\r
+#define LCD_HEIGHT      152\r
 /* Other */\r
 #define DCLK_POL               0\r
 #define SWAP_RB                        0\r
@@ -39,6 +41,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
     screen->x_res = H_VD;\r
     screen->y_res = V_VD;\r
 \r
+    screen->width = LCD_WIDTH;\r
+    screen->height = LCD_HEIGHT;\r
+\r
     /* Timing */\r
     screen->pixclock = OUT_CLK;\r
        screen->left_margin = H_BP;\r
old mode 100755 (executable)
new mode 100644 (file)
index 43b9607..84f157e
@@ -28,6 +28,9 @@
 #define DCLK_POL               1
 #define SWAP_RB                        0
 
+#define LCD_WIDTH       800    //need modify
+#define LCD_HEIGHT      480
+
 #define TXD_PORT        gLcd_info->txd_pin
 #define CLK_PORT        gLcd_info->clk_pin
 #define CS_PORT         gLcd_info->cs_pin
@@ -59,6 +62,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
     screen->pixclock = OUT_CLK;
        screen->left_margin = H_BP;
old mode 100755 (executable)
new mode 100644 (file)
index 4990d9a..19e4efc
@@ -23,6 +23,9 @@
 #define V_VD                   480     //***480
 #define V_FP                   40
 
+#define LCD_WIDTH       320    //need modify
+#define LCD_HEIGHT      480
+
 /* Other */
 #define DCLK_POL               0
 #define SWAP_RB                        0
@@ -172,6 +175,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
     screen->pixclock = OUT_CLK;
        screen->left_margin = H_BP;             /*>2*/
old mode 100755 (executable)
new mode 100644 (file)
index e1b63fe..39fea0c
@@ -23,6 +23,9 @@
 #define V_VD                   800
 #define V_FP                   2
 
+#define LCD_WIDTH       480    //need modify
+#define LCD_HEIGHT      800
+
 /* Other */
 #define DCLK_POL               0
 #define SWAP_RB                        0
@@ -432,6 +435,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk2918lcd_info *lcd_info
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
     screen->pixclock = OUT_CLK;
        screen->left_margin = H_BP;
old mode 100755 (executable)
new mode 100644 (file)
index 66941e2..7ddf864
@@ -20,6 +20,9 @@
 #define V_VD                   800
 #define V_FP                   1
 
+#define LCD_WIDTH       480    //need modify
+#define LCD_HEIGHT      800
+
 #define P_WR            27
 #define USE_FMARK       0 //2               //ÊÇ·ñʹÓÃFMK (0:²»Ö§³Ö 1:ºáÆÁÖ§³Ö 2:ºáÊúÆÁ¶¼Ö§³Ö)
 #define FRMRATE         60              //MCUÆÁµÄË¢ÐÂÂÊ (FMKÓÐЧʱÓÃ)
@@ -388,6 +391,9 @@ void set_lcd_info(struct rk29fb_screen *screen)
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
        screen->left_margin = H_BP;
        screen->right_margin = H_FP;
old mode 100755 (executable)
new mode 100644 (file)
index 804170a..c2f7cdf
@@ -25,6 +25,9 @@
 
 #define P_WR            200
 
+#define LCD_WIDTH       600    //need modify
+#define LCD_HEIGHT      800
+
 /* Other */
 #define DCLK_POL               0
 #define SWAP_RB                        0
@@ -314,6 +317,9 @@ void set_lcd_info(struct rk28fb_screen *screen)
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
        screen->left_margin = H_BP;
        screen->right_margin = H_FP;
old mode 100755 (executable)
new mode 100644 (file)
index 6764031..f67e344
@@ -23,6 +23,9 @@
 #define V_VD                   480
 #define V_FP                   10
 
+#define LCD_WIDTH       800    //need modify
+#define LCD_HEIGHT      480
+
 /* Other */
 #define DCLK_POL               0
 #define SWAP_RB                        0
@@ -58,6 +61,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
     screen->pixclock = OUT_CLK;
        screen->left_margin = H_BP;
old mode 100755 (executable)
new mode 100644 (file)
index d9f0e13..ef29859
@@ -23,6 +23,9 @@
 #define V_VD                   480
 #define V_FP                   4
 
+#define LCD_WIDTH       800    //need modify
+#define LCD_HEIGHT      480
+
 /* Other */
 #define DCLK_POL               1
 #define SWAP_RB                        0
@@ -57,6 +60,9 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info )
     screen->x_res = H_VD;
     screen->y_res = V_VD;
 
+    screen->width = LCD_WIDTH;
+    screen->height = LCD_HEIGHT;
+
     /* Timing */
     screen->pixclock = OUT_CLK;
        screen->left_margin = H_BP;
index 6d15bb49873095ed8f9841a7a2bf50ceab12c04b..b661d07655d79f72230a009c284d8bc7e257cef2 100755 (executable)
@@ -41,9 +41,11 @@ struct rk29fb_screen {
        /* Screen size */
        u16 x_res;
        u16 y_res;
+    u16 width;
+    u16 height;
 
     /* Timing */
-       u16 pixclock;
+       u32 pixclock;
        u16 left_margin;
        u16 right_margin;
        u16 hsync_len;
@@ -61,7 +63,7 @@ struct rk29fb_screen {
        u8 pin_vsync;
        u8 pin_den;
        u8 pin_dclk;
-    u8 lcdc_aclk;
+    u32 lcdc_aclk;
        u8 pin_dispon;
 
        /* Swap rule */
index 14310f085d9330c91153f7023b144afcac71cae5..18f529942a553aa6c3b0f95cfc294b0899efc4ce 100755 (executable)
@@ -1792,8 +1792,8 @@ static int __init rk29fb_probe (struct platform_device *pdev)
     inf->win1fb->var.bits_per_pixel = 16;
     inf->win1fb->var.xres_virtual = screen->x_res;
     inf->win1fb->var.yres_virtual = screen->y_res;
-    inf->win1fb->var.width = screen->x_res;
-    inf->win1fb->var.height = screen->y_res;
+    inf->win1fb->var.width = screen->width;
+    inf->win1fb->var.height = screen->height;
     inf->win1fb->var.pixclock = screen->pixclock;
     inf->win1fb->var.left_margin = screen->left_margin;
     inf->win1fb->var.right_margin = screen->right_margin;
@@ -1850,8 +1850,8 @@ static int __init rk29fb_probe (struct platform_device *pdev)
     inf->win0fb->var.bits_per_pixel = 16;
     inf->win0fb->var.xres_virtual = screen->x_res;
     inf->win0fb->var.yres_virtual = screen->y_res;
-    inf->win0fb->var.width = screen->x_res;
-    inf->win0fb->var.height = screen->y_res;
+    inf->win0fb->var.width = screen->width;
+    inf->win0fb->var.height = screen->height;
     inf->win0fb->var.pixclock = screen->pixclock;
     inf->win0fb->var.left_margin = screen->left_margin;
     inf->win0fb->var.right_margin = screen->right_margin;