基于S3C2440的内核3.10.17移植--(W35i)LCD应用
来源:互联网 发布:springer电子数据库 编辑:程序博客网 时间:2024/06/03 21:21
要想使LCD工作,需要修改arch/arm/mach-s3c24xx/mach-mini2440.c文件中的相关内容
vim arch/arm/mach-s3c24xx/mach-mini2440.c
搜索mini2440_lcd_cfg
在132行找到该结构体数组
在175行找到有如下注释:
/* mini2440 + 3.5" TFT (LCD-W35i, LQ035Q1DG06 type) + touchscreen*/
这个就是我们所需要的参数
static struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = {[0] = {/* mini2440 + 3.5" TFT + touchscreen */_LCD_DECLARE(7,/* The 3.5 is quite fast */240, 21, 38, 6, /* x timing */320, 4, 4, 2,/* y timing *///320, 68, 66, 4,//240, 4, 4, 9,60),/* refresh rate */.lcdcon5= (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVDEN | S3C2410_LCDCON5_PWREN),},[1] = { /* mini2440 + 7" TFT + touchscreen */_LCD_DECLARE(10,/* the 7" runs slower */800, 40, 40, 48, /* x timing */480, 29, 3, 3,/* y timing */50),/* refresh rate */.lcdcon5= (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_PWREN),},/* The VGA shield can outout at several resolutions. All share * the same timings, however, anything smaller than 1024x768 * will only be displayed in the top left corner of a 1024x768 * XGA output unless you add optional dip switches to the shield. * Therefore timings for other resolutions have been omitted here. */[2] = {_LCD_DECLARE(10,1024, 1, 2, 2,/* y timing */768, 200, 16, 16, /* x timing */24),/* refresh rate, maximum stable, tested with the FPGA shield */.lcdcon5= (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_HWSWP),},/* mini2440 + 3.5" TFT (LCD-W35i, LQ035Q1DG06 type) + touchscreen*/[3] = {_LCD_DECLARE(/* clock */7,/* xres, margin_right, margin_left, hsync */320, 68, 66, 4,/* yres, margin_top, margin_bottom, vsync */240, 4, 4, 9,/* refresh rate */60),.lcdcon5= (S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_INVVDEN | S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVCLK | S3C2410_LCDCON5_HWSWP),},};
在544行找到static char mini2440_features_str[12] __initdata = "0tb";
将其中的0tb改成3tb,即上面结构体数组中的3
保存退出
屏幕即可正常显示
- 基于S3C2440的内核3.10.17移植--(W35i)LCD应用
- 基于S3C2440的Linux-3.6.6移植——LCD的应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- s3c2440的LCD应用
- 基于S3c2440的LCD驱动
- 基于S3C2440的Linux内核移植和yaffs2文件系统制作
- 基于S3C2440的Linux内核移植和yaffs2文件系统制作
- 基于S3C2440的Linux内核移植和yaffs2文件系统制作
- 基于S3C2440的Linux内核移植和yaffs2文件系统制作
- 基于S3C2440的Linux内核移植和yaffs2文件系统制作
- 基于S3C2440的Linux内核移植和yaffs2文件系统制作
- :视频播放器与Handler 完美调用
- 给定element,求此element在list中的 index or position
- 京东商城面试经历--我狠受伤
- 未注册888系列域名
- nyoj20(吝啬的国度)
- 基于S3C2440的内核3.10.17移植--(W35i)LCD应用
- 如何用图表(Chart)列出空的统计列
- winform中Dock、Anchor属性的设置(简单实用)
- 用sencha touch的Cmd创建的MVC工程需要注意的问题
- unbutu下安装repo并下载源码
- 一个json转xml的例子
- oracle 批量 update (两张表相同、不相同的情况)
- 设计模式 -- 代理模式 Proxy
- 第十周项目一——1000以内所有偶数求和(1)