drm: xlnx: zynqmp_dpsub: Anounce supported input formats
authorAnatoliy Klymenko <anatoliy.klymenko@amd.com>
Tue, 16 Apr 2024 20:31:39 +0000 (13:31 -0700)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 24 Apr 2024 14:51:18 +0000 (17:51 +0300)
commitb0f0469ab662159f182f5af292b71cc5d42468a8
treeda0942dda4e92350034a1787a6052c839f948a73
parent2e03666cbd649931903bcbd043fc5294179fa3d2
drm: xlnx: zynqmp_dpsub: Anounce supported input formats

DPSUB in bridge mode supports multiple input media bus formats.

Announce the list of supported input media bus formats via
drm_bridge.atomic_get_input_bus_fmts callback. Introduce a set of live
input formats supported by DPSUB. Add safeguards to format list functions
to prevent their misuse in the different layer modes contexts.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Anatoliy Klymenko <anatoliy.klymenko@amd.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240416-dp-live-fmt-v4-4-c7f379b7168e@amd.com
drivers/gpu/drm/xlnx/zynqmp_disp.c
drivers/gpu/drm/xlnx/zynqmp_disp.h
drivers/gpu/drm/xlnx/zynqmp_dp.c