105-clk-at91-sama7g5-add-5th-divisor-for-mck0-layout-and.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From c41f013e13962dcc78239d5e4834214d44556cfb Mon Sep 17 00:00:00 2001
  2. From: Eugen Hristev <[email protected]>
  3. Date: Thu, 19 Nov 2020 17:43:11 +0200
  4. Subject: [PATCH 105/247] clk: at91: sama7g5: add 5th divisor for mck0 layout
  5. and characteristics
  6. This SoC has the 5th divisor for the mck0 master clock.
  7. Adapt the characteristics accordingly.
  8. Reported-by: Mihai Sain <[email protected]>
  9. Signed-off-by: Eugen Hristev <[email protected]>
  10. Signed-off-by: Claudiu Beznea <[email protected]>
  11. Link: https://lore.kernel.org/r/[email protected]
  12. Signed-off-by: Stephen Boyd <[email protected]>
  13. ---
  14. drivers/clk/at91/sama7g5.c | 4 ++--
  15. 1 file changed, 2 insertions(+), 2 deletions(-)
  16. --- a/drivers/clk/at91/sama7g5.c
  17. +++ b/drivers/clk/at91/sama7g5.c
  18. @@ -775,13 +775,13 @@ static const struct clk_pll_characterist
  19. /* MCK0 characteristics. */
  20. static const struct clk_master_characteristics mck0_characteristics = {
  21. .output = { .min = 140000000, .max = 200000000 },
  22. - .divisors = { 1, 2, 4, 3 },
  23. + .divisors = { 1, 2, 4, 3, 5 },
  24. .have_div3_pres = 1,
  25. };
  26. /* MCK0 layout. */
  27. static const struct clk_master_layout mck0_layout = {
  28. - .mask = 0x373,
  29. + .mask = 0x773,
  30. .pres_shift = 4,
  31. .offset = 0x28,
  32. };