OSDN Git Service

clk: bcm/kona: implement determine_rate()
authorAlex Elder <elder@linaro.org>
Tue, 27 May 2014 16:56:56 +0000 (11:56 -0500)
committerMike Turquette <mturquette@linaro.org>
Wed, 28 May 2014 00:34:32 +0000 (17:34 -0700)
commitc2152d0e4de54f4f5a9cff2316d7cfb04fdfad45
tree872f3e409db58b828e9796d43c27aff57717ed0a
parent63a00269cba5a0795365467e2f6be073d984c565
clk: bcm/kona: implement determine_rate()

Implement the clk->determine_rate method for Broadcom Kona peripheral
clocks.  This allows a peripheral clock to be re-parented in order to
satisfy a rate change request.  This takes the place of the previous
kona_peri_clk_round_rate() functionality, though that function remains
because it is used by the new one.

The parent clock that allows the peripheral clock to produce a rate
closest to the one requested is the one selected, though the current
parent is used by default.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/bcm/clk-kona.c