8073-ls1012a-added-clock-configuration.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From 9112596c3c7b7b8b1eded3323765fa711dc58e74 Mon Sep 17 00:00:00 2001
  2. From: Tang Yuantian <Yuantian.Tang@nxp.com>
  3. Date: Thu, 25 Aug 2016 10:38:28 +0800
  4. Subject: [PATCH 073/113] ls1012a: added clock configuration
  5. commit c9c11181191938b77bfd61e5094a63955cf711fd
  6. [context adjustment]
  7. [don't apply fsl-ls1012a.dtsi]
  8. Currently ls1012a used the clock configuration of ls1043a's.
  9. But there is a little different between them. This patch added
  10. ls1012a its own clock configuration.
  11. Signed-off-by: Tang Yuantian <yuantian.tang@nxp.com>
  12. Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
  13. ---
  14. drivers/clk/clk-qoriq.c | 19 +++++++++++++++++++
  15. 1 file changed, 19 insertions(+)
  16. --- a/drivers/clk/clk-qoriq.c
  17. +++ b/drivers/clk/clk-qoriq.c
  18. @@ -195,6 +195,14 @@ static const struct clockgen_muxinfo t10
  19. }
  20. };
  21. +static const struct clockgen_muxinfo ls1012a_cmux = {
  22. + {
  23. + [0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 },
  24. + {},
  25. + [2] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV2 },
  26. + }
  27. +};
  28. +
  29. static const struct clockgen_muxinfo t1040_cmux = {
  30. {
  31. [0] = { CLKSEL_VALID, CGA_PLL1, PLL_DIV1 },
  32. @@ -475,6 +483,16 @@ static const struct clockgen_chipinfo ch
  33. .pll_mask = 0x03,
  34. },
  35. {
  36. + .compat = "fsl,ls1012a-clockgen",
  37. + .cmux_groups = {
  38. + &ls1012a_cmux
  39. + },
  40. + .cmux_to_group = {
  41. + 0, -1
  42. + },
  43. + .pll_mask = 0x03,
  44. + },
  45. + {
  46. .compat = "fsl,ls1043a-clockgen",
  47. .init_periph = t2080_init_periph,
  48. .cmux_groups = {
  49. @@ -1275,6 +1293,7 @@ CLK_OF_DECLARE(qoriq_clockgen_2, "fsl,qo
  50. CLK_OF_DECLARE(qoriq_clockgen_ls1021a, "fsl,ls1021a-clockgen", clockgen_init);
  51. CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-clockgen", clockgen_init);
  52. CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_init);
  53. +CLK_OF_DECLARE(qoriq_clockgen_ls1012a, "fsl,ls1012a-clockgen", clockgen_init);
  54. /* Legacy nodes */
  55. CLK_OF_DECLARE(qoriq_sysclk_1, "fsl,qoriq-sysclk-1.0", sysclk_init);