Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a200126 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAPDSS: add pdata->default_display_name



We can currently set the default display (i.e. the initial display) in
the omapdss platform data by using a pointer to the default
omap_dss_device. Internally omapdss uses the device's name to resolve
the default display.

As it's difficult to get the omap_dss_device pointer in the future,
after we've changed the omapdss device model, this patch adds a new way
to define the default display, by using the name of the display.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarArchit Taneja <archit@ti.com>
parent 317ddd25
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -243,6 +243,8 @@ static int __init omap_dss_probe(struct platform_device *pdev)


	if (def_disp_name)
	if (def_disp_name)
		core.default_display_name = def_disp_name;
		core.default_display_name = def_disp_name;
	else if (pdata->default_display_name)
		core.default_display_name = pdata->default_display_name;
	else if (pdata->default_device)
	else if (pdata->default_device)
		core.default_display_name = pdata->default_device->name;
		core.default_display_name = pdata->default_device->name;


+1 −0
Original line number Original line Diff line number Diff line
@@ -365,6 +365,7 @@ struct omap_dss_board_info {
	int num_devices;
	int num_devices;
	struct omap_dss_device **devices;
	struct omap_dss_device **devices;
	struct omap_dss_device *default_device;
	struct omap_dss_device *default_device;
	const char *default_display_name;
	int (*dsi_enable_pads)(int dsi_id, unsigned lane_mask);
	int (*dsi_enable_pads)(int dsi_id, unsigned lane_mask);
	void (*dsi_disable_pads)(int dsi_id, unsigned lane_mask);
	void (*dsi_disable_pads)(int dsi_id, unsigned lane_mask);
	int (*set_min_bus_tput)(struct device *dev, unsigned long r);
	int (*set_min_bus_tput)(struct device *dev, unsigned long r);