Merge tag 'powerpc-4.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux/fpc-iii.git] / include / video / omap-panel-data.h
blob56830d1dc762b34d0193c5b3468bd0e0612bc06b
1 /*
2 * Header containing platform_data structs for omap panels
4 * Copyright (C) 2013 Texas Instruments
5 * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
6 * Archit Taneja <archit@ti.com>
8 * Copyright (C) 2011 Texas Instruments
9 * Author: Mayuresh Janorkar <mayur@ti.com>
11 * Copyright (C) 2010 Canonical Ltd.
12 * Author: Bryan Wu <bryan.wu@canonical.com>
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License version 2 as published by
16 * the Free Software Foundation.
18 * This program is distributed in the hope that it will be useful, but WITHOUT
19 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21 * more details.
23 * You should have received a copy of the GNU General Public License along with
24 * this program. If not, see <http://www.gnu.org/licenses/>.
27 #ifndef __OMAP_PANEL_DATA_H
28 #define __OMAP_PANEL_DATA_H
30 #include <video/omapdss.h>
31 #include <video/display_timing.h>
33 struct omap_dss_device;
35 /**
36 * encoder_tfp410 platform data
37 * @name: name for this display entity
38 * @power_down_gpio: gpio number for PD pin (or -1 if not available)
39 * @data_lines: number of DPI datalines
41 struct encoder_tfp410_platform_data {
42 const char *name;
43 const char *source;
44 int power_down_gpio;
45 int data_lines;
49 /**
50 * connector_dvi platform data
51 * @name: name for this display entity
52 * @source: name of the display entity used as a video source
53 * @i2c_bus_num: i2c bus number to be used for reading EDID
55 struct connector_dvi_platform_data {
56 const char *name;
57 const char *source;
58 int i2c_bus_num;
61 /**
62 * connector_hdmi platform data
63 * @name: name for this display entity
64 * @source: name of the display entity used as a video source
66 struct connector_hdmi_platform_data {
67 const char *name;
68 const char *source;
71 /**
72 * connector_atv platform data
73 * @name: name for this display entity
74 * @source: name of the display entity used as a video source
75 * @connector_type: composite/svideo
76 * @invert_polarity: invert signal polarity
78 struct connector_atv_platform_data {
79 const char *name;
80 const char *source;
82 enum omap_dss_venc_type connector_type;
83 bool invert_polarity;
86 /**
87 * panel_dpi platform data
88 * @name: name for this display entity
89 * @source: name of the display entity used as a video source
90 * @data_lines: number of DPI datalines
91 * @display_timing: timings for this panel
92 * @backlight_gpio: gpio to enable/disable the backlight (or -1)
93 * @enable_gpio: gpio to enable/disable the panel (or -1)
95 struct panel_dpi_platform_data {
96 const char *name;
97 const char *source;
99 int data_lines;
101 const struct display_timing *display_timing;
103 int backlight_gpio;
104 int enable_gpio;
108 * panel_dsicm platform data
109 * @name: name for this display entity
110 * @source: name of the display entity used as a video source
111 * @reset_gpio: gpio to reset the panel (or -1)
112 * @use_ext_te: use external TE GPIO
113 * @ext_te_gpio: external TE GPIO
114 * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms)
115 * @use_dsi_backlight: true if panel uses DSI command to control backlight
116 * @pin_config: DSI pin configuration
118 struct panel_dsicm_platform_data {
119 const char *name;
120 const char *source;
122 int reset_gpio;
124 bool use_ext_te;
125 int ext_te_gpio;
127 unsigned ulps_timeout;
129 bool use_dsi_backlight;
131 struct omap_dsi_pin_config pin_config;
135 * panel_acx565akm platform data
136 * @name: name for this display entity
137 * @source: name of the display entity used as a video source
138 * @reset_gpio: gpio to reset the panel (or -1)
139 * @datapairs: number of SDI datapairs
141 struct panel_acx565akm_platform_data {
142 const char *name;
143 const char *source;
145 int reset_gpio;
147 int datapairs;
151 * panel_lb035q02 platform data
152 * @name: name for this display entity
153 * @source: name of the display entity used as a video source
154 * @data_lines: number of DPI datalines
155 * @backlight_gpio: gpio to enable/disable the backlight (or -1)
156 * @enable_gpio: gpio to enable/disable the panel (or -1)
158 struct panel_lb035q02_platform_data {
159 const char *name;
160 const char *source;
162 int data_lines;
164 int backlight_gpio;
165 int enable_gpio;
169 * panel_sharp_ls037v7dw01 platform data
170 * @name: name for this display entity
171 * @source: name of the display entity used as a video source
172 * @data_lines: number of DPI datalines
173 * @resb_gpio: reset signal GPIO
174 * @ini_gpio: power on control GPIO
175 * @mo_gpio: selection for resolution(VGA/QVGA) GPIO
176 * @lr_gpio: selection for horizontal scanning direction GPIO
177 * @ud_gpio: selection for vertical scanning direction GPIO
179 struct panel_sharp_ls037v7dw01_platform_data {
180 const char *name;
181 const char *source;
183 int data_lines;
185 int resb_gpio;
186 int ini_gpio;
187 int mo_gpio;
188 int lr_gpio;
189 int ud_gpio;
193 * panel-tpo-td043mtea1 platform data
194 * @name: name for this display entity
195 * @source: name of the display entity used as a video source
196 * @data_lines: number of DPI datalines
197 * @nreset_gpio: reset signal
199 struct panel_tpo_td043mtea1_platform_data {
200 const char *name;
201 const char *source;
203 int data_lines;
205 int nreset_gpio;
209 * panel-nec-nl8048hl11 platform data
210 * @name: name for this display entity
211 * @source: name of the display entity used as a video source
212 * @data_lines: number of DPI datalines
213 * @res_gpio: reset signal
214 * @qvga_gpio: selection for resolution(QVGA/WVGA)
216 struct panel_nec_nl8048hl11_platform_data {
217 const char *name;
218 const char *source;
220 int data_lines;
222 int res_gpio;
223 int qvga_gpio;
227 * panel-tpo-td028ttec1 platform data
228 * @name: name for display entity
229 * @source: name of the display entity used as a video source
230 * @data_lines: number of DPI datalines
232 struct panel_tpo_td028ttec1_platform_data {
233 const char *name;
234 const char *source;
236 int data_lines;
239 #endif /* __OMAP_PANEL_DATA_H */