Chinaunix首页 | 论坛 | 博客
  • 博客访问: 141097
  • 博文数量: 30
  • 博客积分: 887
  • 博客等级: 准尉
  • 技术积分: 342
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-03 19:11
文章分类

全部博文(30)

文章存档

2012年(19)

2011年(1)

2010年(6)

2009年(4)

我的朋友

分类: 嵌入式

2012-02-22 18:05:52

所用内核版本为 linux_2.6.22

1.其实所要修改的只有 \arch\arm\mach-s3c2440\mach-smdk2440.c
  1. static struct s3c2410fb_mach_info smdk2440_lcd_cfg __initdata = {
  2.     .regs = {

  3.         .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
  4.                  S3C2410_LCDCON1_TFT |
  5.                  S3C2410_LCDCON1_CLKVAL(0x04),

  6.         .lcdcon2 = S3C2410_LCDCON2_VBPD(7) |
  7.                  S3C2410_LCDCON2_LINEVAL(319) |
  8.                  S3C2410_LCDCON2_VFPD(6) |
  9.                  S3C2410_LCDCON2_VSPW(3),

  10.         .lcdcon3 = S3C2410_LCDCON3_HBPD(19) |
  11.                  S3C2410_LCDCON3_HOZVAL(239) |
  12.                  S3C2410_LCDCON3_HFPD(7),

  13.         .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
  14.                  S3C2410_LCDCON4_HSPW(3),

  15.         .lcdcon5 = S3C2410_LCDCON5_FRM565 |
  16.                  S3C2410_LCDCON5_INVVLINE |
  17.                  S3C2410_LCDCON5_INVVFRAME |
  18.                  S3C2410_LCDCON5_PWREN |
  19.                  S3C2410_LCDCON5_HWSWP,
  20.     },

  21.     .gpccon = 0xaaaaaaaa,
  22.     .gpccon_mask = 0xffffffff,
  23.     .gpcup = 0xffffffff,
  24.     .gpcup_mask = 0xffffffff,
  25.     .gpdcon = 0xaaaaaaaa,
  26.     .gpdcon_mask = 0xffffffff,
  27.     .gpdup = 0x0000faff,
  28.     .gpdup_mask = 0xffffffff,

  29. // .lpcsel = ((0xCE6) & ~7) | 1<<4,
  30.     .type = S3C2410_LCDCON1_TFT,

  31.     .width = 240,
  32.     .height = 320,

  33.     .xres = {
  34.         .min = 240,
  35.         .max = 240,
  36.         .defval = 240,
  37.     },

  38.     .yres = {
  39.         .min = 320,
  40.         .max = 320,
  41.         .defval = 320,
  42.     },

  43.     .bpp = {
  44.         .min = 16,
  45.         .max = 16,
  46.         .defval = 16,
  47.     },
  48. };
2、配置内核以使用LCD
  1. Device Drivers --->
  2.     Graphics support --->
  3.         < > Lowlevel video output switch controls
  4.         <*> Support for frame buffer devices --->
  5.             --- Support for frame buffer devices
  6.             [*] Enable firmware EDID
  7.             [ ] Framebuffer foreign endianness support --->
  8.             [*] Enable Video Mode Handling Helpers
  9.             [ ] Enable Tile Blitting Support
  10.             *** Frame buffer hardware drivers ***
  11.             < > Epson S1D13XXX framebuffer support
  12.             <*> S3C2410 LCD framebuffer support
  13.             [ ] S3C2410 lcd debug messages
  14.             < > Silicon Motion SM501 framebuffer support
  15.             < > Virtual Frame Buffer support (ONLY FOR TESTING!)
  16.             < > E-Ink Metronome/8track controller support
  17.             < > Fujitsu MB862xx GDC support
  18.             < > E-Ink Broadsheet/Epson S1D13521 controller support
  19.         [*] Backlight & LCD device support --->
  20.             Display device support --->
  21.             Console display driver support --->
  22.         [*] Bootup logo --->
  23.             --- Bootup logo
  24.             [ ] Standard black and white Linux logo
  25.             [ ] Standard 16-color Linux logo
  26.             [*] Standard 224-color Linux logo (NEW)
3、重新make 将重做的uImage 替换原来的,那么LCD亮起,并且有小企鹅的图标。


阅读(2359) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~