public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] MX31: Added LCD support for QONG module
@ 2010-04-21  7:56 Stefano Babic
  2010-04-27  8:11 ` Anatolij Gustschin
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Babic @ 2010-04-21  7:56 UTC (permalink / raw)
  To: u-boot

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>
---
 drivers/video/mx3fb.c  |   17 +++++++++++++++++
 include/configs/qong.h |   11 +++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index 1e1d507..1d2832a 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
 
diff --git a/include/configs/qong.h b/include/configs/qong.h
index 1d187d0..1a2f19f 100644
--- a/include/configs/qong.h
+++ b/include/configs/qong.h
@@ -75,6 +75,17 @@
 #define CONFIG_DNET_BASE	(CS1_BASE + QONG_FPGA_PERIPH_SIZE)
 #define CONFIG_NET_MULTI	1
 
+/* Framebuffer and LCD */
+#define CONFIG_LCD
+#define CONFIG_VIDEO_MX3
+#define	CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+#define LCD_BPP		LCD_COLOR16
+#define	CONFIG_SPLASH_SCREEN
+#define CONFIG_CMD_BMP
+#define CONFIG_BMP_16BPP
+#define CONFIG_DISPLAY_VBEST_VGG322403
+
 /*
  * Reducing the ARP timeout from default 5 seconds to 200ms we speed up the
  * initial TFTP transfer, should the user wish one, significantly.
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] MX31: Added LCD support for QONG module
  2010-04-21  7:56 [U-Boot] [PATCH] MX31: Added LCD support for QONG module Stefano Babic
@ 2010-04-27  8:11 ` Anatolij Gustschin
  0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2010-04-27  8:11 UTC (permalink / raw)
  To: u-boot

On Wed, 21 Apr 2010 09:56:31 +0200
Stefano Babic <sbabic@denx.de> wrote:

> 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>
> ---
>  drivers/video/mx3fb.c  |   17 +++++++++++++++++
>  include/configs/qong.h |   11 +++++++++++
>  2 files changed, 28 insertions(+), 0 deletions(-)

Applied to u-boot-video/master after slightly fixing comment
indentation. Thanks!

Best regards,
Anatolij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-27  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21  7:56 [U-Boot] [PATCH] MX31: Added LCD support for QONG module Stefano Babic
2010-04-27  8:11 ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox