All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] MX5: Make IPU display output and pixel format configurable
@ 2011-09-27 12:09 Marek Vasut
  2011-09-27 12:22 ` Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Marek Vasut @ 2011-09-27 12:09 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 drivers/video/mxc_ipuv3_fb.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
index a66981c..c4443e8 100644
--- a/drivers/video/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc_ipuv3_fb.c
@@ -42,6 +42,16 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+/* Use DISP #1 by default. */
+#ifndef	CONFIG_VIDEO_MX5_OUTPUT
+#define	CONFIG_VIDEO_MX5_OUTPUT	0
+#endif
+
+/* Use RGB666 pixel format by default. */
+#ifndef	CONFIG_VIDEO_MX5_PIXFMT
+#define	CONFIG_VIDEO_MX5_PIXFMT	IPU_PIX_FMT_RGB666
+#endif
+
 void *lcd_base;			/* Start of framebuffer memory	*/
 void *lcd_console_address;	/* Start of console buffer	*/
 
@@ -550,7 +560,7 @@ static int mxcfb_probe(u32 interface_pix_fmt, struct fb_videomode *mode)
 		mxcfbi->blank = FB_BLANK_POWERDOWN;
 	}
 
-	mxcfbi->ipu_di = 0;
+	mxcfbi->ipu_di = CONFIG_VIDEO_MX5_OUTPUT;
 
 	ipu_disp_set_global_alpha(mxcfbi->ipu_ch, 1, 0x80);
 	ipu_disp_set_color_key(mxcfbi->ipu_ch, 0, 0);
@@ -636,7 +646,7 @@ int mx51_fb_init(struct fb_videomode *mode)
 	lcd_base += 56;
 
 	debug("Framebuffer at 0x%x\n", (unsigned int)lcd_base);
-	ret = mxcfb_probe(IPU_PIX_FMT_RGB666, mode);
+	ret = mxcfb_probe(CONFIG_VIDEO_MX5_PIXFMT, mode);
 
 	return ret;
 }
-- 
1.7.5.4

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

end of thread, other threads:[~2011-10-06 21:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-27 12:09 [U-Boot] [PATCH] MX5: Make IPU display output and pixel format configurable Marek Vasut
2011-09-27 12:22 ` Fabio Estevam
2011-09-27 12:31   ` Marek Vasut
2011-09-27 12:28 ` Stefano Babic
2011-09-27 12:43 ` [U-Boot] [PATCH V2] " Marek Vasut
2011-09-27 12:50   ` Stefano Babic
2011-09-27 12:58     ` Marek Vasut
2011-09-27 13:07       ` Stefano Babic
2011-09-27 13:19         ` Marek Vasut
2011-10-06 21:20   ` Wolfgang Denk
2011-10-06 21:32     ` Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.