mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
clk: rockchip: rk3399: keep the pclk_vio is CLK_IGNORE_UNUSED and critical
When we use the MIPI screen, the driver will unprepare and disable
the phy_cfg, it will diable its parent pclk_vio:
dw_mipi_dsi_phy_init
--> clk_disable_unprepare
--> clk_disable
--> clk_core_disable(core->parent)
The pclk_vio supply power for pclk_vio_grf, hence, disable pclk_vio_grf will
cause other drivers failed to operate GRF.
Change-Id: I6d5bd27b9478da09209130f1fd5a62c0d4bb1785
Reported-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
@@ -1085,7 +1085,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = {
|
||||
COMPOSITE(ACLK_VIO, "aclk_vio", mux_pll_src_cpll_gpll_ppll_p, CLK_IGNORE_UNUSED,
|
||||
RK3399_CLKSEL_CON(42), 6, 2, MFLAGS, 0, 5, DFLAGS,
|
||||
RK3399_CLKGATE_CON(11), 0, GFLAGS),
|
||||
COMPOSITE_NOMUX(PCLK_VIO, "pclk_vio", "aclk_vio", 0,
|
||||
COMPOSITE_NOMUX(PCLK_VIO, "pclk_vio", "aclk_vio", CLK_IGNORE_UNUSED,
|
||||
RK3399_CLKSEL_CON(43), 0, 5, DFLAGS,
|
||||
RK3399_CLKGATE_CON(11), 1, GFLAGS),
|
||||
|
||||
@@ -1564,6 +1564,7 @@ static const char *const rk3399_cru_critical_clocks[] __initconst = {
|
||||
|
||||
/* ddrc */
|
||||
"sclk_ddrc"
|
||||
"pclk_vio",
|
||||
};
|
||||
|
||||
static const char *const rk3399_pmucru_critical_clocks[] __initconst = {
|
||||
|
||||
Reference in New Issue
Block a user