]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: at91: sam9x60: fix programmable clock
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 24 Sep 2019 10:39:09 +0000 (10:39 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 3 Oct 2019 20:59:07 +0000 (13:59 -0700)
commit2200ab6a7403f4fcd052c55ca328fc942f9392b6
tree9184215c0ec4db610d6a96959f3f230c99a1083b
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
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: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Link: https://lkml.kernel.org/r/1569321191-27606-1-git-send-email-eugen.hristev@microchip.com
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/sam9x60.c