ARM: mach-shmobile: sh7372: make sure that fsi is peripheral of spu2
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Sun, 10 Jul 2011 08:11:57 +0000 (10:11 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 10 Jul 2011 08:11:57 +0000 (10:11 +0200)
FSI act as peripheral circuits of the SPU2.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-mackerel.c
arch/arm/mach-shmobile/clock-sh7372.c

index a26f895..4226db6 100644 (file)
@@ -1414,6 +1414,7 @@ static void __init ap4evb_init(void)
        hdmi_init_pm_clock();
        fsi_init_pm_clock();
        sh7372_pm_init();
+       pm_clk_add(&fsi_device.dev, "spu2");
 }
 
 static void __init ap4evb_timer_init(void)
index cc1ccd8..362b883 100644 (file)
@@ -1587,6 +1587,7 @@ static void __init mackerel_init(void)
 
        hdmi_init_pm_clock();
        sh7372_pm_init();
+       pm_clk_add(&fsi_device.dev, "spu2");
 }
 
 static void __init mackerel_timer_init(void)
index c0800d8..91f5779 100644 (file)
@@ -662,6 +662,7 @@ static struct clk_lookup lookups[] = {
        CLKDEV_ICK_ID("ick", "sh-mobile-hdmi", &div6_reparent_clks[DIV6_HDMI]),
        CLKDEV_ICK_ID("icka", "sh_fsi2", &div6_reparent_clks[DIV6_FSIA]),
        CLKDEV_ICK_ID("ickb", "sh_fsi2", &div6_reparent_clks[DIV6_FSIB]),
+       CLKDEV_ICK_ID("spu2", "sh_fsi2", &mstp_clks[MSTP223]),
 };
 
 void __init sh7372_clock_init(void)