clk: at91: allow configuring peripheral PCR layout
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 2 Apr 2019 12:50:50 +0000 (14:50 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 19:34:03 +0000 (12:34 -0700)
commitcb4f4949b1c76f29ca804d6ecd879a2e84c88afc
treee825c68b3d6352b24ebd15a07cfe2fcbc039b478
parent5c16ffa795b7bcdbd73d5983482c5c0fe5566c06
clk: at91: allow configuring peripheral PCR layout

The PCR register actually changed layout for each SoC. By chance, this
didn't have impact on sama5d[2-4] support but since sama5d3, PID is seven
bits wide and sama5d4 and sama5d2 don't have DIV.

For the DT backward compatibility, keep the layout as is.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/at91sam9x5.c
drivers/clk/at91/clk-peripheral.c
drivers/clk/at91/dt-compat.c
drivers/clk/at91/pmc.h
drivers/clk/at91/sama5d2.c
drivers/clk/at91/sama5d4.c
include/linux/clk/at91_pmc.h