Skip to content

Commit a1dec22

Browse files
committed
Merge omapdss header refactoring
Merge omapdss public header refactoring, which separates the public header into omapdrm and omapfb parts.
2 parents ecf140d + 26038aa commit a1dec22

98 files changed

Lines changed: 1081 additions & 751 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/mach-omap2/board-ldp.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@
3939
#include "gpmc.h"
4040
#include "gpmc-smsc911x.h"
4141

42-
#include <video/omapdss.h>
42+
#include <linux/platform_data/omapdss.h>
4343
#include <video/omap-panel-data.h>
4444

4545
#include "board-flash.h"
4646
#include "mux.h"
4747
#include "hsmmc.h"
4848
#include "control.h"
4949
#include "common-board-devices.h"
50+
#include "display.h"
5051

5152
#define LDP_SMSC911X_CS 1
5253
#define LDP_SMSC911X_GPIO 152

‎arch/arm/mach-omap2/board-rx51-video.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
#include <linux/spi/spi.h>
1616
#include <linux/mm.h>
1717
#include <asm/mach-types.h>
18-
#include <video/omapdss.h>
18+
#include <linux/platform_data/omapdss.h>
1919
#include <video/omap-panel-data.h>
2020

2121
#include <linux/platform_data/spi-omap2-mcspi.h>
2222

2323
#include "soc.h"
2424
#include "board-rx51.h"
25+
#include "display.h"
2526

2627
#include "mux.h"
2728

@@ -32,7 +33,6 @@
3233
static struct connector_atv_platform_data rx51_tv_pdata = {
3334
.name = "tv",
3435
.source = "venc.0",
35-
.connector_type = OMAP_DSS_VENC_TYPE_COMPOSITE,
3636
.invert_polarity = false,
3737
};
3838

‎arch/arm/mach-omap2/display.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <linux/mfd/syscon.h>
3030
#include <linux/regmap.h>
3131

32-
#include <video/omapdss.h>
32+
#include <linux/platform_data/omapdss.h>
3333
#include "omap_hwmod.h"
3434
#include "omap_device.h"
3535
#include "omap-pm.h"

‎arch/arm/mach-omap2/display.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ int omap_init_vout(void);
3333

3434
struct device_node * __init omapdss_find_dss_of_node(void);
3535

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+
3641
#endif

‎arch/arm/mach-omap2/dss-common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <linux/gpio.h>
2828
#include <linux/platform_device.h>
2929

30-
#include <video/omapdss.h>
30+
#include <linux/platform_data/omapdss.h>
3131
#include <video/omap-panel-data.h>
3232

3333
#include "soc.h"

‎drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
#include <linux/platform_device.h>
1515
#include <linux/of.h>
1616

17-
#include <video/omapdss.h>
1817
#include <video/omap-panel-data.h>
1918

19+
#include "../dss/omapdss.h"
20+
2021
struct panel_drv_data {
2122
struct omap_dss_device dssdev;
2223
struct omap_dss_device *in;
@@ -25,7 +26,6 @@ struct panel_drv_data {
2526

2627
struct omap_video_timings timings;
2728

28-
enum omap_dss_venc_type connector_type;
2929
bool invert_polarity;
3030
};
3131

@@ -45,10 +45,6 @@ static const struct omap_video_timings tvc_pal_timings = {
4545

4646
static const struct of_device_id tvc_of_match[];
4747

48-
struct tvc_of_data {
49-
enum omap_dss_venc_type connector_type;
50-
};
51-
5248
#define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
5349

5450
static int tvc_connect(struct omap_dss_device *dssdev)
@@ -99,7 +95,7 @@ static int tvc_enable(struct omap_dss_device *dssdev)
9995
in->ops.atv->set_timings(in, &ddata->timings);
10096

10197
if (!ddata->dev->of_node) {
102-
in->ops.atv->set_type(in, ddata->connector_type);
98+
in->ops.atv->set_type(in, OMAP_DSS_VENC_TYPE_COMPOSITE);
10399

104100
in->ops.atv->invert_vid_out_polarity(in,
105101
ddata->invert_polarity);
@@ -207,7 +203,6 @@ static int tvc_probe_pdata(struct platform_device *pdev)
207203

208204
ddata->in = in;
209205

210-
ddata->connector_type = pdata->connector_type;
211206
ddata->invert_polarity = pdata->invert_polarity;
212207

213208
dssdev = &ddata->dssdev;

‎drivers/gpu/drm/omapdrm/displays/connector-dvi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#include <linux/slab.h>
1616

1717
#include <drm/drm_edid.h>
18-
19-
#include <video/omapdss.h>
2018
#include <video/omap-panel-data.h>
2119

20+
#include "../dss/omapdss.h"
21+
2222
static const struct omap_video_timings dvic_default_timings = {
2323
.x_res = 640,
2424
.y_res = 480,

‎drivers/gpu/drm/omapdrm/displays/connector-hdmi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
#include <linux/of_gpio.h>
1818

1919
#include <drm/drm_edid.h>
20-
21-
#include <video/omapdss.h>
2220
#include <video/omap-panel-data.h>
2321

22+
#include "../dss/omapdss.h"
23+
2424
static const struct omap_video_timings hdmic_default_timings = {
2525
.x_res = 640,
2626
.y_res = 480,

‎drivers/gpu/drm/omapdrm/displays/encoder-opa362.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <linux/platform_device.h>
2020
#include <linux/slab.h>
2121

22-
#include <video/omapdss.h>
22+
#include "../dss/omapdss.h"
2323

2424
struct panel_drv_data {
2525
struct omap_dss_device dssdev;

‎drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#include <linux/slab.h>
1616
#include <linux/of_gpio.h>
1717

18-
#include <video/omapdss.h>
19-
#include <video/omap-panel-data.h>
18+
#include "../dss/omapdss.h"
2019

2120
struct panel_drv_data {
2221
struct omap_dss_device dssdev;

0 commit comments

Comments
 (0)