clk: armada-37xx-periph: Support changing clock parent and rate
authorMarek BehĂșn <marek.behun@nic.cz>
Fri, 17 Aug 2018 10:58:52 +0000 (12:58 +0200)
committerStefan Roese <sr@denx.de>
Wed, 19 Sep 2018 06:59:26 +0000 (08:59 +0200)
commitde75fb09a18e0c9bc2a503a6512a4e433856a30a
treea732bb0ff4123aa780e28b56caee08de6b6fe3e8
parent4b8cb84327a448f16b276769e0ffbc7869d6de4a
clk: armada-37xx-periph: Support changing clock parent and rate

Add support for changing clock rate and parent clock for Armada 37xx
peripheral clocks.

Only clocks which can be disabled (.can_gate is true) can have parent
or rate changed.

This is needed so that Turris Mox can change SPI clock in device tree.

Signed-off-by: Marek Behun <marek.behun@nic.cz>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/clk/mvebu/armada-37xx-periph.c