Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[sfrench/cifs-2.6.git] / include / video / omap-panel-data.h
1 /*
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
30 #include <video/display_timing.h>
31
32 /**
33  * connector_atv platform data
34  * @name: name for this display entity
35  * @source: name of the display entity used as a video source
36  * @invert_polarity: invert signal polarity
37  */
38 struct connector_atv_platform_data {
39         const char *name;
40         const char *source;
41
42         bool invert_polarity;
43 };
44
45 /**
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  */
54 struct 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
66 /**
67  * 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  */
73 struct panel_acx565akm_platform_data {
74         const char *name;
75         const char *source;
76
77         int reset_gpio;
78
79         int datapairs;
80 };
81
82 #endif /* __OMAP_PANEL_DATA_H */