diff options
author | Guido Günther <agx@sigxcpu.org> | 2021-10-11 15:41:25 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2021-10-12 11:17:49 +0200 |
commit | 0c464eee746abadf0cc36a6a91ab05d90891578c (patch) | |
tree | 4046055945f01a388eec6a8b64b04c9cc4efb37c /drivers | |
parent | 1311f3dfce7e2c9fe21edce2c3eefa744109a4ec (diff) | |
download | linux-0c464eee746abadf0cc36a6a91ab05d90891578c.tar.bz2 |
drm/panel: st7703: Add media bus format
This allows the DSI bridge to detect the correct bus format.
We currently only support MEDIA_BUS_FMT_RGB888_1X24.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/d7ebeec861f4518c8497a5e07d09d5a9fd123d3d.1633959458.git.agx@sigxcpu.org
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/panel/panel-sitronix-st7703.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c index a2c303e5732c..73f69c929a75 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c @@ -453,6 +453,10 @@ disable_vcc: return ret; } +static const u32 mantix_bus_formats[] = { + MEDIA_BUS_FMT_RGB888_1X24, +}; + static int st7703_get_modes(struct drm_panel *panel, struct drm_connector *connector) { @@ -474,6 +478,10 @@ static int st7703_get_modes(struct drm_panel *panel, connector->display_info.height_mm = mode->height_mm; drm_mode_probed_add(connector, mode); + drm_display_info_set_bus_formats(&connector->display_info, + mantix_bus_formats, + ARRAY_SIZE(mantix_bus_formats)); + return 1; } |