ARM: mach-shmobile: sh7372 CMT3 and CMT4 clock support
authorMagnus Damm <damm@opensource.se>
Fri, 26 Aug 2011 05:28:42 +0000 (05:28 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 29 Aug 2011 07:41:02 +0000 (16:41 +0900)
commita408baea3cdd2a7b5ad3d70080dff454b8883f62
treed78d0a97774efb7aa02999e53acdecfd8b246230
parent7ceb6666f03bc691e692c8d14ea2a8f3fa879ec8
ARM: mach-shmobile: sh7372 CMT3 and CMT4 clock support

Add clock control support for sh7372 CMT hardware blocks.

No upstream sh7372 boards are making use of CMT3 + CMT4,
but the sh7372 hardware happens to come out of reset with
all CMT MSTP clocks _enabled_, so to save power we need
to implement a fix in software to shut down unused clocks.

This patch relies on the recently merged

 794d78f drivers: sh: late disabling of clocks V2

to make sure the unused clocks get disabled as expected.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/clock-sh7372.c