fl2440内核移植(三)——LCD移植
2015-11-25 14:46
225 查看
注:板子为4.3寸屏
1、修改arch/arm/mach-s3c2440/mach-smdk2440.c,使开发板上的LCD资源可用
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 = 480,
.height = 272,
.pixclock = 111111,
.xres = 480,
.yres = 272,
.bpp = 16,
.left_margin = 38,
.right_margin = 20,
.hsync_len = 30,
.upper_margin = 15,
.lower_margin = 12,
.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
.lpcsel = 0,
};
2、配置menuconfig,使能LCD相关驱动
Device Drivers----->
Graphics support----->
<*> /dev/agpgart (AGP Support) --->
│ │ -*- VGA Arbitration
│ │ (64) Maximum number of GPUs
│ │ [*] Laptop Hybrid Graphics - GPU switching support
│ │ <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
│ │ < > Intel GMA500 Stub Driver (NEW)
│ │ {M} Lowlevel video output switch controls
│ │ {*} Support for frame buffer devices --->
--- Support for frame buffer devices
│ │ [*] Enable firmware EDID
│ │ [ ] Framebuffer foreign endianness support --->
│ │ [*] Enable Video Mode Handling Helpers
│ │ [ ] Enable Tile Blitting Support
│ │ *** Frame buffer hardware drivers ***
│ │ -*- Backlight & LCD device support --->
│ │ Display device support --->
│ │ Console display driver support --->
│ │ [*] Bootup logo --->
重新编译内核烧录后可看到屏幕左上角出现小企鹅,移植完成
1、修改arch/arm/mach-s3c2440/mach-smdk2440.c,使开发板上的LCD资源可用
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 = 480,
.height = 272,
.pixclock = 111111,
.xres = 480,
.yres = 272,
.bpp = 16,
.left_margin = 38,
.right_margin = 20,
.hsync_len = 30,
.upper_margin = 15,
.lower_margin = 12,
.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
.lpcsel = 0,
};
2、配置menuconfig,使能LCD相关驱动
Device Drivers----->
Graphics support----->
<*> /dev/agpgart (AGP Support) --->
│ │ -*- VGA Arbitration
│ │ (64) Maximum number of GPUs
│ │ [*] Laptop Hybrid Graphics - GPU switching support
│ │ <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
│ │ < > Intel GMA500 Stub Driver (NEW)
│ │ {M} Lowlevel video output switch controls
│ │ {*} Support for frame buffer devices --->
--- Support for frame buffer devices
│ │ [*] Enable firmware EDID
│ │ [ ] Framebuffer foreign endianness support --->
│ │ [*] Enable Video Mode Handling Helpers
│ │ [ ] Enable Tile Blitting Support
│ │ *** Frame buffer hardware drivers ***
│ │ -*- Backlight & LCD device support --->
│ │ Display device support --->
│ │ Console display driver support --->
│ │ [*] Bootup logo --->
重新编译内核烧录后可看到屏幕左上角出现小企鹅,移植完成
相关文章推荐
- Android 数据存储
- LevelDb内幕
- 下拉刷新列表添加SwipeDismissListViewTouchListener实现滑动删除某一列。
- 获取subview
- taocode
- 天声人语
- 【Matlab开发】函数bsxfun的使用
- 加密jdbc配置文件中的用户名密码
- spring事务的传播行为
- 火狐firefox打不开的原因.及查看缓存位置
- 线程 和handle的应用
- Linux启动新进程的几种方法及比较
- 『《编程之法》读书笔记』——字符串旋转
- asp.net mvc实现rest风格返回json
- 2015河南科技学院高校csdn俱乐部--网线制作
- begoo 的路由 详细
- Flutter入门之无状态组件
- 图解VS2010打包全过程(转)
- zabbix实现mysql数据库的监控(二)
- 天声人语