drm: xlnx: zynqmp_dpsub: Set input live format
authorAnatoliy Klymenko <anatoliy.klymenko@amd.com>
Tue, 16 Apr 2024 20:31:41 +0000 (13:31 -0700)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 24 Apr 2024 14:51:19 +0000 (17:51 +0300)
commit1b5151bd3a2e076653a935874b39dd2c3a00452a
treee8c76eb827d6c969a95e24825b43f3e59353b1cd
parent1836fd5ed98db85f249bf755978c964c2607a25d
drm: xlnx: zynqmp_dpsub: Set input live format

Program live video input format according to selected media bus format.

In the bridge mode of operation, DPSUB is connected to FPGA CRTC which
almost certainly supports a single media bus format as its output. Expect
this to be delivered via the new bridge atomic state. Program DPSUB
registers accordingly.

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-6-c7f379b7168e@amd.com
drivers/gpu/drm/xlnx/zynqmp_disp.c
drivers/gpu/drm/xlnx/zynqmp_disp.h
drivers/gpu/drm/xlnx/zynqmp_dp.c