drm/mediatek: dpi: Add bus format negotiation
authorRex-BC Chen <rex-bc.chen@mediatek.com>
Wed, 26 May 2021 08:52:19 +0000 (16:52 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Fri, 4 Jun 2021 00:58:56 +0000 (08:58 +0800)
commitec8747c52434b69cea2b18068e72f051e23d3839
treec7208cf85b7df35f220bbcf472ebb3fa2407bc60
parentbe63f6e8601ff21139da93623754717e92cbd8db
drm/mediatek: dpi: Add bus format negotiation

Add the atomic_get_output_bus_fmts, atomic_get_input_bus_fmts to negotiate
the possible output and input formats for the current mode and monitor,
and use the negotiated formats in a basic atomic_check callback.

Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c