blob: e7003ee6e0638da1dfcf0ab2b0beac4fedd6e875 [file] [log] [blame]
Archit Tanejaa0d8dde2013-02-12 16:46:46 +05301/*
2 * Header containing platform_data structs for omap panels
3 *
4 * Copyright (C) 2013 Texas Instruments
5 * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
6 * Archit Taneja <archit@ti.com>
7 *
8 * Copyright (C) 2011 Texas Instruments
9 * Author: Mayuresh Janorkar <mayur@ti.com>
10 *
11 * Copyright (C) 2010 Canonical Ltd.
12 * Author: Bryan Wu <bryan.wu@canonical.com>
13 *
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.
17 *
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.
22 *
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/>.
25 */
26
27#ifndef __OMAP_PANEL_DATA_H
28#define __OMAP_PANEL_DATA_H
29
Tomi Valkeinen04f0ff02013-05-24 14:21:56 +030030#include <video/display_timing.h>
31
Archit Tanejaa0d8dde2013-02-12 16:46:46 +053032/**
Tomi Valkeinen61a7f242013-05-24 14:21:30 +030033 * connector_atv platform data
34 * @name: name for this display entity
35 * @source: name of the display entity used as a video source
Tomi Valkeinen61a7f242013-05-24 14:21:30 +030036 * @invert_polarity: invert signal polarity
37 */
38struct connector_atv_platform_data {
39 const char *name;
40 const char *source;
41
Tomi Valkeinen61a7f242013-05-24 14:21:30 +030042 bool invert_polarity;
43};
44
Tomi Valkeinen04f0ff02013-05-24 14:21:56 +030045/**
46 * panel_dpi platform data
47 * @name: name for this display entity
48 * @source: name of the display entity used as a video source
49 * @data_lines: number of DPI datalines
50 * @display_timing: timings for this panel
51 * @backlight_gpio: gpio to enable/disable the backlight (or -1)
52 * @enable_gpio: gpio to enable/disable the panel (or -1)
53 */
54struct panel_dpi_platform_data {
55 const char *name;
56 const char *source;
57
58 int data_lines;
59
60 const struct display_timing *display_timing;
61
62 int backlight_gpio;
63 int enable_gpio;
64};
65
Tomi Valkeinendbc23842013-05-24 14:22:20 +030066/**
Tomi Valkeinen84192742013-05-24 14:22:31 +030067 * panel_acx565akm platform data
68 * @name: name for this display entity
69 * @source: name of the display entity used as a video source
70 * @reset_gpio: gpio to reset the panel (or -1)
71 * @datapairs: number of SDI datapairs
72 */
73struct panel_acx565akm_platform_data {
74 const char *name;
75 const char *source;
76
77 int reset_gpio;
78
79 int datapairs;
80};
81
Archit Tanejaa0d8dde2013-02-12 16:46:46 +053082#endif /* __OMAP_PANEL_DATA_H */