diff options
author | Nickey Yang <nickey.yang@rock-chips.com> | 2017-04-27 09:38:06 +0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2017-05-18 01:00:09 +0200 |
commit | fe122d4dfc130be1e87b367b0dc9b39044b262bd (patch) | |
tree | 021e8b921fcdfd1d6af2ea62a57fd4c4af7a48c7 /src/soc/rockchip/rk3399/clock.c | |
parent | 2684efc49213802dcd36bd9bddd7a69851b8774a (diff) | |
download | coreboot-fe122d4dfc130be1e87b367b0dc9b39044b262bd.tar.xz |
rockchip/rk3399: Add MIPI driver
This patch configures clock for mipi and then
adds mipi driver for support innolux-p079zca
mipi panel in rk3399 scarlet.
Change-Id: I02475eefb187c619c614b1cd20e97074bc8d917f
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Reviewed-on: https://review.coreboot.org/19477
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/rockchip/rk3399/clock.c')
-rw-r--r-- | src/soc/rockchip/rk3399/clock.c | 10 |
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)); +} |