summaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3399/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/rockchip/rk3399/clock.c')
-rw-r--r--src/soc/rockchip/rk3399/clock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/rockchip/rk3399/clock.c b/src/soc/rockchip/rk3399/clock.c
index 7e205d2ba4..35c96bcf37 100644
--- a/src/soc/rockchip/rk3399/clock.c
+++ b/src/soc/rockchip/rk3399/clock.c
@@ -953,3 +953,13 @@ void rkclk_configure_edp(unsigned int hz)
(src_clk_div - 1) <<
CLK_PCLK_EDP_DIV_CON_SHIFT));
}
+
+void rkclk_configure_mipi(void)
+{
+ /* Enable clk_mipidphy_ref and clk_mipidphy_cfg */
+ write32(&cru_ptr->clkgate_con[11],
+ RK_CLRBITS(1 << 14 | 1 << 15));
+ /* Enable pclk_mipi_dsi0 */
+ write32(&cru_ptr->clkgate_con[29],
+ RK_CLRBITS(1 << 1));
+}