]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: mtk_dsi: Add registers to pdata to fix MT8186/MT8188
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 19 Dec 2024 11:27:33 +0000 (12:27 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 30 Dec 2024 14:50:38 +0000 (14:50 +0000)
commit76aed5e00ff2625e0ec4b40c75f3514bdb27fae4
tree99a2588e3255a81330c7e935ce510bc39ee00348
parent8fe3ee95da1bf42830e9b02c70f111b53ab65229
drm/mediatek: mtk_dsi: Add registers to pdata to fix MT8186/MT8188

Registers DSI_VM_CMD and DSI_SHADOW_DEBUG start at different
addresses in both MT8186 and MT8188 compared to the older IPs.

Add two members in struct mtk_dsi_driver_data to specify the
offsets for these two registers on a per-SoC basis, then do
specify those in all of the currently present SoC driver data.

This fixes writes to the Video Mode Command Packet Control
register, fixing enablement of command packet transmission
(VM_CMD_EN) and allowance of this transmission during the
VFP period (TS_VFP_EN) on both MT8186 and MT8188.

Fixes: 03d7adc41027 ("drm/mediatek: Add mt8186 dsi compatible to mtk_dsi.c")
Fixes: 814d5341f314 ("drm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20241219112733.47907-1-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c