diff options
author | Tony Lindgren <tony@atomide.com> | 2016-07-11 02:47:12 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-07-11 02:47:12 -0400 |
commit | e15d11ea550eb7e0e3164a8e8b0fe04588194fde (patch) | |
tree | bebd301e4f2ae7b4f27a40d3c9cf5992743018fb | |
parent | 79cdad3635b3a253d712aba115fa274ef94a8c6b (diff) | |
parent | f8e0db9722e069f48f58e191948e85f6254879db (diff) |
Merge remote-tracking branch 'peter/peter/for-4.8_omapdss_part1' into omap-for-v4.8/legacy
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-video.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/display.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/display.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap2/dss-common.c | 2 | ||||
-rw-r--r-- | include/linux/platform_data/omapdss.h | 42 | ||||
-rw-r--r-- | include/video/omapdss.h | 31 |
7 files changed, 54 insertions, 35 deletions
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index d9c3ffc39329..390795b334c3 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include "gpmc.h" | 39 | #include "gpmc.h" |
40 | #include "gpmc-smsc911x.h" | 40 | #include "gpmc-smsc911x.h" |
41 | 41 | ||
42 | #include <video/omapdss.h> | 42 | #include <linux/platform_data/omapdss.h> |
43 | #include <video/omap-panel-data.h> | 43 | #include <video/omap-panel-data.h> |
44 | 44 | ||
45 | #include "board-flash.h" | 45 | #include "board-flash.h" |
@@ -47,6 +47,7 @@ | |||
47 | #include "hsmmc.h" | 47 | #include "hsmmc.h" |
48 | #include "control.h" | 48 | #include "control.h" |
49 | #include "common-board-devices.h" | 49 | #include "common-board-devices.h" |
50 | #include "display.h" | ||
50 | 51 | ||
51 | #define LDP_SMSC911X_CS 1 | 52 | #define LDP_SMSC911X_CS 1 |
52 | #define LDP_SMSC911X_GPIO 152 | 53 | #define LDP_SMSC911X_GPIO 152 |
diff --git a/arch/arm/mach-omap2/board-rx51-video.c b/arch/arm/mach-omap2/board-rx51-video.c index 9cfebc5c7455..180c6aa633bd 100644 --- a/arch/arm/mach-omap2/board-rx51-video.c +++ b/arch/arm/mach-omap2/board-rx51-video.c | |||
@@ -15,13 +15,14 @@ | |||
15 | #include <linux/spi/spi.h> | 15 | #include <linux/spi/spi.h> |
16 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
17 | #include <asm/mach-types.h> | 17 | #include <asm/mach-types.h> |
18 | #include <video/omapdss.h> | 18 | #include <linux/platform_data/omapdss.h> |
19 | #include <video/omap-panel-data.h> | 19 | #include <video/omap-panel-data.h> |
20 | 20 | ||
21 | #include <linux/platform_data/spi-omap2-mcspi.h> | 21 | #include <linux/platform_data/spi-omap2-mcspi.h> |
22 | 22 | ||
23 | #include "soc.h" | 23 | #include "soc.h" |
24 | #include "board-rx51.h" | 24 | #include "board-rx51.h" |
25 | #include "display.h" | ||
25 | 26 | ||
26 | #include "mux.h" | 27 | #include "mux.h" |
27 | 28 | ||
@@ -32,7 +33,6 @@ | |||
32 | static struct connector_atv_platform_data rx51_tv_pdata = { | 33 | static struct connector_atv_platform_data rx51_tv_pdata = { |
33 | .name = "tv", | 34 | .name = "tv", |
34 | .source = "venc.0", | 35 | .source = "venc.0", |
35 | .connector_type = OMAP_DSS_VENC_TYPE_COMPOSITE, | ||
36 | .invert_polarity = false, | 36 | .invert_polarity = false, |
37 | }; | 37 | }; |
38 | 38 | ||
diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index 6ab13d18c636..70b3eaf085e4 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/mfd/syscon.h> | 29 | #include <linux/mfd/syscon.h> |
30 | #include <linux/regmap.h> | 30 | #include <linux/regmap.h> |
31 | 31 | ||
32 | #include <video/omapdss.h> | 32 | #include <linux/platform_data/omapdss.h> |
33 | #include "omap_hwmod.h" | 33 | #include "omap_hwmod.h" |
34 | #include "omap_device.h" | 34 | #include "omap_device.h" |
35 | #include "omap-pm.h" | 35 | #include "omap-pm.h" |
diff --git a/arch/arm/mach-omap2/display.h b/arch/arm/mach-omap2/display.h index 7375854b16c7..78f253005279 100644 --- a/arch/arm/mach-omap2/display.h +++ b/arch/arm/mach-omap2/display.h | |||
@@ -33,4 +33,9 @@ int omap_init_vout(void); | |||
33 | 33 | ||
34 | struct device_node * __init omapdss_find_dss_of_node(void); | 34 | struct device_node * __init omapdss_find_dss_of_node(void); |
35 | 35 | ||
36 | struct omap_dss_board_info; | ||
37 | |||
38 | /* Init with the board info */ | ||
39 | int omap_display_init(struct omap_dss_board_info *board_data); | ||
40 | |||
36 | #endif | 41 | #endif |
diff --git a/arch/arm/mach-omap2/dss-common.c b/arch/arm/mach-omap2/dss-common.c index ea2be0f5953b..1d583bc0b1a9 100644 --- a/arch/arm/mach-omap2/dss-common.c +++ b/arch/arm/mach-omap2/dss-common.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/gpio.h> | 27 | #include <linux/gpio.h> |
28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
29 | 29 | ||
30 | #include <video/omapdss.h> | 30 | #include <linux/platform_data/omapdss.h> |
31 | #include <video/omap-panel-data.h> | 31 | #include <video/omap-panel-data.h> |
32 | 32 | ||
33 | #include "soc.h" | 33 | #include "soc.h" |
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 8e14ad7327c9..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,36 +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 | /* Init with the board info */ | ||
334 | extern int omap_display_init(struct omap_dss_board_info *board_data); | ||
335 | |||
336 | struct omap_video_timings { | 307 | struct omap_video_timings { |
337 | /* Unit: pixels */ | 308 | /* Unit: pixels */ |
338 | u16 x_res; | 309 | u16 x_res; |