aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-20 07:43:14 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-02-23 02:39:19 -0500
commit8f5e35a7942afe70eb0ba0d8193801b7989ae03a (patch)
treeb0bc502046eb4421085ee905e7fab1797298bc83 /drivers
parent82d5b3e2319c9d1ea46c95b1e8b0db66d6f05a84 (diff)
OMAPFB: Move old omapfb private structs to a private include file
include/linux/omapfb.h contains structs that are used only by the omapfb driver. Move the structs into drivers/video/omap/omapfb.h. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/omap/omapfb.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/video/omap/omapfb.h b/drivers/video/omap/omapfb.h
index 3a5ab13845fc..07fe49878892 100644
--- a/drivers/video/omap/omapfb.h
+++ b/drivers/video/omap/omapfb.h
@@ -47,6 +47,31 @@
47 47
48struct omapfb_device; 48struct omapfb_device;
49 49
50#ifdef CONFIG_ARCH_OMAP1
51#define OMAPFB_PLANE_NUM 1
52#else
53#define OMAPFB_PLANE_NUM 3
54#endif
55
56struct omapfb_mem_region {
57 u32 paddr;
58 void __iomem *vaddr;
59 unsigned long size;
60 u8 type; /* OMAPFB_PLANE_MEM_* */
61 enum omapfb_color_format format;/* OMAPFB_COLOR_* */
62 unsigned format_used:1; /* Must be set when format is set.
63 * Needed b/c of the badly chosen 0
64 * base for OMAPFB_COLOR_* values
65 */
66 unsigned alloc:1; /* allocated by the driver */
67 unsigned map:1; /* kernel mapped by the driver */
68};
69
70struct omapfb_mem_desc {
71 int region_cnt;
72 struct omapfb_mem_region region[OMAPFB_PLANE_NUM];
73};
74
50struct lcd_panel { 75struct lcd_panel {
51 const char *name; 76 const char *name;
52 int config; /* TFT/STN, signal inversion */ 77 int config; /* TFT/STN, signal inversion */