Advertisement
Guest User

Untitled

a guest
Oct 27th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. commit e875fc11a7876ff87b075da4e679264983b43c07
  2. Author: Marian Mihailescu <mihailescu2m@gmail.com>
  3. Date: Tue Oct 15 16:49:25 2019 +1030
  4.  
  5. clk: samsung: exynos5420: add VPLL rate table
  6.  
  7. Add new table rate for VPLL for Exynos 542x SoC required to support
  8. Mali GPU clock frequencies.
  9.  
  10. diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c
  11. index 7670cc596c74..fcb2977c2331 100644
  12. --- a/drivers/clk/samsung/clk-exynos5420.c
  13. +++ b/drivers/clk/samsung/clk-exynos5420.c
  14. @@ -1414,6 +1414,17 @@ static const struct samsung_pll_rate_table exynos5420_epll_24mhz_tbl[] = {
  15. PLL_36XX_RATE(24 * MHZ, 32768001U, 131, 3, 5, 4719),
  16. };
  17.  
  18. +static const struct samsung_pll_rate_table exynos5420_vpll_24mhz_tbl[] = {
  19. + PLL_35XX_RATE(24 * MHZ, 600000000U, 200, 2, 2),
  20. + PLL_35XX_RATE(24 * MHZ, 543000000U, 181, 2, 2),
  21. + PLL_35XX_RATE(24 * MHZ, 480000000U, 160, 2, 2),
  22. + PLL_35XX_RATE(24 * MHZ, 420000000U, 140, 2, 2),
  23. + PLL_35XX_RATE(24 * MHZ, 350000000U, 175, 3, 2),
  24. + PLL_35XX_RATE(24 * MHZ, 266000000U, 266, 3, 3),
  25. + PLL_35XX_RATE(24 * MHZ, 177000000U, 118, 2, 3),
  26. + PLL_35XX_RATE(24 * MHZ, 100000000U, 200, 3, 4),
  27. +};
  28. +
  29. static struct samsung_pll_clock exynos5x_plls[nr_plls] __initdata = {
  30. [apll] = PLL(pll_2550, CLK_FOUT_APLL, "fout_apll", "fin_pll", APLL_LOCK,
  31. APLL_CON0, NULL),
  32. @@ -1538,6 +1549,7 @@ static void __init exynos5x_clk_init(struct device_node *np,
  33. exynos5x_plls[apll].rate_table = exynos5420_pll2550x_24mhz_tbl;
  34. exynos5x_plls[epll].rate_table = exynos5420_epll_24mhz_tbl;
  35. exynos5x_plls[kpll].rate_table = exynos5420_pll2550x_24mhz_tbl;
  36. + exynos5x_plls[vpll].rate_table = exynos5420_vpll_24mhz_tbl;
  37. }
  38.  
  39. if (soc == EXYNOS5420)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement