drm/omap: add support for physical size hints from display drivers
While physical size information is automatically parsed for EDID based displays, we need to provide it manually for displays providing one fixed mode. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
committed by
Tomi Valkeinen
parent
1a80d6ac2f
commit
b070d6e84a
@@ -149,6 +149,12 @@ static int omap_connector_get_modes(struct drm_connector *connector)
|
||||
drm_mode_set_name(mode);
|
||||
drm_mode_probed_add(connector, mode);
|
||||
|
||||
if (dssdrv->get_size) {
|
||||
dssdrv->get_size(dssdev,
|
||||
&connector->display_info.width_mm,
|
||||
&connector->display_info.height_mm);
|
||||
}
|
||||
|
||||
n = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user