drm/mediatek: dpi: Implement a swap_input toggle in SoC config
authorGuillaume Ranquet <granquet@baylibre.com>
Fri, 1 Jul 2022 03:58:36 +0000 (11:58 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 4 Jul 2022 14:27:48 +0000 (22:27 +0800)
commit3145095fae25de45b029746730f5249823ba059c
tree30b2e39a7eabdcc560af39fc6313b21c8853c165
parentcf060519e48e7ca9844325d73bc3225182ac6223
drm/mediatek: dpi: Implement a swap_input toggle in SoC config

The hardware design of dp_intf does not support input swap, so we add
a bit of flexibility to support SoCs without swap_input support.
We also add a warning message if the hardware is not supported and it
needs to swap input.

Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220701035845.16458-8-rex-bc.chen@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c