clk: atlas7: fix noc/socket disconnect/reconnect for unit clks
authorGuo Zeng <Guo.Zeng@csr.com>
Fri, 14 Aug 2015 01:11:03 +0000 (01:11 +0000)
committerMichael Turquette <mturquette@baylibre.com>
Tue, 29 Sep 2015 15:27:14 +0000 (08:27 -0700)
commita3ff23375aa4dac7ceee2087f02b4141c78c762e
tree8cbab90da4cc7159245d9722d033b4aaa2dee44c
parent1f57d1d88cb2a89466e1782e1c2fd358771ea4c5
clk: atlas7: fix noc/socket disconnect/reconnect for unit clks

Power management on of NoC(Notwork On Chip) requires that disconnect
and reconnect routine should been done during clk disable/enable.

also there are different types of clocks,
For NoC Macro clocks, write idle_bit and wait for hardward ACK;
For Socket clocks, write idle_bit;
For others, do nothing.

Signed-off-by: Guo Zeng <Guo.Zeng@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/sirf/clk-atlas7.c