aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/at91/pmc.h
diff options
context:
space:
mode:
authorMatthias Wieloch <matthias.wieloch@few-bauer.de>2019-03-18 11:50:45 +0100
committerStephen Boyd <sboyd@kernel.org>2019-03-18 12:50:31 -0700
commit45b06682113b102bdf38678311da93a689b0b78d (patch)
tree5ddda237917be7a68ecae23df0780ad40f5f0f36 /drivers/clk/at91/pmc.h
parentLinux 5.1-rc1 (diff)
downloadwireguard-linux-45b06682113b102bdf38678311da93a689b0b78d.tar.xz
wireguard-linux-45b06682113b102bdf38678311da93a689b0b78d.zip
clk: at91: fix programmable clock for sama5d2
The prescaler formula of the programmable clock has changed for sama5d2. Update the driver accordingly. Fixes: a2038077de9a ("clk: at91: add sama5d2 PMC driver") Cc: <stable@vger.kernel.org> # v4.20+ Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> [nicolas.ferre@microchip.com: adapt the prescaler range, fix clk_programmable_recalc_rate, split patch] Signed-off-by: Matthias Wieloch <matthias.wieloch@few-bauer.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/at91/pmc.h')
-rw-r--r--drivers/clk/at91/pmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
index 672a79bda88c..a0e5ce9c9b9e 100644
--- a/drivers/clk/at91/pmc.h
+++ b/drivers/clk/at91/pmc.h
@@ -71,9 +71,11 @@ struct clk_pll_characteristics {
};
struct clk_programmable_layout {
+ u8 pres_mask;
u8 pres_shift;
u8 css_mask;
u8 have_slck_mck;
+ u8 is_pres_direct;
};
extern const struct clk_programmable_layout at91rm9200_programmable_layout;