aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-02-12 04:29:17 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-03 08:17:46 -0400
commitc3f80cbcac28dee4503a229bf1cc50c43425d857 (patch)
treef074f2a64be7fb42ebbb93606163abe02e192489 /include/video
parenta0d8dde9cbde712fad65822152d2721eec1ca656 (diff)
OMAPDSS: add fields to panels' platform data
Forthcoming panel patches will change the panel drivers to use platform data to pass panel's gpios to the panel driver. This patch adds the required fields and platform data structs to the omap-panel-data.h file, so that the board files can be changed independently of the panel driver changes. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/omap-panel-data.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/video/omap-panel-data.h b/include/video/omap-panel-data.h
index 40a06b5b82de..6b55839b73fc 100644
--- a/include/video/omap-panel-data.h
+++ b/include/video/omap-panel-data.h
@@ -34,11 +34,18 @@ struct omap_dss_device;
34 * @name: panel name 34 * @name: panel name
35 * @platform_enable: platform specific panel enable function 35 * @platform_enable: platform specific panel enable function
36 * @platform_disable: platform specific panel disable function 36 * @platform_disable: platform specific panel disable function
37 * @num_gpios: number of gpios connected to panel
38 * @gpios: gpio numbers on the platform
39 * @gpio_invert: configure gpio as active high or low
37 */ 40 */
38struct panel_generic_dpi_data { 41struct panel_generic_dpi_data {
39 const char *name; 42 const char *name;
40 int (*platform_enable)(struct omap_dss_device *dssdev); 43 int (*platform_enable)(struct omap_dss_device *dssdev);
41 void (*platform_disable)(struct omap_dss_device *dssdev); 44 void (*platform_disable)(struct omap_dss_device *dssdev);
45
46 int num_gpios;
47 int gpios[10];
48 bool gpio_invert[10];
42}; 49};
43 50
44/** 51/**
@@ -100,4 +107,46 @@ struct tfp410_platform_data {
100 int power_down_gpio; 107 int power_down_gpio;
101}; 108};
102 109
110/**
111 * sharp ls panel driver configuration data
112 * @resb_gpio: reset signal
113 * @ini_gpio: power on control
114 * @mo_gpio: selection for resolution(VGA/QVGA)
115 * @lr_gpio: selection for horizontal scanning direction
116 * @ud_gpio: selection for vertical scanning direction
117 */
118struct panel_sharp_ls037v7dw01_data {
119 int resb_gpio;
120 int ini_gpio;
121 int mo_gpio;
122 int lr_gpio;
123 int ud_gpio;
124};
125
126/**
127 * acx565akm panel driver configuration data
128 * @reset_gpio: reset signal
129 */
130struct panel_acx565akm_data {
131 int reset_gpio;
132};
133
134/**
135 * nec nl8048 panel driver configuration data
136 * @res_gpio: reset signal
137 * @qvga_gpio: selection for resolution(QVGA/WVGA)
138 */
139struct panel_nec_nl8048_data {
140 int res_gpio;
141 int qvga_gpio;
142};
143
144/**
145 * tpo td043 panel driver configuration data
146 * @nreset_gpio: reset signal
147 */
148struct panel_tpo_td043_data {
149 int nreset_gpio;
150};
151
103#endif /* __OMAP_PANEL_DATA_H */ 152#endif /* __OMAP_PANEL_DATA_H */