aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-11-07 22:09:47 -0500
committerSimon Horman <horms@verge.net.au>2012-11-08 03:52:35 -0500
commitd5b689089d7db3851c4d5d6b3727d22ef44d2023 (patch)
tree4e5b15536a52a5991c3a812fa426586fec325768 /arch/arm/mach-shmobile
parentd14795f6927625fdd92fbc5dfbe7d8f3d1995e3e (diff)
ARM: shmobile: sh7372: sh7372_fsiXck_clk become non-global
FSI's external clock is controled by FSI driver. Global sh7372_fsiXck_clk is no-longer needed now. But it needs to set external clock rate by platform, so, this patch supports clk_get() interface. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/clock-sh7372.c18
-rw-r--r--arch/arm/mach-shmobile/include/mach/sh7372.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh7372.c b/arch/arm/mach-shmobile/clock-sh7372.c
index fbd186370c31..3ca6757b129a 100644
--- a/arch/arm/mach-shmobile/clock-sh7372.c
+++ b/arch/arm/mach-shmobile/clock-sh7372.c
@@ -295,10 +295,10 @@ struct clk sh7372_pllc2_clk = {
295}; 295};
296 296
297/* External input clock (pin name: FSIACK/FSIBCK ) */ 297/* External input clock (pin name: FSIACK/FSIBCK ) */
298struct clk sh7372_fsiack_clk = { 298static struct clk fsiack_clk = {
299}; 299};
300 300
301struct clk sh7372_fsibck_clk = { 301static struct clk fsibck_clk = {
302}; 302};
303 303
304static struct clk *main_clks[] = { 304static struct clk *main_clks[] = {
@@ -314,8 +314,8 @@ static struct clk *main_clks[] = {
314 &pllc1_clk, 314 &pllc1_clk,
315 &pllc1_div2_clk, 315 &pllc1_div2_clk,
316 &sh7372_pllc2_clk, 316 &sh7372_pllc2_clk,
317 &sh7372_fsiack_clk, 317 &fsiack_clk,
318 &sh7372_fsibck_clk, 318 &fsibck_clk,
319}; 319};
320 320
321static void div4_kick(struct clk *clk) 321static void div4_kick(struct clk *clk)
@@ -399,14 +399,14 @@ static struct clk *hdmi_parent[] = {
399static struct clk *fsiackcr_parent[] = { 399static struct clk *fsiackcr_parent[] = {
400 [0] = &pllc1_div2_clk, 400 [0] = &pllc1_div2_clk,
401 [1] = &sh7372_pllc2_clk, 401 [1] = &sh7372_pllc2_clk,
402 [2] = &sh7372_fsiack_clk, /* external input for FSI A */ 402 [2] = &fsiack_clk, /* external input for FSI A */
403 [3] = NULL, /* setting prohibited */ 403 [3] = NULL, /* setting prohibited */
404}; 404};
405 405
406static struct clk *fsibckcr_parent[] = { 406static struct clk *fsibckcr_parent[] = {
407 [0] = &pllc1_div2_clk, 407 [0] = &pllc1_div2_clk,
408 [1] = &sh7372_pllc2_clk, 408 [1] = &sh7372_pllc2_clk,
409 [2] = &sh7372_fsibck_clk, /* external input for FSI B */ 409 [2] = &fsibck_clk, /* external input for FSI B */
410 [3] = NULL, /* setting prohibited */ 410 [3] = NULL, /* setting prohibited */
411}; 411};
412 412
@@ -507,6 +507,8 @@ static struct clk_lookup lookups[] = {
507 CLKDEV_CON_ID("pllc1_clk", &pllc1_clk), 507 CLKDEV_CON_ID("pllc1_clk", &pllc1_clk),
508 CLKDEV_CON_ID("pllc1_div2_clk", &pllc1_div2_clk), 508 CLKDEV_CON_ID("pllc1_div2_clk", &pllc1_div2_clk),
509 CLKDEV_CON_ID("pllc2_clk", &sh7372_pllc2_clk), 509 CLKDEV_CON_ID("pllc2_clk", &sh7372_pllc2_clk),
510 CLKDEV_CON_ID("fsiack", &fsiack_clk),
511 CLKDEV_CON_ID("fsibck", &fsibck_clk),
510 512
511 /* DIV4 clocks */ 513 /* DIV4 clocks */
512 CLKDEV_CON_ID("i_clk", &div4_clks[DIV4_I]), 514 CLKDEV_CON_ID("i_clk", &div4_clks[DIV4_I]),
@@ -604,8 +606,8 @@ static struct clk_lookup lookups[] = {
604 CLKDEV_ICK_ID("spu2", "sh_fsi2", &mstp_clks[MSTP223]), 606 CLKDEV_ICK_ID("spu2", "sh_fsi2", &mstp_clks[MSTP223]),
605 CLKDEV_ICK_ID("diva", "sh_fsi2", &fsidivs[FSIDIV_A]), 607 CLKDEV_ICK_ID("diva", "sh_fsi2", &fsidivs[FSIDIV_A]),
606 CLKDEV_ICK_ID("divb", "sh_fsi2", &fsidivs[FSIDIV_B]), 608 CLKDEV_ICK_ID("divb", "sh_fsi2", &fsidivs[FSIDIV_B]),
607 CLKDEV_ICK_ID("xcka", "sh_fsi2", &sh7372_fsiack_clk), 609 CLKDEV_ICK_ID("xcka", "sh_fsi2", &fsiack_clk),
608 CLKDEV_ICK_ID("xckb", "sh_fsi2", &sh7372_fsibck_clk), 610 CLKDEV_ICK_ID("xckb", "sh_fsi2", &fsibck_clk),
609}; 611};
610 612
611void __init sh7372_clock_init(void) 613void __init sh7372_clock_init(void)
diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h
index 26cd1016fad8..b582facc1cf6 100644
--- a/arch/arm/mach-shmobile/include/mach/sh7372.h
+++ b/arch/arm/mach-shmobile/include/mach/sh7372.h
@@ -477,8 +477,6 @@ extern struct clk sh7372_extal2_clk;
477extern struct clk sh7372_dv_clki_clk; 477extern struct clk sh7372_dv_clki_clk;
478extern struct clk sh7372_dv_clki_div2_clk; 478extern struct clk sh7372_dv_clki_div2_clk;
479extern struct clk sh7372_pllc2_clk; 479extern struct clk sh7372_pllc2_clk;
480extern struct clk sh7372_fsiack_clk;
481extern struct clk sh7372_fsibck_clk;
482 480
483extern void sh7372_intcs_suspend(void); 481extern void sh7372_intcs_suspend(void);
484extern void sh7372_intcs_resume(void); 482extern void sh7372_intcs_resume(void);