diff options
author | Changhwan Youn <chaos.youn@samsung.com> | 2011-10-04 04:08:56 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-10-04 05:35:01 -0400 |
commit | b88b1cc72e2bbb55c56f2df55b5ad59a18ad1464 (patch) | |
tree | 554c6a06311c37eae015c69df72005befcca87f2 | |
parent | e6a275a8f92392f27e3accd6182d52627ef37258 (diff) |
ARM: EXYNOS4: Add support clock for EXYNOS4412
This patch makes EXYNOS4412 use same clock code for
EXYNOS4212 because the clock hierarchy of both SoCs
are same.
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-exynos4/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-exynos4/clock.c b/arch/arm/mach-exynos4/clock.c index f26aea3e1bbf..2a037cc221d0 100644 --- a/arch/arm/mach-exynos4/clock.c +++ b/arch/arm/mach-exynos4/clock.c | |||
@@ -1149,7 +1149,7 @@ static unsigned long exynos4_fout_apll_get_rate(struct clk *clk) | |||
1149 | if (soc_is_exynos4210()) | 1149 | if (soc_is_exynos4210()) |
1150 | return s5p_get_pll45xx(xtal_rate, __raw_readl(S5P_APLL_CON0), | 1150 | return s5p_get_pll45xx(xtal_rate, __raw_readl(S5P_APLL_CON0), |
1151 | pll_4508); | 1151 | pll_4508); |
1152 | else if (soc_is_exynos4212()) | 1152 | else if (soc_is_exynos4212() || soc_is_exynos4412()) |
1153 | return s5p_get_pll35xx(xtal_rate, __raw_readl(S5P_APLL_CON0)); | 1153 | return s5p_get_pll35xx(xtal_rate, __raw_readl(S5P_APLL_CON0)); |
1154 | else | 1154 | else |
1155 | return 0; | 1155 | return 0; |
@@ -1200,7 +1200,7 @@ void __init_or_cpufreq exynos4_setup_clocks(void) | |||
1200 | vpllsrc = clk_get_rate(&clk_vpllsrc.clk); | 1200 | vpllsrc = clk_get_rate(&clk_vpllsrc.clk); |
1201 | vpll = s5p_get_pll46xx(vpllsrc, __raw_readl(S5P_VPLL_CON0), | 1201 | vpll = s5p_get_pll46xx(vpllsrc, __raw_readl(S5P_VPLL_CON0), |
1202 | __raw_readl(S5P_VPLL_CON1), pll_4650c); | 1202 | __raw_readl(S5P_VPLL_CON1), pll_4650c); |
1203 | } else if (soc_is_exynos4212()) { | 1203 | } else if (soc_is_exynos4212() || soc_is_exynos4412()) { |
1204 | apll = s5p_get_pll35xx(xtal, __raw_readl(S5P_APLL_CON0)); | 1204 | apll = s5p_get_pll35xx(xtal, __raw_readl(S5P_APLL_CON0)); |
1205 | mpll = s5p_get_pll35xx(xtal, __raw_readl(S5P_MPLL_CON0)); | 1205 | mpll = s5p_get_pll35xx(xtal, __raw_readl(S5P_MPLL_CON0)); |
1206 | epll = s5p_get_pll36xx(xtal, __raw_readl(S5P_EPLL_CON0), | 1206 | epll = s5p_get_pll36xx(xtal, __raw_readl(S5P_EPLL_CON0), |