0003-clk-rockchip-rk3288-prefer-vdpu-for-vcodec-clock-sou.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From b82f540967f6a732a22bbd236457b864951aeda7 Mon Sep 17 00:00:00 2001
  2. From: Myy <myy@miouyouyou.fr>
  3. Date: Sun, 14 May 2017 10:13:26 +0000
  4. Subject: [PATCH] clk: rockchip: rk3288: prefer vdpu for vcodec clock source
  5. Patch provided by Randy Li. The original commit message reads :
  6. _______________
  7. The RK3288 CRU system clock solution would suggest use
  8. the vdpu clock source for the VPU(aclk_vpu and hclk_vpu).
  9. Reading the registers of VPU(both VEPU and VDPU) would become all high
  10. when the vepu is used as the clock source. It may be a bug in the SoC,
  11. not sure whether it is fixed at RK3288W.
  12. Signed-off-by: Randy Li <ayaka@soulik.info>
  13. _______________
  14. This also resolves a freeze when loading the OOT Video Codec driver
  15. Signed-off-by: Myy <myy@miouyouyou.fr>
  16. ---
  17. drivers/clk/rockchip/clk-rk3288.c | 2 +-
  18. 1 file changed, 1 insertion(+), 1 deletion(-)
  19. diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c
  20. index 1227f74..f218256 100644
  21. --- a/drivers/clk/rockchip/clk-rk3288.c
  22. +++ b/drivers/clk/rockchip/clk-rk3288.c
  23. @@ -215,7 +215,7 @@ PNAME(mux_hsadcout_p) = { "hsadc_src", "ext_hsadc" };
  24. PNAME(mux_edp_24m_p) = { "ext_edp_24m", "xin24m" };
  25. PNAME(mux_tspout_p) = { "cpll", "gpll", "npll", "xin27m" };
  26. -PNAME(mux_aclk_vcodec_pre_p) = { "aclk_vepu", "aclk_vdpu" };
  27. +PNAME(mux_aclk_vcodec_pre_p) = { "aclk_vdpu", "aclk_vepu" };
  28. PNAME(mux_usbphy480m_p) = { "sclk_otgphy1_480m", "sclk_otgphy2_480m",
  29. "sclk_otgphy0_480m" };
  30. PNAME(mux_hsicphy480m_p) = { "cpll", "gpll", "usbphy480m_src" };
  31. --
  32. 2.10.2