diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-10-15 01:14:54 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-15 05:58:40 -0400 |
commit | 685e4080c62b4b5c6f67c7b088e416e98d06f7e6 (patch) | |
tree | 457954b1e78adf076be55eb2107f4cc35115c345 /arch/arm/mach-shmobile/board-ap4evb.c | |
parent | 90e09a59110949bda40c13b4e5925f3acd3597b0 (diff) |
ARM: mach-shmobile: clock-sh7372: add sh7372_ prefix to global clocks
This patch also registered global extal clocks to sh7372.h
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index aaac8b09047b..f879eb3c3427 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -780,22 +780,22 @@ static int __init hdmi_init_pm_clock(void) | |||
780 | goto out; | 780 | goto out; |
781 | } | 781 | } |
782 | 782 | ||
783 | ret = clk_set_parent(&pllc2_clk, &dv_clki_div2_clk); | 783 | ret = clk_set_parent(&sh7372_pllc2_clk, &sh7372_dv_clki_div2_clk); |
784 | if (ret < 0) { | 784 | if (ret < 0) { |
785 | pr_err("Cannot set PLLC2 parent: %d, %d users\n", ret, pllc2_clk.usecount); | 785 | pr_err("Cannot set PLLC2 parent: %d, %d users\n", ret, sh7372_pllc2_clk.usecount); |
786 | goto out; | 786 | goto out; |
787 | } | 787 | } |
788 | 788 | ||
789 | pr_debug("PLLC2 initial frequency %lu\n", clk_get_rate(&pllc2_clk)); | 789 | pr_debug("PLLC2 initial frequency %lu\n", clk_get_rate(&sh7372_pllc2_clk)); |
790 | 790 | ||
791 | rate = clk_round_rate(&pllc2_clk, 594000000); | 791 | rate = clk_round_rate(&sh7372_pllc2_clk, 594000000); |
792 | if (rate < 0) { | 792 | if (rate < 0) { |
793 | pr_err("Cannot get suitable rate: %ld\n", rate); | 793 | pr_err("Cannot get suitable rate: %ld\n", rate); |
794 | ret = rate; | 794 | ret = rate; |
795 | goto out; | 795 | goto out; |
796 | } | 796 | } |
797 | 797 | ||
798 | ret = clk_set_rate(&pllc2_clk, rate); | 798 | ret = clk_set_rate(&sh7372_pllc2_clk, rate); |
799 | if (ret < 0) { | 799 | if (ret < 0) { |
800 | pr_err("Cannot set rate %ld: %d\n", rate, ret); | 800 | pr_err("Cannot set rate %ld: %d\n", rate, ret); |
801 | goto out; | 801 | goto out; |
@@ -803,7 +803,7 @@ static int __init hdmi_init_pm_clock(void) | |||
803 | 803 | ||
804 | pr_debug("PLLC2 set frequency %lu\n", rate); | 804 | pr_debug("PLLC2 set frequency %lu\n", rate); |
805 | 805 | ||
806 | ret = clk_set_parent(hdmi_ick, &pllc2_clk); | 806 | ret = clk_set_parent(hdmi_ick, &sh7372_pllc2_clk); |
807 | if (ret < 0) { | 807 | if (ret < 0) { |
808 | pr_err("Cannot set HDMI parent: %d\n", ret); | 808 | pr_err("Cannot set HDMI parent: %d\n", ret); |
809 | goto out; | 809 | goto out; |
@@ -1132,7 +1132,7 @@ static void __init ap4evb_timer_init(void) | |||
1132 | shmobile_timer.init(); | 1132 | shmobile_timer.init(); |
1133 | 1133 | ||
1134 | /* External clock source */ | 1134 | /* External clock source */ |
1135 | clk_set_rate(&dv_clki_clk, 27000000); | 1135 | clk_set_rate(&sh7372_dv_clki_clk, 27000000); |
1136 | } | 1136 | } |
1137 | 1137 | ||
1138 | static struct sys_timer ap4evb_timer = { | 1138 | static struct sys_timer ap4evb_timer = { |