aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2013-01-21 17:51:08 -0500
committerKukjin Kim <kgene.kim@samsung.com>2013-01-21 18:40:23 -0500
commit98713e401f5cfc2a6c7cdea71b8b71c462a195ce (patch)
treeccc564abdd80a5c2a0b694b4fb0320b8ee78d253
parent3a71c5c375e29fc9c1493b5ead1cf36572139c3e (diff)
ARM: S3C24XX: Move mach-s3c2410/ cpufreq into mach-s3c24xx/
Basically, the cpufreq driver for s3c2410 should be implemented into drivers/cpufreq, but we don't need to keep the mach-s3c2410 directory. So this patch moves current cpufreq driver into mach-s3c24xx/. Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/mach-s3c2410/Kconfig7
-rw-r--r--arch/arm/mach-s3c2410/Makefile1
-rw-r--r--arch/arm/mach-s3c24xx/Kconfig7
-rw-r--r--arch/arm/mach-s3c24xx/Makefile1
-rw-r--r--arch/arm/mach-s3c24xx/cpufreq-s3c2410.c (renamed from arch/arm/mach-s3c2410/cpu-freq.c)7
5 files changed, 10 insertions, 13 deletions
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig
index 68d89cb96af0..910b8d29f0f4 100644
--- a/arch/arm/mach-s3c2410/Kconfig
+++ b/arch/arm/mach-s3c2410/Kconfig
@@ -4,13 +4,6 @@
4 4
5# cpu frequency scaling support 5# cpu frequency scaling support
6 6
7config S3C2410_CPUFREQ
8 bool
9 depends on CPU_FREQ_S3C24XX && CPU_S3C2410
10 select S3C2410_CPUFREQ_UTILS
11 help
12 CPU Frequency scaling support for S3C2410
13
14config S3C2410_PLLTABLE 7config S3C2410_PLLTABLE
15 bool 8 bool
16 depends on S3C2410_CPUFREQ && CPU_FREQ_S3C24XX_PLL 9 depends on S3C2410_CPUFREQ && CPU_FREQ_S3C24XX_PLL
diff --git a/arch/arm/mach-s3c2410/Makefile b/arch/arm/mach-s3c2410/Makefile
index 6b9a316e0041..2a160a5a6113 100644
--- a/arch/arm/mach-s3c2410/Makefile
+++ b/arch/arm/mach-s3c2410/Makefile
@@ -9,6 +9,5 @@ obj-m :=
9obj-n := 9obj-n :=
10obj- := 10obj- :=
11 11
12obj-$(CONFIG_S3C2410_CPUFREQ) += cpu-freq.o
13obj-$(CONFIG_S3C2410_PLLTABLE) += pll.o 12obj-$(CONFIG_S3C2410_PLLTABLE) += pll.o
14 13
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index 25df14a9e268..04921b91da0d 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -127,6 +127,13 @@ config S3C2410_PM
127 127
128if CPU_S3C2410 128if CPU_S3C2410
129 129
130config S3C2410_CPUFREQ
131 bool
132 depends on CPU_FREQ_S3C24XX && CPU_S3C2410
133 select S3C2410_CPUFREQ_UTILS
134 help
135 CPU Frequency scaling support for S3C2410
136
130config S3C24XX_SIMTEC_NOR 137config S3C24XX_SIMTEC_NOR
131 bool 138 bool
132 help 139 help
diff --git a/arch/arm/mach-s3c24xx/Makefile b/arch/arm/mach-s3c24xx/Makefile
index 0ab6ab15da4c..3c9fd511e3e9 100644
--- a/arch/arm/mach-s3c24xx/Makefile
+++ b/arch/arm/mach-s3c24xx/Makefile
@@ -17,6 +17,7 @@ obj- :=
17obj-y += common.o 17obj-y += common.o
18 18
19obj-$(CONFIG_CPU_S3C2410) += s3c2410.o 19obj-$(CONFIG_CPU_S3C2410) += s3c2410.o
20obj-$(CONFIG_S3C2410_CPUFREQ) += cpufreq-s3c2410.o
20obj-$(CONFIG_S3C2410_DMA) += dma-s3c2410.o 21obj-$(CONFIG_S3C2410_DMA) += dma-s3c2410.o
21obj-$(CONFIG_S3C2410_PM) += pm-s3c2410.o sleep-s3c2410.o 22obj-$(CONFIG_S3C2410_PM) += pm-s3c2410.o sleep-s3c2410.o
22 23
diff --git a/arch/arm/mach-s3c2410/cpu-freq.c b/arch/arm/mach-s3c24xx/cpufreq-s3c2410.c
index 5404535da1a5..cfa0dd8723ec 100644
--- a/arch/arm/mach-s3c2410/cpu-freq.c
+++ b/arch/arm/mach-s3c24xx/cpufreq-s3c2410.c
@@ -1,5 +1,4 @@
1/* linux/arch/arm/mach-s3c2410/cpu-freq.c 1/*
2 *
3 * Copyright (c) 2006-2008 Simtec Electronics 2 * Copyright (c) 2006-2008 Simtec Electronics
4 * http://armlinux.simtec.co.uk/ 3 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk> 4 * Ben Dooks <ben@simtec.co.uk>
@@ -81,7 +80,7 @@ static int s3c2410_cpufreq_calcdivs(struct s3c_cpufreq_config *cfg)
81 cfg->divs.p_divisor = pdiv; 80 cfg->divs.p_divisor = pdiv;
82 cfg->divs.h_divisor = hdiv; 81 cfg->divs.h_divisor = hdiv;
83 82
84 return 0 ; 83 return 0;
85} 84}
86 85
87static struct s3c_cpufreq_info s3c2410_cpufreq_info = { 86static struct s3c_cpufreq_info s3c2410_cpufreq_info = {
@@ -131,7 +130,6 @@ static int __init s3c2410_cpufreq_init(void)
131{ 130{
132 return subsys_interface_register(&s3c2410_cpufreq_interface); 131 return subsys_interface_register(&s3c2410_cpufreq_interface);
133} 132}
134
135arch_initcall(s3c2410_cpufreq_init); 133arch_initcall(s3c2410_cpufreq_init);
136 134
137static int s3c2410a_cpufreq_add(struct device *dev, 135static int s3c2410a_cpufreq_add(struct device *dev,
@@ -159,5 +157,4 @@ static int __init s3c2410a_cpufreq_init(void)
159{ 157{
160 return subsys_interface_register(&s3c2410a_cpufreq_interface); 158 return subsys_interface_register(&s3c2410a_cpufreq_interface);
161} 159}
162
163arch_initcall(s3c2410a_cpufreq_init); 160arch_initcall(s3c2410a_cpufreq_init);