]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: mtk_dpi: Support AFIFO 1T1P output and conversion
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 17 Feb 2025 15:48:01 +0000 (16:48 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sun, 2 Mar 2025 13:58:26 +0000 (13:58 +0000)
commit6e1931e541c7942afaa95db1c3aac1c0ceb865ef
treec647bccf9053f4583c7a8a4cef352ed744c89d57
parent713ee441445af282f11e00b7ff950aa3738b0a1e
drm/mediatek: mtk_dpi: Support AFIFO 1T1P output and conversion

On some SoCs, like MT8195 and MT8188, the DPI's FIFO controller
(afifo) supports outputting either one or two pixels per round
regardless of the input being 1T1P or 1T2P.

Add a `output_1pixel` member to struct mtk_dpi_conf which, if
set, will enable outputting one pixel per clock.

In case the input is two pixel per clock (1T2P), the AFIFO HW
will automatically (and internally) convert it to 1T1P.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20250217154836.108895-9-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c
drivers/gpu/drm/mediatek/mtk_dpi_regs.h