fl2440 8寸LCD驱动的移植
本帖最后由 xdeadbat 于 2011-3-13 15:15 编辑/* LCD driver info */
static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
.lcdcon5 = S3C2410_LCDCON5_FRM565 |
S3C2410_LCDCON5_INVVLINE |
S3C2410_LCDCON5_INVVFRAME |
S3C2410_LCDCON5_PWREN |
S3C2410_LCDCON5_HWSWP,
.type = S3C2410_LCDCON1_TFT,
.width = 240,
.height = 320,
.pixclock = 166667,/* HCLK 60 MHz, divisor 10 */
.xres = 240,
.yres = 320,
.bpp = 16,
.left_margin = 20,
.right_margin = 8,
.hsync_len = 4,
.upper_margin = 8,
.lower_margin = 7,
.vsync_len = 4,
};
static struct s3c2410fb_mach_info smdk2440_fb_info __initdata = {
.displays = &smdk2440_lcd_cfg,
.num_displays = 1,
.default_display = 0,
#if 0
/* currently setup by downloader */
.gpccon = 0xaa940659,
.gpccon_mask = 0xffffffff,
.gpcup = 0x0000ffff,
.gpcup_mask = 0xffffffff,
.gpdcon = 0xaa84aaa0,
.gpdcon_mask = 0xffffffff,
.gpdup = 0x0000faff,
.gpdup_mask = 0xffffffff,
#endif
.lpcsel = ((0xCE6) & ~7) | 1<<4,
};
请问:我使用的是8寸群创的LCD屏,移植驱动的时候,上面这些参数怎么改? 参考800×600 VGA选项 回复 2# 飞凌-alexlee
哪里有800*600 ,VGA选项? 在booltoader。有个屏幕分辨率设置,你看一下手册~ 回复 4# 飞凌-alexlee
老大改了还是不行,一条一条的线。。。 static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
.lcdcon5 = S3C2410_LCDCON5_FRM565 |
S3C2410_LCDCON5_INVVLINE |
S3C2410_LCDCON5_INVVFRAME |
S3C2410_LCDCON5_PWREN |
S3C2410_LCDCON5_HWSWP,
.type = S3C2410_LCDCON1_TFT,
.width = 800,
.height = 600,
.pixclock = 100000,/* HCLK 60 MHz, divisor 10 */
.xres = 800,
.yres = 600,
.bpp = 16,
.left_margin = 55,
.right_margin = 63,
.hsync_len = 119,
.upper_margin = 36,
.lower_margin = 22,
.vsync_len = 5,
};
改成这样,不知道哪儿不对 .left_margin = 55,
.right_margin = 63,
.hsync_len = 119,
.upper_margin = 36,
.lower_margin = 22,
.vsync_len = 5,
这几位看看~ 回复 7# 飞凌-alexlee
这几位是根据bootloader上面的800*600选项下面的参数写的 回复 8# xdeadbat
/***************************************************
800*600
****************************************************/
#define LCD_XSIZE_800_600 (800)
#define LCD_YSIZE_800_600 (600)
#define SCR_XSIZE_800_600 (800)
#define SCR_YSIZE_800_600 (600)
#define HOZVAL_TFT_800_600 (LCD_XSIZE_800_600-1)//分辨率
#define LINEVAL_TFT_800_600 (LCD_YSIZE_800_600-1)
#define VBPD_800_600 22//8//(25) //垂直同步信号的后肩
#define VFPD_800_600 36//5//(5) //垂直同步信号的前肩
#define VSPW_800_600 5//(1) //垂直同步信号的脉宽
#define HBPD_800_600 63//(110)//67 //8水平同步信号的后肩
#define HFPD_800_600 55//(40) //8水平同步信号的前肩
#define HSPW_800_600 119//(31) //6水平同步信号的脉宽
#define CLKVAL_TFT_800_600 (1) //3 回复 8# xdeadbat
/***************************************************
800*600
****************************************************/
#define LCD_XSIZE_800_600 (800)
#define LCD_YSIZE_800_600 (600)
#define SCR_XSIZE_800_600 (800)
#define SCR_YSIZE_800_600 (600)
#define HOZVAL_TFT_800_600 (LCD_XSIZE_800_600-1)//分辨率
#define LINEVAL_TFT_800_600 (LCD_YSIZE_800_600-1)
#define VBPD_800_600 22//8//(25) //垂直同步信号的后肩
#define VFPD_800_600 36//5//(5) //垂直同步信号的前肩
#define VSPW_800_600 5//(1) //垂直同步信号的脉宽
#define HBPD_800_600 63//(110)//67 //8水平同步信号的后肩
#define HFPD_800_600 55//(40) //8水平同步信号的前肩
#define HSPW_800_600 119//(31) //6水平同步信号的脉宽
#define CLKVAL_TFT_800_600 (1) //3
页:
[1]