summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach
diff options
context:
space:
mode:
authorJuergen nogit Beisert <jbe@pengutronix.de>2009-12-07 17:08:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-09 17:05:55 +0100
commit4f24fe1b52fe0d0a69f854ab11ed3ffde7d44bbe (patch)
tree903a20c94ae1e24a462555f176875e7aa895db69 /arch/arm/mach-imx/include/mach
parent2af6fe64dc0358f1dfc7739f22e812493015a153 (diff)
downloadbarebox-4f24fe1b52fe0d0a69f854ab11ed3ffde7d44bbe.tar.gz
barebox-4f24fe1b52fe0d0a69f854ab11ed3ffde7d44bbe.tar.xz
fb: Add a i.MX IPU framebuffer driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach')
-rw-r--r--arch/arm/mach-imx/include/mach/imx-ipu-fb.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/imx-ipu-fb.h b/arch/arm/mach-imx/include/mach/imx-ipu-fb.h
new file mode 100644
index 0000000000..c0cc883959
--- /dev/null
+++ b/arch/arm/mach-imx/include/mach/imx-ipu-fb.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2008
+ * Guennadi Liakhovetski, DENX Software Engineering, <lg@denx.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __MACH_IMX_IPU_FB_H__
+#define __MACH_IMX_IPU_FB_H__
+
+#include <fb.h>
+
+/* Proprietary FB_SYNC_ flags */
+#define FB_SYNC_OE_ACT_HIGH 0x80000000
+#define FB_SYNC_CLK_INVERT 0x40000000
+#define FB_SYNC_DATA_INVERT 0x20000000
+#define FB_SYNC_CLK_IDLE_EN 0x10000000
+#define FB_SYNC_SHARP_MODE 0x08000000
+#define FB_SYNC_SWAP_RGB 0x04000000
+#define FB_SYNC_CLK_SEL_EN 0x02000000
+
+/*
+ * struct mx3fb_platform_data - mx3fb platform data
+ */
+struct imx_ipu_fb_platform_data {
+ struct fb_videomode *mode;
+ unsigned char bpp;
+ void __iomem *framebuffer;
+};
+
+#endif /* __MACH_IMX_IPU_FB_H__ */
+