clk: rockchip: rk3288: make aclk_vio1_niu a critical clock
Subsystems (2)
PATCH 1/1 clk: rockchip: rk3288: make aclk_vio1_niu a critical clock
According to the pd blocks, VIO1_NIU is required by RGA,ISP and VOP1. Then at least one VIO_NIU should be turned on to supply eDP, HDMI, MIPI.
If eDP,HDMI,MIPI is inited early than VOP or RGA is inited early than VOP1, system will hang.
So make aclk_vio1_niu a critical clock and turn it on at all times.
--- drivers/clk/rockchip/clk-rk3288.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/rockchip/clk-rk3288.c +1 -0
@@ -815,6 +815,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {static const char *const rk3288_critical_clocks[]__initconst = {"aclk_cpu" ,"aclk_peri" , +"aclk_vio1_niu" ,"hclk_peri" ,"pclk_pd_pmu" , };
Signature · 1 line
2.7.4
Heiko Stuebner
maintainerHi Jacob,
Am Mittwoch, 11. Januar 2017, 09:26:32 CET schrieb Jacob Chen:
Quoted 7 lines
According to the pd blocks,
VIO1_NIUis required by RGA,ISP and VOP1. Then at least oneVIO_NIUshould be turned on to supply eDP, HDMI, MIPI.If eDP,HDMI,MIPI is inited early than VOP or RGA is inited early than VOP1, system will hang.
So make
aclk_vio1_niua critical clock and turn it on at all times.
NIU clocks are part of the interconnect, which we do not model at all yet, so I guess all of those should never be turned off (until an interconnect driver handles them).
Could you just make all of them critical in one go please, so that we don't have to each clock on its own once things break?
Thanks
Heiko
Quoted 18 lines
Signed-off-by Jacob Chen <[email protected]>--- drivers/clk/rockchip/clk-rk3288.c | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0
b/drivers/clk/rockchip/clk-rk3288.cindex f071c24..59ee244 100644drivers/clk/rockchip/clk-rk3288.c +0
-0@@ -815,6 +815,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[]
__initdata= { static const char *const rk3288_critical_clocks[]__initconst= { "aclk_cpu",drivers/clk/rockchip/clk-rk3288.c +1
-0"aclk_peri" , +"aclk_vio1_niu" ,"hclk_peri" , "pclk_pd_pmu", };