add panel dpi

This commit is contained in:
zyw
2010-12-09 18:49:45 +08:00
parent a02460155b
commit e3d5de7ad7
12 changed files with 67 additions and 6 deletions

5
drivers/video/display/screen/lcd_a060se02.c Executable file → Normal file
View File

@@ -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;

7
drivers/video/display/screen/lcd_hl070vm4.c Executable file → Normal file
View File

@@ -22,6 +22,10 @@
#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;

5
drivers/video/display/screen/lcd_hsd100pxn.c Normal file → Executable file
View File

@@ -24,6 +24,8 @@
#define V_VD 768
#define V_FP 18
#define LCD_WIDTH 202
#define LCD_HEIGHT 152
/* Other */
#define DCLK_POL 0
#define SWAP_RB 0
@@ -39,6 +41,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;

6
drivers/video/display/screen/lcd_hsd800x480.c Executable file → Normal file
View File

@@ -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;

6
drivers/video/display/screen/lcd_hx8357.c Executable file → Normal file
View File

@@ -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*/

6
drivers/video/display/screen/lcd_nt35580.c Executable file → Normal file
View File

@@ -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;

6
drivers/video/display/screen/lcd_nt35582.c Executable file → Normal file
View File

@@ -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 //<2F>Ƿ<EFBFBD>ʹ<EFBFBD><CAB9>FMK (0:<3A><>֧<EFBFBD><D6A7> 1:<3A><><EFBFBD><EFBFBD>֧<EFBFBD><D6A7> 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>)
#define FRMRATE 60 //MCU<43><55><EFBFBD><EFBFBD>ˢ<EFBFBD><CBA2><EFBFBD><EFBFBD> (FMK<4D><4B>Чʱ<D0A7><CAB1>)
@@ -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;

6
drivers/video/display/screen/lcd_s1d13521.c Executable file → Normal file
View File

@@ -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;

6
drivers/video/display/screen/lcd_td043mgea1.c Executable file → Normal file
View File

@@ -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;

6
drivers/video/display/screen/lcd_tj048nc01ca.c Executable file → Normal file
View File

@@ -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;

View File

@@ -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 */

View File

@@ -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;