Skip to content

Commit d74a0ca

Browse files
committed
Merge branch 'at91-4.19-trunk/clk' into linux-4.19-at91
2 parents 3d89124 + a31c4f7 commit d74a0ca

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/clk/at91/clk-sam9x60-pll.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
#define PMC_PLL_CTRL1_MUL_MSK GENMASK(30, 24)
2626

2727
#define PMC_PLL_ACR 0x18
28-
#define PMC_PLL_ACR_DEFAULT 0x1b040010UL
28+
#define PMC_PLL_ACR_DEFAULT_UPLL 0x12020010UL
29+
#define PMC_PLL_ACR_DEFAULT_PLLA 0x00020010UL
2930
#define PMC_PLL_ACR_UTMIVR BIT(12)
3031
#define PMC_PLL_ACR_UTMIBG BIT(13)
3132
#define PMC_PLL_ACR_LOOP_FILTER_MSK GENMASK(31, 24)
@@ -88,7 +89,10 @@ static int sam9x60_pll_prepare(struct clk_hw *hw)
8889
}
8990

9091
/* Recommended value for PMC_PLL_ACR */
91-
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;
9296
regmap_write(regmap, PMC_PLL_ACR, val);
9397

9498
regmap_write(regmap, PMC_PLL_CTRL1,

0 commit comments

Comments
 (0)