blob: 42b77249ee1412878467dfe594a27aad449641af [file] [log] [blame]
Thomas Gleixnercaab2772019-06-03 07:44:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Archit Tanejaa0d8dde2013-02-12 16:46:46 +05302/*
3 * Header containing platform_data structs for omap panels
4 *
5 * Copyright (C) 2013 Texas Instruments
6 * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
7 * Archit Taneja <archit@ti.com>
8 *
9 * Copyright (C) 2011 Texas Instruments
10 * Author: Mayuresh Janorkar <mayur@ti.com>
11 *
12 * Copyright (C) 2010 Canonical Ltd.
13 * Author: Bryan Wu <bryan.wu@canonical.com>
Archit Tanejaa0d8dde2013-02-12 16:46:46 +053014 */
15
16#ifndef __OMAP_PANEL_DATA_H
17#define __OMAP_PANEL_DATA_H
18
Tomi Valkeinen04f0ff02013-05-24 14:21:56 +030019#include <video/display_timing.h>
20
Archit Tanejaa0d8dde2013-02-12 16:46:46 +053021/**
Tomi Valkeinen61a7f242013-05-24 14:21:30 +030022 * connector_atv platform data
23 * @name: name for this display entity
24 * @source: name of the display entity used as a video source
Tomi Valkeinen61a7f242013-05-24 14:21:30 +030025 * @invert_polarity: invert signal polarity
26 */
27struct connector_atv_platform_data {
28 const char *name;
29 const char *source;
30
Tomi Valkeinen61a7f242013-05-24 14:21:30 +030031 bool invert_polarity;
32};
33
Tomi Valkeinen04f0ff02013-05-24 14:21:56 +030034/**
35 * panel_dpi platform data
36 * @name: name for this display entity
37 * @source: name of the display entity used as a video source
38 * @data_lines: number of DPI datalines
39 * @display_timing: timings for this panel
40 * @backlight_gpio: gpio to enable/disable the backlight (or -1)
41 * @enable_gpio: gpio to enable/disable the panel (or -1)
42 */
43struct panel_dpi_platform_data {
44 const char *name;
45 const char *source;
46
47 int data_lines;
48
49 const struct display_timing *display_timing;
50
51 int backlight_gpio;
52 int enable_gpio;
53};
54
Tomi Valkeinendbc23842013-05-24 14:22:20 +030055/**
Tomi Valkeinen84192742013-05-24 14:22:31 +030056 * panel_acx565akm platform data
57 * @name: name for this display entity
58 * @source: name of the display entity used as a video source
59 * @reset_gpio: gpio to reset the panel (or -1)
60 * @datapairs: number of SDI datapairs
61 */
62struct panel_acx565akm_platform_data {
63 const char *name;
64 const char *source;
65
66 int reset_gpio;
67
68 int datapairs;
69};
70
Archit Tanejaa0d8dde2013-02-12 16:46:46 +053071#endif /* __OMAP_PANEL_DATA_H */