FS2410 开发板linux-2.6.35内核 LCD 驱动移植
来源:互联网 发布:sql server 2012激活码 编辑:程序博客网 时间:2024/04/30 20:17
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_LCDCON5_FRM565 |
S3C2410_LCDCON5_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)
{
s3c_i2c0_set_platdata(NULL);
s3c24xx_fb_set_platdata(&s3c2410fb_thomas_info); //LCD35 driver Added by Thomas.Yang (Yang Zhiping) 2011-01-30
platform_add_devices(smdk2410_devices, ARRAY_SIZE(smdk2410_devices));
smdk_machine_init();
}
在内核编译配置选项中选择:
Device Drivers ---> Graphics support --->
<*> Support for frame buffer devices --->
<*> S3C2410 LCD framebuffer Support
[*] S3C2410 lcd debug messages
[*] Backlight & LCD device support --->
<*> Samsung LTV350QV LCD Panel
[*] Bootup logo --->
[*] Standard 224-color Linux logo (NEW)
make uImage -j4
启动内核,LCD既可以显示linux kernel 小企鹅了。
- FS2410 开发板linux-2.6.35内核 LCD 驱动移植
- [ARM-LINUX]移植2.6.31.12内核到立宇泰ARMSYS2440开发板之LCD驱动+触摸屏驱动
- linux-2.6.32内核LCD驱动移植
- linux-2.6.32内核LCD驱动移植
- linux-2.6.35内核移植—LCD驱动的添加
- 2.6内核LCD驱动移植
- linux-2.6.26.5内核的 lcd驱动移植 lcd 触摸屏移植 tslib-1.4移植
- linux-2.6.26.5内核的 lcd驱动移植 lcd 触摸屏移植 tslib-1.4移植 (转)
- linux-2.6.26.5内核的 lcd驱动移植 lcd 触摸屏移植 tslib-1.4移植
- ARM9开发板FL2440移植Linux-3.0内核————MMC和LCD驱动
- S3C2410 LCD驱动的移植(基于linux-2.6.15.4内核)
- linux-2.6.26.5内核的 lcd驱动移植…
- linux-2.6.26.5内核的 lcd驱动移植…
- linux-2.6.32内核LCD驱动移植-1
- Linux内核移植 part2:uboot lcd驱动
- linux-2.6.32在mini2440开发板上移植 ---W35型LCD驱动移植
- linux-2.6.32在mini2440开发板上移植 ---W35型LCD驱动移植
- linux内核裁剪,编译,移植---目标板FS2410----未完成
- nfs共享模式搭建rac,监听配置
- JS对象转化成JSON字符串
- reporting services中主报表钻取子报表的在执行web请求时的问题
- Emacs用nxhtml来帮助写html - 笔记
- MS的程序员应该tjjtds,一个纯文档文件的内容竟然能当作头域解析。
- FS2410 开发板linux-2.6.35内核 LCD 驱动移植
- ASP.NET一些基础控件的实践
- JasperReports + iReport 4.0 开发制作日文报表项目
- DateTime格式大全
- 某些下载的网址
- 春节育儿游戏安排
- ffmpeg的精简
- 再次写给我们这些浮躁的程序员(转)
- Intent与PendingIntent的区别