summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-04-21 09:56:31 +0200
committerAnatolij Gustschin <agust@denx.de>2010-04-27 23:13:37 +0200
commit7c8cf0d0c7b12c7c63765e936cf760dc2c7d7306 (patch)
tree520750ba653fd6416396b8324dad4670175b6880 /drivers
parent8e98f5f70b269a77416a990b90ad8d853c5a0d73 (diff)
downloadu-boot-imx-7c8cf0d0c7b12c7c63765e936cf760dc2c7d7306.zip
u-boot-imx-7c8cf0d0c7b12c7c63765e936cf760dc2c7d7306.tar.gz
u-boot-imx-7c8cf0d0c7b12c7c63765e936cf760dc2c7d7306.tar.bz2
MX31: Added LCD support for QONG module
Added support for LCD and splash image to the QONG module. The supported display is VBEST-VGG322403. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/mx3fb.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index 1e1d507..99a595e 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -56,6 +56,7 @@ void lcd_panel_disable(void)
#define msleep(a) udelay(a * 1000)
+#ifndef CONFIG_DISPLAY_VBEST_VGG322403
#define XRES 240
#define YRES 320
#define PANEL_TYPE IPU_PANEL_TFT
@@ -70,6 +71,22 @@ void lcd_panel_disable(void)
#define SIG_POL (DI_D3_DRDY_SHARP_POL | DI_D3_CLK_POL)
#define IF_CONF 0
#define IF_CLK_DIV 0x175
+#else /* Display Vbest VGG322403 */
+#define XRES 320
+#define YRES 240
+#define PANEL_TYPE IPU_PANEL_TFT
+#define PIXEL_CLK 156000
+#define PIXEL_FMT IPU_PIX_FMT_RGB666
+#define H_START_WIDTH 20 /* left_margin */
+#define H_SYNC_WIDTH 30 /* hsync_len */
+#define H_END_WIDTH (38 + 30) /* right_margin + hsync_len */
+#define V_START_WIDTH 7 /* upper_margin */
+#define V_SYNC_WIDTH 3 /* vsync_len */
+#define V_END_WIDTH (26 + 3) /* lower_margin + vsync_len */
+#define SIG_POL (DI_D3_DRDY_SHARP_POL | DI_D3_CLK_POL)
+#define IF_CONF 0
+#define IF_CLK_DIV 0x175
+#endif
#define LCD_COLOR_IPU LCD_COLOR16