summaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-ecovec24/setup.c
diff options
context:
space:
mode:
authorKuninori Morimoto2010-02-22 06:18:10 +0100
committerPaul Mundt2010-02-22 11:14:18 +0100
commit16afc9fb0298a66da25ee015eb3c8a8f55e3744a (patch)
tree5e8eb1bda9c3ce75906f93903b06265ec2f2adbf /arch/sh/boards/mach-ecovec24/setup.c
parentsh: always enable sh7724 vpu_clk and set to 166MHz on Ecovec (diff)
downloadkernel-qcow2-linux-16afc9fb0298a66da25ee015eb3c8a8f55e3744a.tar.gz
kernel-qcow2-linux-16afc9fb0298a66da25ee015eb3c8a8f55e3744a.tar.xz
kernel-qcow2-linux-16afc9fb0298a66da25ee015eb3c8a8f55e3744a.zip
sh: sh7724: Update FSI/SPU2 clock
When FSI and Network (= NFS file system) were used at the same time, the I/O of FSI was unstable. This patch updates the SPU2 clock (which is used for FSI) to solve this issue. Special thanks to Jeremy. Signed-off-by: Jeremy Baker <Jeremy.Baker@renesas.com> Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-ecovec24/setup.c')
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index a17dbb3ac73f..6f2e8a78b461 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -1105,6 +1105,11 @@ static int __init arch_setup(void)
gpio_request(GPIO_FN_FSIOBLRCK, NULL);
gpio_request(GPIO_FN_CLKAUDIOBO, NULL);
+ /* set SPU2 clock to 83.4 MHz */
+ clk = clk_get(NULL, "spu_clk");
+ clk_set_rate(clk, clk_round_rate(clk, 83333333));
+ clk_put(clk);
+
/* change parent of FSI B */
clk = clk_get(NULL, "fsib_clk");
clk_register(&fsimckb_clk);