#define DCLK_POL 0
#define SWAP_RB 0
+#define LCD_WIDTH 600 //need modify
+#define LCD_HEIGHT 800
int lcd_init(void)
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;
#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
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;
#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
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
#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
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;
#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
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*/
#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
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;
#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ÓÐЧʱÓÃ)
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;
#define P_WR 200
+#define LCD_WIDTH 600 //need modify
+#define LCD_HEIGHT 800
+
/* Other */
#define DCLK_POL 0
#define SWAP_RB 0
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;
#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
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;
#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
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;
/* 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;
u8 pin_vsync;
u8 pin_den;
u8 pin_dclk;
- u8 lcdc_aclk;
+ u32 lcdc_aclk;
u8 pin_dispon;
/* Swap rule */
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;
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;