diff options
Diffstat (limited to 'include/video/omap-panel-data.h')
-rw-r--r-- | include/video/omap-panel-data.h | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/include/video/omap-panel-data.h b/include/video/omap-panel-data.h index 0c3b46d3daf3..6b2366fb6e53 100644 --- a/include/video/omap-panel-data.h +++ b/include/video/omap-panel-data.h | |||
@@ -27,6 +27,9 @@ | |||
27 | #ifndef __OMAP_PANEL_DATA_H | 27 | #ifndef __OMAP_PANEL_DATA_H |
28 | #define __OMAP_PANEL_DATA_H | 28 | #define __OMAP_PANEL_DATA_H |
29 | 29 | ||
30 | #include <video/omapdss.h> | ||
31 | #include <video/display_timing.h> | ||
32 | |||
30 | struct omap_dss_device; | 33 | struct omap_dss_device; |
31 | 34 | ||
32 | /** | 35 | /** |
@@ -147,4 +150,210 @@ struct panel_tpo_td043_data { | |||
147 | int nreset_gpio; | 150 | int nreset_gpio; |
148 | }; | 151 | }; |
149 | 152 | ||
153 | /** | ||
154 | * encoder_tfp410 platform data | ||
155 | * @name: name for this display entity | ||
156 | * @power_down_gpio: gpio number for PD pin (or -1 if not available) | ||
157 | * @data_lines: number of DPI datalines | ||
158 | */ | ||
159 | struct encoder_tfp410_platform_data { | ||
160 | const char *name; | ||
161 | const char *source; | ||
162 | int power_down_gpio; | ||
163 | int data_lines; | ||
164 | }; | ||
165 | |||
166 | /** | ||
167 | * encoder_tpd12s015 platform data | ||
168 | * @name: name for this display entity | ||
169 | * @ct_cp_hpd_gpio: CT_CP_HPD gpio number | ||
170 | * @ls_oe_gpio: LS_OE gpio number | ||
171 | * @hpd_gpio: HPD gpio number | ||
172 | */ | ||
173 | struct encoder_tpd12s015_platform_data { | ||
174 | const char *name; | ||
175 | const char *source; | ||
176 | |||
177 | int ct_cp_hpd_gpio; | ||
178 | int ls_oe_gpio; | ||
179 | int hpd_gpio; | ||
180 | }; | ||
181 | |||
182 | /** | ||
183 | * connector_dvi platform data | ||
184 | * @name: name for this display entity | ||
185 | * @source: name of the display entity used as a video source | ||
186 | * @i2c_bus_num: i2c bus number to be used for reading EDID | ||
187 | */ | ||
188 | struct connector_dvi_platform_data { | ||
189 | const char *name; | ||
190 | const char *source; | ||
191 | int i2c_bus_num; | ||
192 | }; | ||
193 | |||
194 | /** | ||
195 | * connector_hdmi platform data | ||
196 | * @name: name for this display entity | ||
197 | * @source: name of the display entity used as a video source | ||
198 | */ | ||
199 | struct connector_hdmi_platform_data { | ||
200 | const char *name; | ||
201 | const char *source; | ||
202 | }; | ||
203 | |||
204 | /** | ||
205 | * connector_atv platform data | ||
206 | * @name: name for this display entity | ||
207 | * @source: name of the display entity used as a video source | ||
208 | * @connector_type: composite/svideo | ||
209 | * @invert_polarity: invert signal polarity | ||
210 | */ | ||
211 | struct connector_atv_platform_data { | ||
212 | const char *name; | ||
213 | const char *source; | ||
214 | |||
215 | enum omap_dss_venc_type connector_type; | ||
216 | bool invert_polarity; | ||
217 | }; | ||
218 | |||
219 | /** | ||
220 | * panel_dpi platform data | ||
221 | * @name: name for this display entity | ||
222 | * @source: name of the display entity used as a video source | ||
223 | * @data_lines: number of DPI datalines | ||
224 | * @display_timing: timings for this panel | ||
225 | * @backlight_gpio: gpio to enable/disable the backlight (or -1) | ||
226 | * @enable_gpio: gpio to enable/disable the panel (or -1) | ||
227 | */ | ||
228 | struct panel_dpi_platform_data { | ||
229 | const char *name; | ||
230 | const char *source; | ||
231 | |||
232 | int data_lines; | ||
233 | |||
234 | const struct display_timing *display_timing; | ||
235 | |||
236 | int backlight_gpio; | ||
237 | int enable_gpio; | ||
238 | }; | ||
239 | |||
240 | /** | ||
241 | * panel_dsicm platform data | ||
242 | * @name: name for this display entity | ||
243 | * @source: name of the display entity used as a video source | ||
244 | * @reset_gpio: gpio to reset the panel (or -1) | ||
245 | * @use_ext_te: use external TE GPIO | ||
246 | * @ext_te_gpio: external TE GPIO | ||
247 | * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms) | ||
248 | * @use_dsi_backlight: true if panel uses DSI command to control backlight | ||
249 | * @pin_config: DSI pin configuration | ||
250 | */ | ||
251 | struct panel_dsicm_platform_data { | ||
252 | const char *name; | ||
253 | const char *source; | ||
254 | |||
255 | int reset_gpio; | ||
256 | |||
257 | bool use_ext_te; | ||
258 | int ext_te_gpio; | ||
259 | |||
260 | unsigned ulps_timeout; | ||
261 | |||
262 | bool use_dsi_backlight; | ||
263 | |||
264 | struct omap_dsi_pin_config pin_config; | ||
265 | }; | ||
266 | |||
267 | /** | ||
268 | * panel_acx565akm platform data | ||
269 | * @name: name for this display entity | ||
270 | * @source: name of the display entity used as a video source | ||
271 | * @reset_gpio: gpio to reset the panel (or -1) | ||
272 | * @datapairs: number of SDI datapairs | ||
273 | */ | ||
274 | struct panel_acx565akm_platform_data { | ||
275 | const char *name; | ||
276 | const char *source; | ||
277 | |||
278 | int reset_gpio; | ||
279 | |||
280 | int datapairs; | ||
281 | }; | ||
282 | |||
283 | /** | ||
284 | * panel_lb035q02 platform data | ||
285 | * @name: name for this display entity | ||
286 | * @source: name of the display entity used as a video source | ||
287 | * @data_lines: number of DPI datalines | ||
288 | * @backlight_gpio: gpio to enable/disable the backlight (or -1) | ||
289 | * @enable_gpio: gpio to enable/disable the panel (or -1) | ||
290 | */ | ||
291 | struct panel_lb035q02_platform_data { | ||
292 | const char *name; | ||
293 | const char *source; | ||
294 | |||
295 | int data_lines; | ||
296 | |||
297 | int backlight_gpio; | ||
298 | int enable_gpio; | ||
299 | }; | ||
300 | |||
301 | /** | ||
302 | * panel_sharp_ls037v7dw01 platform data | ||
303 | * @name: name for this display entity | ||
304 | * @source: name of the display entity used as a video source | ||
305 | * @data_lines: number of DPI datalines | ||
306 | * @resb_gpio: reset signal GPIO | ||
307 | * @ini_gpio: power on control GPIO | ||
308 | * @mo_gpio: selection for resolution(VGA/QVGA) GPIO | ||
309 | * @lr_gpio: selection for horizontal scanning direction GPIO | ||
310 | * @ud_gpio: selection for vertical scanning direction GPIO | ||
311 | */ | ||
312 | struct panel_sharp_ls037v7dw01_platform_data { | ||
313 | const char *name; | ||
314 | const char *source; | ||
315 | |||
316 | int data_lines; | ||
317 | |||
318 | int resb_gpio; | ||
319 | int ini_gpio; | ||
320 | int mo_gpio; | ||
321 | int lr_gpio; | ||
322 | int ud_gpio; | ||
323 | }; | ||
324 | |||
325 | /** | ||
326 | * panel-tpo-td043mtea1 platform data | ||
327 | * @name: name for this display entity | ||
328 | * @source: name of the display entity used as a video source | ||
329 | * @data_lines: number of DPI datalines | ||
330 | * @nreset_gpio: reset signal | ||
331 | */ | ||
332 | struct panel_tpo_td043mtea1_platform_data { | ||
333 | const char *name; | ||
334 | const char *source; | ||
335 | |||
336 | int data_lines; | ||
337 | |||
338 | int nreset_gpio; | ||
339 | }; | ||
340 | |||
341 | /** | ||
342 | * panel-nec-nl8048hl11 platform data | ||
343 | * @name: name for this display entity | ||
344 | * @source: name of the display entity used as a video source | ||
345 | * @data_lines: number of DPI datalines | ||
346 | * @res_gpio: reset signal | ||
347 | * @qvga_gpio: selection for resolution(QVGA/WVGA) | ||
348 | */ | ||
349 | struct panel_nec_nl8048hl11_platform_data { | ||
350 | const char *name; | ||
351 | const char *source; | ||
352 | |||
353 | int data_lines; | ||
354 | |||
355 | int res_gpio; | ||
356 | int qvga_gpio; | ||
357 | }; | ||
358 | |||
150 | #endif /* __OMAP_PANEL_DATA_H */ | 359 | #endif /* __OMAP_PANEL_DATA_H */ |