- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
开发板触摸屏调适
FS2410 开发板linux-2.6.35内核 LCD 驱动移植
在arch/arm/mach-smdk2410.c相应位置中添加如下蓝色行代码
#include mach/regs-lcd.h?? //added by Thomas.Yang 2011-01-30#include mach/fb.h#include mach/regs-gpio.h#include plat/pll.h#include plat/udc.h#include mach/gpio-fns.h#include mach/regs-clock.h#include asm/delay.h /*LCD35 driver Added by Thomas.Yang (Yang Zhiping) 2011-01-30 ********************************************************************/static struct s3c2410fb_display fb_thomas_display = {??? ??? .type = S3C2410_LCDCON1_TFT,??? //LCD 类型??? ??? .width = 320,???? //LCD 宽??? ??? .height = 240,?? //LCD 高??? ??? .xres = 320,??? ??? .yres = 240,??? ??? .bpp = 16,?? //LCD 色深,每个像素占多少位??? ??? .pixclock = 156000,?? //像素时钟??? ??? .left_margin = 20,???? ??? ??? .right_margin = 38,??? ??? .hsync_len = 30,?????? //水平同步??? ??? .upper_margin = 4,??? ??? .lower_margin = 15,??? ??? .vsync_len = 3,????????? //垂直同步??? ??? .lcdcon5 = S3C2410_LCD CON5_FRM565 |???????????? S3C2410_LCD CON5_INVVLINE |???????????? S3C2410_LCDCON5_INVVFRAME |???????????? S3C2410_LCDCON5_PWREN | ???????????? S3C2410_LCDCON5_HWSWP,??? ??? };
The frame buffer device uses the following fields:? - pixclock: pixel clock in ps (pico seconds)? - left_margin: time from sync to picture? - right_margin: time from picture to sync? - upper_margin: time from sync to picture? - lower_margin: time from picture to sync? - hsync_len: length of horizontal sync? - vsync_len: length of vertical sync
static struct s3c2410fb_mach_info s3c2410fb_thomas_info __initdata={??? .displays = fb_thomas_display,??? .num_displays = 1,??? .default_display = 0,??? .gpcup = 0xffffffff,??? .gpcup_mask = 0xffffffff,??? .gpccon = 0xaa9556a9,??? .gpccon_mask = 0xffffffff,??? .gpdup = 0xffffffff,??? .gpdup_mask = 0xffffffff,??? .gpdcon = 0xaaaaaaaa,??? .gpdcon_mask = 0xffffffff,??? .lpcsel =0x00,??? };/****************************************************************/ static void __init smdk2410_init(void){??? ??? s3
文档评论(0)