Skip to content

Commit 1f00081

Browse files
committed
clk: at91: sam9x60: fix programmable clock
The prescaler mask for sam9x60 must be 0xff (8 bits). Being set to 0, means that we cannot set any prescaler, thus the programmable clocks do not work (except the case with prescaler 0) Set the mask accordingly in layout struct. Fixes: 01e2113 ("clk: at91: add sam9x60 pmc driver") Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
1 parent 856e88e commit 1f00081

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/clk/at91/sam9x60.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ static const struct clk_pll_characteristics upll_characteristics = {
4343
};
4444

4545
static const struct clk_programmable_layout sam9x60_programmable_layout = {
46+
.pres_mask = 0xff,
4647
.pres_shift = 8,
4748
.css_mask = 0x1f,
4849
.have_slck_mck = 0,

0 commit comments

Comments
 (0)