lpc3250 TFT-4238液晶支援

來源:互聯網
上載者:User
TFT-4238液晶和原來的TFT-6862差別較大。 這個屏的時鐘和訊號極性為低電平,需要修改LCD_POL寄存器(0x3104 0008)的bit14為1. 【arch/arm/mach-lpc32xx/clocks-lpc32xx.c】1623         tmp &= ~(0xF800001F);1624         tmp &= ~CLCDC_LCDTIMING2_BCD;1625         tmp |= (div & 0x1F);1626         tmp |= (((div >> 5) & 0x1F) << 27);1627         tmp |= (1<<14);//POL low ABING for TFT-42381628         __raw_writel(tmp, CLCD_POL(io_p2v(LCD_BASE)));1629         local_onoff_enable(clk, 1);  【./arch/arm/mach-lpc32xx/clocks-lpc32xx.c】233 /* TFT-4238 */234 static struct clcd_panel conn_lcd_panel = {235     .mode       = {236         .name       = "QVGA TFT-4238",237         .refresh    = 65,238         .xres       = 320,239         .yres       = 240,240         .pixclock   = 80000,241         .left_margin    = 19,242         .right_margin   = 12,243         .upper_margin   = 1,244         .lower_margin   = 4,245         .hsync_len  = 3,246         .vsync_len  = 16,247         .sync       = 1,248         .vmode      = FB_VMODE_NONINTERLACED,249     },250     .width      = -1,251     .height     = -1,252     .tim2       = (CLCDC_LCDTIMING2_IVS | CLCDC_LCDTIMING2_IHS),253     .cntl       = (CNTL_BGR | CLCDC_LCDCTRL_TFT | CNTL_LCDVCOMP(1) |254                 CLCDC_LCDCTRL_BPP16_565),255     .bpp        = 16,256 };257 #define PANEL_SIZE (3 * SZ_64K)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.