]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: clock: at91: add sama7g5 pll defines
authorEugen Hristev <eugen.hristev@microchip.com>
Thu, 19 Nov 2020 15:43:08 +0000 (17:43 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 19 Dec 2020 19:50:55 +0000 (11:50 -0800)
Add SAMA7G5 specific PLL defines to be referenced in a phandle as a
PMC_TYPE_CORE clock.

Suggested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[claudiu.beznea@microchip.com: adapt comit message, adapt sama7g5.c]
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1605800597-16720-3-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/sama7g5.c
include/dt-bindings/clock/at91.h

index a092a940baa40bc857ff5f26d3bd1d07c4f06ec8..7ef7963126b67c0c4dd7f51f095e9bd2b46e862f 100644 (file)
@@ -182,13 +182,13 @@ static const struct {
                  .p = "audiopll_fracck",
                  .l = &pll_layout_divpmc,
                  .t = PLL_TYPE_DIV,
-                 .eid = PMC_I2S0_MUX, },
+                 .eid = PMC_AUDIOPMCPLL, },
 
                { .n = "audiopll_diviock",
                  .p = "audiopll_fracck",
                  .l = &pll_layout_divio,
                  .t = PLL_TYPE_DIV,
-                 .eid = PMC_I2S1_MUX, },
+                 .eid = PMC_AUDIOIOPLL, },
        },
 
        [PLL_ID_ETH] = {
@@ -835,7 +835,7 @@ static void __init sama7g5_pmc_setup(struct device_node *np)
        if (IS_ERR(regmap))
                return;
 
-       sama7g5_pmc = pmc_data_allocate(PMC_I2S1_MUX + 1,
+       sama7g5_pmc = pmc_data_allocate(PMC_ETHPLL + 1,
                                        nck(sama7g5_systemck),
                                        nck(sama7g5_periphck),
                                        nck(sama7g5_gck), 8);
index eba17106608b3b03b973d0ab0aa495dd22da1183..fab313f62e8f59de326cf1059aaed798a0ded8f2 100644 (file)
 #define PMC_PLLBCK             8
 #define PMC_AUDIOPLLCK         9
 
+/* SAMA7G5 */
+#define PMC_CPUPLL             (PMC_MAIN + 1)
+#define PMC_SYSPLL             (PMC_MAIN + 2)
+#define PMC_DDRPLL             (PMC_MAIN + 3)
+#define PMC_IMGPLL             (PMC_MAIN + 4)
+#define PMC_BAUDPLL            (PMC_MAIN + 5)
+#define PMC_AUDIOPMCPLL                (PMC_MAIN + 6)
+#define PMC_AUDIOIOPLL         (PMC_MAIN + 7)
+#define PMC_ETHPLL             (PMC_MAIN + 8)
+
 #ifndef AT91_PMC_MOSCS
 #define AT91_PMC_MOSCS         0               /* MOSCS Flag */
 #define AT91_PMC_LOCKA         1               /* PLLA Lock */