所用内核版本为 linux_2.6.22
1.其实所要修改的只有 \arch\arm\mach-s3c2440\mach-smdk2440.c
- static struct s3c2410fb_mach_info smdk2440_lcd_cfg __initdata = {
-
.regs = {
-
-
.lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
-
S3C2410_LCDCON1_TFT |
-
S3C2410_LCDCON1_CLKVAL(0x04),
-
-
.lcdcon2 = S3C2410_LCDCON2_VBPD(7) |
-
S3C2410_LCDCON2_LINEVAL(319) |
-
S3C2410_LCDCON2_VFPD(6) |
-
S3C2410_LCDCON2_VSPW(3),
-
-
.lcdcon3 = S3C2410_LCDCON3_HBPD(19) |
-
S3C2410_LCDCON3_HOZVAL(239) |
-
S3C2410_LCDCON3_HFPD(7),
-
-
.lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
-
S3C2410_LCDCON4_HSPW(3),
-
-
.lcdcon5 = S3C2410_LCDCON5_FRM565 |
-
S3C2410_LCDCON5_INVVLINE |
-
S3C2410_LCDCON5_INVVFRAME |
-
S3C2410_LCDCON5_PWREN |
-
S3C2410_LCDCON5_HWSWP,
-
},
-
-
.gpccon = 0xaaaaaaaa,
-
.gpccon_mask = 0xffffffff,
-
.gpcup = 0xffffffff,
-
.gpcup_mask = 0xffffffff,
-
.gpdcon = 0xaaaaaaaa,
-
.gpdcon_mask = 0xffffffff,
-
.gpdup = 0x0000faff,
-
.gpdup_mask = 0xffffffff,
-
-
// .lpcsel = ((0xCE6) & ~7) | 1<<4,
-
.type = S3C2410_LCDCON1_TFT,
-
-
.width = 240,
-
.height = 320,
-
-
.xres = {
-
.min = 240,
-
.max = 240,
-
.defval = 240,
-
},
-
-
.yres = {
-
.min = 320,
-
.max = 320,
-
.defval = 320,
-
},
-
-
.bpp = {
-
.min = 16,
-
.max = 16,
-
.defval = 16,
-
},
-
};
2、配置内核以使用LCD
- Device Drivers --->
-
Graphics support --->
-
< > 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 ***
-
< > Epson S1D13XXX framebuffer support
-
<*> S3C2410 LCD framebuffer support
-
[ ] S3C2410 lcd debug messages
-
< > Silicon Motion SM501 framebuffer support
-
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
-
< > E-Ink Metronome/8track controller support
-
< > Fujitsu MB862xx GDC support
-
< > E-Ink Broadsheet/Epson S1D13521 controller support
-
[*] Backlight & LCD device support --->
-
Display device support --->
-
Console display driver support --->
-
[*] Bootup logo --->
-
--- Bootup logo
-
[ ] Standard black and white Linux logo
-
[ ] Standard 16-color Linux logo
-
[*] Standard 224-color Linux logo (NEW)
3、重新make 将重做的uImage 替换原来的,那么LCD亮起,并且有小企鹅的图标。
阅读(2359) | 评论(0) | 转发(0) |