clk: at91: modify PMC peripheral clock to deal with newer register layout
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 17 Jun 2015 12:40:39 +0000 (14:40 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 1 Oct 2015 19:39:43 +0000 (12:39 -0700)
commit36844bdf651a2ae2d35ae4b11337671905b67bff
tree8f0b69cce35a77befce1fec3c0c7d0c027e63978
parent96ef36e9c424b7a66413bb9229ef5afcddf4fef4
clk: at91: modify PMC peripheral clock to deal with newer register layout

As some more information is added to the PCR register, we'd better use
a copy of its content and modify just the peripheral-related bits.
Implement a read-modify-write for the enable() and disable() callbacks.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/clk-peripheral.c