Skip to content

Commit 08b8ccd

Browse files
committed
clk: at91: clk-sam9x60-pll: fix mul mask
According to datasheet mul mask is on bits 31..24. Fixes: a436c2a ("clk: at91: add sam9x60 PLL driver") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/1595403506-8209-4-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 639b31d commit 08b8ccd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#define PMC_PLL_UPDT_UPDATE BIT(8)
3636

3737
#define PMC_PLL_ISR0 0xec
38+
#define PMC_PLL_CTRL0_DIV_MSK GENMASK(7, 0)
39+
#define PMC_PLL_CTRL1_MUL_MSK GENMASK(31, 24)
3840

3941
#define PLL_DIV_MAX (FIELD_GET(PMC_PLL_CTRL0_DIV_MSK, UINT_MAX) + 1)
4042
#define UPLL_DIV 2

0 commit comments

Comments
 (0)