kernel 文件修改:
1.driver/video/mxc/mxcfb_epson_vga.c
(1).static struct fb_videomode video_modes[] 改为:
  1. static struct fb_videomode video_modes[] = {
  2.         {
  3.                 /* 320x480 @ 60 Hz */
  4.                 "Elite-HVGA", 60, 320, 480, 86566, 20, 40, 5, 1, 10, 2,
  5.                 FB_SYNC_CLK_LAT_FALL,
  6.                 FB_VMODE_NONINTERLACED,
  7.                 0,},
  8. };
复制代码
(2).static void lcd_init(void)改为:
  1. static void lcd_init(void)
  2. {
  3.         u16 i;
  4. const u16 cmd[] = {
  5.           0x11,
  6.           0xD0, param(0x07), param(0x41), param(0x0F),
  7.           0xD1, param(0x00), param(0x3E), param(0x1F),
  8.           0xD2, param(0x01), param(0x10),
  9.           0xC0, param(0x00), param(0x3B), param(0x00), param(0x02),
  10.                 param(0x11),
  11.           0xC5, param(0x02),
  12. //          0xC6, param(0x1B),
  13.           0xC6, param(0x02),
  14.           0xC8, param(0x66), param(0x66), param(0x66), param(0x66),
  15.                 param(0x0E), param(0x1E), param(0x66), param(0x66),
  16.                 param(0x77), param(0x66), param(0x0F), param(0x0F),
  17.           0x36, param(0x0A),    // set_address_mode, RGB order
  18.           0x3A, param(0x66),        // 0x60: RGB=666; 0x50: RGB=565; 0x10: RGB=111
  19.           0xB4, param(0x11),
  20.           0x29,
  21.           0x2C
  22. };

  23.         if (lcd_spi) {
  24.                 spi_write(lcd_spi, (const u8 *)cmd, ARRAY_SIZE(cmd));
  25.         } else {
  26.                 for (i = 0; i < sizeof(cmd) / 2; i++)
  27.                 {
  28.                         ipu_disp_direct_write(DIRECT_ASYNC1, cmd[i], 0);
  29.                 }
  30.                 msleep(1);
  31.                 ipu_uninit_channel(DIRECT_ASYNC1);
  32.         }
  33. }
复制代码
2.arch/arm/mach-mx51/mx51_3stack.c
  1. static struct mxc_lcd_platform_data lcd_data = {
  2.         .core_reg = "VIOHI",
  3.         .io_reg = "SW4",
  4.         .reset = lcd_reset,
  5. };
复制代码
改 为
  1. static struct mxc_lcd_platform_data lcd_data = {
  2.         .core_reg = "VSD",
  3.         .io_reg = "SW4",
  4.         .reset = lcd_reset,
  5. };
复制代码
3.arch/arm/mach-mx51/mx51_3stack_gpio.c
void gpio_lcd_active(void)修改为:
  1. void gpio_lcd_active(void)
  2. {
  3.         mxc_request_iomux(MX51_PIN_NANDF_CS6, IOMUX_CONFIG_ALT3);
  4.         mxc_set_gpio_direction(MX51_PIN_NANDF_CS6, 0);
  5.         mxc_set_gpio_dataout(MX51_PIN_NANDF_CS6, 1);

  6.         mxc_request_iomux(MX51_PIN_DI1_D1_CS, IOMUX_CONFIG_ALT4);
  7.         mxc_set_gpio_direction(MX51_PIN_DI1_D1_CS, 0);
  8.         mxc_set_gpio_dataout(MX51_PIN_DI1_D1_CS, 0);
  9.        
  10.         mxc_request_iomux(MX51_PIN_DI_GP2, IOMUX_CONFIG_ALT0);
  11.         mxc_request_iomux(MX51_PIN_DI_GP3, IOMUX_CONFIG_ALT0);
  12. }