diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-06-03 05:40:27 -0400 |
---|---|---|
committer | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-06-03 09:00:45 -0400 |
commit | 60fc4bab9181be55d24f68aa196d864850d8297e (patch) | |
tree | feda264e6bc74cbd4b1d3d89a42f74ce4263ee78 | |
parent | c270e89bf2e0745da85a41178d312ef288ac5211 (diff) |
video/platform_data: omapdss: Create new header file for platform data
Create a new header file for platform data used by omapdss.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
-rw-r--r-- | include/linux/platform_data/omapdss.h | 42 | ||||
-rw-r--r-- | include/video/omapdss.h | 28 |
2 files changed, 43 insertions, 27 deletions
diff --git a/include/linux/platform_data/omapdss.h b/include/linux/platform_data/omapdss.h new file mode 100644 index 000000000000..dbb875abc44a --- /dev/null +++ b/include/linux/platform_data/omapdss.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2016 Texas Instruments, Inc. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef __OMAPDSS_PDATA_H | ||
11 | #define __OMAPDSS_PDATA_H | ||
12 | |||
13 | enum omapdss_version { | ||
14 | OMAPDSS_VER_UNKNOWN = 0, | ||
15 | OMAPDSS_VER_OMAP24xx, | ||
16 | OMAPDSS_VER_OMAP34xx_ES1, /* OMAP3430 ES1.0, 2.0 */ | ||
17 | OMAPDSS_VER_OMAP34xx_ES3, /* OMAP3430 ES3.0+ */ | ||
18 | OMAPDSS_VER_OMAP3630, | ||
19 | OMAPDSS_VER_AM35xx, | ||
20 | OMAPDSS_VER_OMAP4430_ES1, /* OMAP4430 ES1.0 */ | ||
21 | OMAPDSS_VER_OMAP4430_ES2, /* OMAP4430 ES2.0, 2.1, 2.2 */ | ||
22 | OMAPDSS_VER_OMAP4, /* All other OMAP4s */ | ||
23 | OMAPDSS_VER_OMAP5, | ||
24 | OMAPDSS_VER_AM43xx, | ||
25 | OMAPDSS_VER_DRA7xx, | ||
26 | }; | ||
27 | |||
28 | struct omap_dss_device; | ||
29 | |||
30 | /* Board specific data */ | ||
31 | struct omap_dss_board_info { | ||
32 | int num_devices; | ||
33 | struct omap_dss_device **devices; | ||
34 | struct omap_dss_device *default_device; | ||
35 | const char *default_display_name; | ||
36 | int (*dsi_enable_pads)(int dsi_id, unsigned int lane_mask); | ||
37 | void (*dsi_disable_pads)(int dsi_id, unsigned int lane_mask); | ||
38 | int (*set_min_bus_tput)(struct device *dev, unsigned long r); | ||
39 | enum omapdss_version version; | ||
40 | }; | ||
41 | |||
42 | #endif /* __OMAPDSS_PDATA_H */ | ||
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 0c7ae93ebd76..53ada70cf23c 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/kobject.h> | 22 | #include <linux/kobject.h> |
23 | #include <linux/device.h> | 23 | #include <linux/device.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/platform_data/omapdss.h> | ||
25 | 26 | ||
26 | #include <video/videomode.h> | 27 | #include <video/videomode.h> |
27 | 28 | ||
@@ -303,33 +304,6 @@ struct omap_dss_dsi_config { | |||
303 | enum omap_dss_dsi_trans_mode trans_mode; | 304 | enum omap_dss_dsi_trans_mode trans_mode; |
304 | }; | 305 | }; |
305 | 306 | ||
306 | enum omapdss_version { | ||
307 | OMAPDSS_VER_UNKNOWN = 0, | ||
308 | OMAPDSS_VER_OMAP24xx, | ||
309 | OMAPDSS_VER_OMAP34xx_ES1, /* OMAP3430 ES1.0, 2.0 */ | ||
310 | OMAPDSS_VER_OMAP34xx_ES3, /* OMAP3430 ES3.0+ */ | ||
311 | OMAPDSS_VER_OMAP3630, | ||
312 | OMAPDSS_VER_AM35xx, | ||
313 | OMAPDSS_VER_OMAP4430_ES1, /* OMAP4430 ES1.0 */ | ||
314 | OMAPDSS_VER_OMAP4430_ES2, /* OMAP4430 ES2.0, 2.1, 2.2 */ | ||
315 | OMAPDSS_VER_OMAP4, /* All other OMAP4s */ | ||
316 | OMAPDSS_VER_OMAP5, | ||
317 | OMAPDSS_VER_AM43xx, | ||
318 | OMAPDSS_VER_DRA7xx, | ||
319 | }; | ||
320 | |||
321 | /* Board specific data */ | ||
322 | struct omap_dss_board_info { | ||
323 | int num_devices; | ||
324 | struct omap_dss_device **devices; | ||
325 | struct omap_dss_device *default_device; | ||
326 | const char *default_display_name; | ||
327 | int (*dsi_enable_pads)(int dsi_id, unsigned lane_mask); | ||
328 | void (*dsi_disable_pads)(int dsi_id, unsigned lane_mask); | ||
329 | int (*set_min_bus_tput)(struct device *dev, unsigned long r); | ||
330 | enum omapdss_version version; | ||
331 | }; | ||
332 | |||
333 | struct omap_video_timings { | 307 | struct omap_video_timings { |
334 | /* Unit: pixels */ | 308 | /* Unit: pixels */ |
335 | u16 x_res; | 309 | u16 x_res; |