We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3d89124 + a31c4f7 commit d74a0caCopy full SHA for d74a0ca
1 file changed
drivers/clk/at91/clk-sam9x60-pll.c
@@ -25,7 +25,8 @@
25
#define PMC_PLL_CTRL1_MUL_MSK GENMASK(30, 24)
26
27
#define PMC_PLL_ACR 0x18
28
-#define PMC_PLL_ACR_DEFAULT 0x1b040010UL
+#define PMC_PLL_ACR_DEFAULT_UPLL 0x12020010UL
29
+#define PMC_PLL_ACR_DEFAULT_PLLA 0x00020010UL
30
#define PMC_PLL_ACR_UTMIVR BIT(12)
31
#define PMC_PLL_ACR_UTMIBG BIT(13)
32
#define PMC_PLL_ACR_LOOP_FILTER_MSK GENMASK(31, 24)
@@ -88,7 +89,10 @@ static int sam9x60_pll_prepare(struct clk_hw *hw)
88
89
}
90
91
/* Recommended value for PMC_PLL_ACR */
- val = PMC_PLL_ACR_DEFAULT;
92
+ if (pll->characteristics->upll)
93
+ val = PMC_PLL_ACR_DEFAULT_UPLL;
94
+ else
95
+ val = PMC_PLL_ACR_DEFAULT_PLLA;
96
regmap_write(regmap, PMC_PLL_ACR, val);
97
98
regmap_write(regmap, PMC_PLL_CTRL1,
0 commit comments