Skip to content

Commit 9832e81

Browse files
committed
drm/imx: parallel-display: allow to determine bus format from the connected panel
Similarly to commit 5e501ed ("drm/imx: imx-ldb: allow to determine bus format from the connected panel"), if a panel is connected to the ldb output port via the of_graph bindings, the data mapping is determined from the display_info.bus_format field provided by the panel instead of from the optional interface_pix_fmt device tree property. Reported-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Tested-by: Gary Bisson <gary.bisson@boundarydevices.com>
1 parent a7ed3c2 commit 9832e81

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/imx/parallel-display.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ static int imx_pd_connector_get_modes(struct drm_connector *connector)
5454

5555
if (imxpd->panel && imxpd->panel->funcs &&
5656
imxpd->panel->funcs->get_modes) {
57+
struct drm_display_info *di = &connector->display_info;
58+
5759
num_modes = imxpd->panel->funcs->get_modes(imxpd->panel);
60+
if (!imxpd->bus_format && di->num_bus_formats)
61+
imxpd->bus_format = di->bus_formats[0];
5862
if (num_modes > 0)
5963
return num_modes;
6064
}

0 commit comments

Comments
 (0)