Helper2416开发板LCD内核驱动配置
1、arch/arm/plat-samsung/include/plat/map-base.h
#define S3C_VA_LCD S3C_ADDR(0 x01100000) /* LCD控制器基址映射*/
2、arch/arm/mach-s3c64xx/include/mach/regs-lcd.h //LCD控制器寄存器以及相关位操作
3、drivers/video/samsung
//内核自带的LCD驱动
4、 linux/arch/arm/mach-s3c6410/mach-smdk6410.c
//设置相关IO,实现对LCD背光控制、液晶屏电源的管理、复位信号的管理、显示屏亮度控制
5、arch/arm/mach-s3c2410/include/mach/fb.h
//LCD控制器寄存器的定义、相关IO和LCD的描述结构体
6、include/linux/fb.h
//帧缓冲的参数结构体和操作函数
7、在内核驱动中的相关配置
make menuconfig
Power management options --->
[ ] Power Management support
必然要去掉,不然会有
drivers/video/samsung/s3cfb_fimd4x.c:1440:2: error: implicit declaration of function ""s3c6410_pm_do_save""的错误,愁闷了半天
<*> Support for frame buffer devices --->
< > Samsung S3C framebuffer support
<*> S3C Framebuffer Support (eXtended)
Select LCD Type (4.3 inch 480 x272 TFT LCD) --->
<*> Advanced options for S3C Framebuffer
Select BPP(Bits Per Pixel) (16 BPP) --->
(4) Number of Framebuffers
[ ] Enable Virtual Screen (NEW)
[*] Enable Double Buffering
[ ] Backlight & LCD device support --->
Console display driver support --->
<*> Framebuffer Console support
这个也必然要选,不然会有
drivers/built-in.o:(.data+0 x174): undefined reference to `soft_cursor""的错误,此中解决这些错误花了我不少时候。
[*] Bootup logo --->
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo