sh: clkfwk: setup clock parent from current register value
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 22 Nov 2011 05:33:18 +0000 (21:33 -0800)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 24 Nov 2011 08:15:23 +0000 (17:15 +0900)
commit56242a1fc595d158eddefbb4d6d76e82c2535f55
tree78964e2ccde88e09ebb12412de26ab58f7b1417b
parenta9098b372606a15745cdeb012de4ee91c0df82c4
sh: clkfwk: setup clock parent from current register value

Some clocks can select its parent clock by CPG register.
But it might have been modified by boot-loader or something.
This patch removed fixed initial parent clock,
and setup it from their current register settings.
It works on div6 reparent clocks for now.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/clock-sh7372.c
arch/sh/kernel/cpu/sh4a/clock-sh7724.c
drivers/sh/clk/cpg.c
include/linux/sh_clk.h