热度 7
2013-8-27 10:14
522 次阅读|
0 个评论
Linux下的LCD设备被抽象成标准的framebuffer设备,我们只需要修改与LCD有关的扫描时间及分辨率即可。 1、修改 arch/arm/mach-s3c2440/mach-smdk2440.c 如下: /* 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 = 320, .height = 240, .pixclock = 64000, /*HCLK 60 MHz, divisor 10 */ .xres = 320, .yres = 240, .bpp =16, .left_margin = 18, .right_margin = 38, .hsync_len = 30, .upper_margin = 18, .lower_margin = 18, .vsync_len = 3, }; 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 .gpccon = 0xaa955699, //这是将GPC和GPD设置成功能引脚,也可以不设置 .gpccon_mask = 0xffc003cc, .gpcup =0x0000ffff, .gpcup_mask = 0xffffffff, .gpdcon = 0xaa95aaa1, .gpdcon_mask = 0xffc0fff0, .gpdup =0x0000faff, .gpdup_mask = 0xffffffff, //.lpcsel = ((0xCE6) ~7) | 14, .lpcsel = 0xf82, //设置TCONSEL寄存器选择三星240x320 }; static struct platform_device*smdk2440_devices[] __initdata = { s3c_device_ohci, s3c_device_lcd, //检查这里有没有加上 s3c_device_wdt, s3c_device_i2c0, s3c_device_iis, }; 2.让系统启动起来看到 bootlogo 小企鹅,得在 make menuconfig 中进行配置添加 在Device Drivers --- Graphics support --- Bootup logo下面可以全部选中支持。 原文链接: http://emb.sunplusedu.com/answer/2013/0821/2118.html