Archit Taneja | a0d8dde | 2013-02-12 16:46:46 +0530 | [diff] [blame] | 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 | |
Tomi Valkeinen | 04f0ff0 | 2013-05-24 14:21:56 +0300 | [diff] [blame] | 30 | #include <video/display_timing.h> |
| 31 | |
Archit Taneja | a0d8dde | 2013-02-12 16:46:46 +0530 | [diff] [blame] | 32 | /** |
Tomi Valkeinen | 61a7f24 | 2013-05-24 14:21:30 +0300 | [diff] [blame] | 33 | * connector_atv platform data |
| 34 | * @name: name for this display entity |
| 35 | * @source: name of the display entity used as a video source |
Tomi Valkeinen | 61a7f24 | 2013-05-24 14:21:30 +0300 | [diff] [blame] | 36 | * @invert_polarity: invert signal polarity |
| 37 | */ |
| 38 | struct connector_atv_platform_data { |
| 39 | const char *name; |
| 40 | const char *source; |
| 41 | |
Tomi Valkeinen | 61a7f24 | 2013-05-24 14:21:30 +0300 | [diff] [blame] | 42 | bool invert_polarity; |
| 43 | }; |
| 44 | |
Tomi Valkeinen | 04f0ff0 | 2013-05-24 14:21:56 +0300 | [diff] [blame] | 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 | |
Tomi Valkeinen | dbc2384 | 2013-05-24 14:22:20 +0300 | [diff] [blame] | 66 | /** |
Tomi Valkeinen | 8419274 | 2013-05-24 14:22:31 +0300 | [diff] [blame] | 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 | |
Archit Taneja | a0d8dde | 2013-02-12 16:46:46 +0530 | [diff] [blame] | 82 | #endif /* __OMAP_PANEL_DATA_H */ |