[PATCH v1 8/8] HACK: drm: rcar-du: dsi: use-extal-clk hack
Tomi Valkeinen
tomi.valkeinen at ideasonboard.com
Thu Nov 17 12:25:47 UTC 2022
From: Tomi Valkeinen <tomi.valkeinen+renesas at ideasonboard.com>
Renesas BSP kernel does this for Whitehawk board. It is not clear what
it does, as the bits are marked reserved in the SoC documentation.
Do not merge.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas at ideasonboard.com>
---
drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c
index 723c35726c38..c264cb689664 100644
--- a/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c
+++ b/drivers/gpu/drm/rcar-du/rcar_mipi_dsi.c
@@ -598,6 +598,10 @@ static int rcar_mipi_dsi_startup(struct rcar_mipi_dsi *dsi,
return -ENODEV;
}
+ /* XXX HACK for Whitehawk board. "use_extal_clk" from BSP Kernel. */
+ if (dsi->info->model == RCAR_DSI_R8A779G0)
+ rcar_mipi_dsi_set(dsi, CLOCKSET1, 0x0100000C);
+
/* PLL Clock Setting */
rcar_mipi_dsi_clr(dsi, CLOCKSET1, CLOCKSET1_SHADOW_CLEAR);
rcar_mipi_dsi_set(dsi, CLOCKSET1, CLOCKSET1_SHADOW_CLEAR);
--
2.34.1
More information about the dri-devel
mailing list