diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-04 08:54:16 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-10 07:19:24 -0400 |
commit | 59a2e613d07fbd592ff711c87458eabcf9c98902 (patch) | |
tree | 18ebcdccafa518791a17c94133144d17e73f6807 | |
parent | b7e614c8bf5c898b172d7dfed9853fdda35be5cc (diff) |
cpufreq: sa11x0: move cpufreq driver to drivers/cpufreq
This patch moves cpufreq driver of ARM based sa11x0 platform to drivers/cpufreq.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | arch/arm/Kconfig | 7 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/Kconfig | 26 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/include/mach/generic.h | 1 | ||||
-rw-r--r-- | drivers/cpufreq/Kconfig.arm | 6 | ||||
-rw-r--r-- | drivers/cpufreq/Makefile | 2 | ||||
-rw-r--r-- | drivers/cpufreq/sa1100-cpufreq.c (renamed from arch/arm/mach-sa1100/cpu-sa1100.c) | 3 | ||||
-rw-r--r-- | drivers/cpufreq/sa1110-cpufreq.c (renamed from arch/arm/mach-sa1100/cpu-sa1110.c) | 3 |
8 files changed, 24 insertions, 27 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c3563f6dc9f2..940b13ffd9c9 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -2150,7 +2150,6 @@ endmenu | |||
2150 | menu "CPU Power Management" | 2150 | menu "CPU Power Management" |
2151 | 2151 | ||
2152 | if ARCH_HAS_CPUFREQ | 2152 | if ARCH_HAS_CPUFREQ |
2153 | |||
2154 | source "drivers/cpufreq/Kconfig" | 2153 | source "drivers/cpufreq/Kconfig" |
2155 | 2154 | ||
2156 | config CPU_FREQ_IMX | 2155 | config CPU_FREQ_IMX |
@@ -2160,12 +2159,6 @@ config CPU_FREQ_IMX | |||
2160 | help | 2159 | help |
2161 | This enables the CPUfreq driver for i.MX CPUs. | 2160 | This enables the CPUfreq driver for i.MX CPUs. |
2162 | 2161 | ||
2163 | config CPU_FREQ_SA1100 | ||
2164 | bool | ||
2165 | |||
2166 | config CPU_FREQ_SA1110 | ||
2167 | bool | ||
2168 | |||
2169 | config CPU_FREQ_S3C | 2162 | config CPU_FREQ_S3C |
2170 | bool | 2163 | bool |
2171 | help | 2164 | help |
diff --git a/arch/arm/mach-sa1100/Kconfig b/arch/arm/mach-sa1100/Kconfig index ca14dbdcfb22..04f9784ff0ed 100644 --- a/arch/arm/mach-sa1100/Kconfig +++ b/arch/arm/mach-sa1100/Kconfig | |||
@@ -4,7 +4,7 @@ menu "SA11x0 Implementations" | |||
4 | 4 | ||
5 | config SA1100_ASSABET | 5 | config SA1100_ASSABET |
6 | bool "Assabet" | 6 | bool "Assabet" |
7 | select CPU_FREQ_SA1110 | 7 | select ARM_SA1110_CPUFREQ |
8 | help | 8 | help |
9 | Say Y here if you are using the Intel(R) StrongARM(R) SA-1110 | 9 | Say Y here if you are using the Intel(R) StrongARM(R) SA-1110 |
10 | Microprocessor Development Board (also known as the Assabet). | 10 | Microprocessor Development Board (also known as the Assabet). |
@@ -20,7 +20,7 @@ config ASSABET_NEPONSET | |||
20 | 20 | ||
21 | config SA1100_CERF | 21 | config SA1100_CERF |
22 | bool "CerfBoard" | 22 | bool "CerfBoard" |
23 | select CPU_FREQ_SA1110 | 23 | select ARM_SA1110_CPUFREQ |
24 | help | 24 | help |
25 | The Intrinsyc CerfBoard is based on the StrongARM 1110 (Discontinued). | 25 | The Intrinsyc CerfBoard is based on the StrongARM 1110 (Discontinued). |
26 | More information is available at: | 26 | More information is available at: |
@@ -47,7 +47,7 @@ endchoice | |||
47 | 47 | ||
48 | config SA1100_COLLIE | 48 | config SA1100_COLLIE |
49 | bool "Sharp Zaurus SL5500" | 49 | bool "Sharp Zaurus SL5500" |
50 | # FIXME: select CPU_FREQ_SA11x0 | 50 | # FIXME: select ARM_SA11x0_CPUFREQ |
51 | select SHARP_LOCOMO | 51 | select SHARP_LOCOMO |
52 | select SHARP_PARAM | 52 | select SHARP_PARAM |
53 | select SHARP_SCOOP | 53 | select SHARP_SCOOP |
@@ -56,7 +56,7 @@ config SA1100_COLLIE | |||
56 | 56 | ||
57 | config SA1100_H3100 | 57 | config SA1100_H3100 |
58 | bool "Compaq iPAQ H3100" | 58 | bool "Compaq iPAQ H3100" |
59 | select CPU_FREQ_SA1110 | 59 | select ARM_SA1110_CPUFREQ |
60 | select HTC_EGPIO | 60 | select HTC_EGPIO |
61 | help | 61 | help |
62 | Say Y here if you intend to run this kernel on the Compaq iPAQ | 62 | Say Y here if you intend to run this kernel on the Compaq iPAQ |
@@ -67,7 +67,7 @@ config SA1100_H3100 | |||
67 | 67 | ||
68 | config SA1100_H3600 | 68 | config SA1100_H3600 |
69 | bool "Compaq iPAQ H3600/H3700" | 69 | bool "Compaq iPAQ H3600/H3700" |
70 | select CPU_FREQ_SA1110 | 70 | select ARM_SA1110_CPUFREQ |
71 | select HTC_EGPIO | 71 | select HTC_EGPIO |
72 | help | 72 | help |
73 | Say Y here if you intend to run this kernel on the Compaq iPAQ | 73 | Say Y here if you intend to run this kernel on the Compaq iPAQ |
@@ -78,7 +78,7 @@ config SA1100_H3600 | |||
78 | 78 | ||
79 | config SA1100_BADGE4 | 79 | config SA1100_BADGE4 |
80 | bool "HP Labs BadgePAD 4" | 80 | bool "HP Labs BadgePAD 4" |
81 | select CPU_FREQ_SA1100 | 81 | select ARM_SA1100_CPUFREQ |
82 | select SA1111 | 82 | select SA1111 |
83 | help | 83 | help |
84 | Say Y here if you want to build a kernel for the HP Laboratories | 84 | Say Y here if you want to build a kernel for the HP Laboratories |
@@ -86,7 +86,7 @@ config SA1100_BADGE4 | |||
86 | 86 | ||
87 | config SA1100_JORNADA720 | 87 | config SA1100_JORNADA720 |
88 | bool "HP Jornada 720" | 88 | bool "HP Jornada 720" |
89 | # FIXME: select CPU_FREQ_SA11x0 | 89 | # FIXME: select ARM_SA11x0_CPUFREQ |
90 | select SA1111 | 90 | select SA1111 |
91 | help | 91 | help |
92 | Say Y here if you want to build a kernel for the HP Jornada 720 | 92 | Say Y here if you want to build a kernel for the HP Jornada 720 |
@@ -105,14 +105,14 @@ config SA1100_JORNADA720_SSP | |||
105 | 105 | ||
106 | config SA1100_HACKKIT | 106 | config SA1100_HACKKIT |
107 | bool "HackKit Core CPU Board" | 107 | bool "HackKit Core CPU Board" |
108 | select CPU_FREQ_SA1100 | 108 | select ARM_SA1100_CPUFREQ |
109 | help | 109 | help |
110 | Say Y here to support the HackKit Core CPU Board | 110 | Say Y here to support the HackKit Core CPU Board |
111 | <http://hackkit.eletztrick.de>; | 111 | <http://hackkit.eletztrick.de>; |
112 | 112 | ||
113 | config SA1100_LART | 113 | config SA1100_LART |
114 | bool "LART" | 114 | bool "LART" |
115 | select CPU_FREQ_SA1100 | 115 | select ARM_SA1100_CPUFREQ |
116 | help | 116 | help |
117 | Say Y here if you are using the Linux Advanced Radio Terminal | 117 | Say Y here if you are using the Linux Advanced Radio Terminal |
118 | (also known as the LART). See <http://www.lartmaker.nl/> for | 118 | (also known as the LART). See <http://www.lartmaker.nl/> for |
@@ -120,7 +120,7 @@ config SA1100_LART | |||
120 | 120 | ||
121 | config SA1100_NANOENGINE | 121 | config SA1100_NANOENGINE |
122 | bool "nanoEngine" | 122 | bool "nanoEngine" |
123 | select CPU_FREQ_SA1110 | 123 | select ARM_SA1110_CPUFREQ |
124 | select PCI | 124 | select PCI |
125 | select PCI_NANOENGINE | 125 | select PCI_NANOENGINE |
126 | help | 126 | help |
@@ -130,7 +130,7 @@ config SA1100_NANOENGINE | |||
130 | 130 | ||
131 | config SA1100_PLEB | 131 | config SA1100_PLEB |
132 | bool "PLEB" | 132 | bool "PLEB" |
133 | select CPU_FREQ_SA1100 | 133 | select ARM_SA1100_CPUFREQ |
134 | help | 134 | help |
135 | Say Y here if you are using version 1 of the Portable Linux | 135 | Say Y here if you are using version 1 of the Portable Linux |
136 | Embedded Board (also known as PLEB). | 136 | Embedded Board (also known as PLEB). |
@@ -139,7 +139,7 @@ config SA1100_PLEB | |||
139 | 139 | ||
140 | config SA1100_SHANNON | 140 | config SA1100_SHANNON |
141 | bool "Shannon" | 141 | bool "Shannon" |
142 | select CPU_FREQ_SA1100 | 142 | select ARM_SA1100_CPUFREQ |
143 | help | 143 | help |
144 | The Shannon (also known as a Tuxscreen, and also as a IS2630) was a | 144 | The Shannon (also known as a Tuxscreen, and also as a IS2630) was a |
145 | limited edition webphone produced by Philips. The Shannon is a SA1100 | 145 | limited edition webphone produced by Philips. The Shannon is a SA1100 |
@@ -148,7 +148,7 @@ config SA1100_SHANNON | |||
148 | 148 | ||
149 | config SA1100_SIMPAD | 149 | config SA1100_SIMPAD |
150 | bool "Simpad" | 150 | bool "Simpad" |
151 | select CPU_FREQ_SA1110 | 151 | select ARM_SA1110_CPUFREQ |
152 | help | 152 | help |
153 | The SIEMENS webpad SIMpad is based on the StrongARM 1110. There | 153 | The SIEMENS webpad SIMpad is based on the StrongARM 1110. There |
154 | are two different versions CL4 and SL4. CL4 has 32MB RAM and 16MB | 154 | are two different versions CL4 and SL4. CL4 has 32MB RAM and 16MB |
diff --git a/arch/arm/mach-sa1100/Makefile b/arch/arm/mach-sa1100/Makefile index 1aed9e70465d..2732eef48966 100644 --- a/arch/arm/mach-sa1100/Makefile +++ b/arch/arm/mach-sa1100/Makefile | |||
@@ -8,9 +8,6 @@ obj-m := | |||
8 | obj-n := | 8 | obj-n := |
9 | obj- := | 9 | obj- := |
10 | 10 | ||
11 | obj-$(CONFIG_CPU_FREQ_SA1100) += cpu-sa1100.o | ||
12 | obj-$(CONFIG_CPU_FREQ_SA1110) += cpu-sa1110.o | ||
13 | |||
14 | # Specific board support | 11 | # Specific board support |
15 | obj-$(CONFIG_SA1100_ASSABET) += assabet.o | 12 | obj-$(CONFIG_SA1100_ASSABET) += assabet.o |
16 | obj-$(CONFIG_ASSABET_NEPONSET) += neponset.o | 13 | obj-$(CONFIG_ASSABET_NEPONSET) += neponset.o |
diff --git a/arch/arm/mach-sa1100/include/mach/generic.h b/arch/arm/mach-sa1100/include/mach/generic.h new file mode 100644 index 000000000000..665542e0c9e2 --- /dev/null +++ b/arch/arm/mach-sa1100/include/mach/generic.h | |||
@@ -0,0 +1 @@ | |||
#include "../../generic.h" | |||
diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 97f208daf8ae..09da6a3f0e8f 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm | |||
@@ -127,6 +127,12 @@ config ARM_S5PV210_CPUFREQ | |||
127 | 127 | ||
128 | If in doubt, say N. | 128 | If in doubt, say N. |
129 | 129 | ||
130 | config ARM_SA1100_CPUFREQ | ||
131 | bool | ||
132 | |||
133 | config ARM_SA1110_CPUFREQ | ||
134 | bool | ||
135 | |||
130 | config ARM_SPEAR_CPUFREQ | 136 | config ARM_SPEAR_CPUFREQ |
131 | bool "SPEAr CPUFreq support" | 137 | bool "SPEAr CPUFreq support" |
132 | depends on PLAT_SPEAR | 138 | depends on PLAT_SPEAR |
diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index 8d5801645f9d..8b21016ac157 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile | |||
@@ -66,6 +66,8 @@ obj-$(CONFIG_PXA3xx) += pxa3xx-cpufreq.o | |||
66 | obj-$(CONFIG_ARM_S3C2416_CPUFREQ) += s3c2416-cpufreq.o | 66 | obj-$(CONFIG_ARM_S3C2416_CPUFREQ) += s3c2416-cpufreq.o |
67 | obj-$(CONFIG_ARM_S3C64XX_CPUFREQ) += s3c64xx-cpufreq.o | 67 | obj-$(CONFIG_ARM_S3C64XX_CPUFREQ) += s3c64xx-cpufreq.o |
68 | obj-$(CONFIG_ARM_S5PV210_CPUFREQ) += s5pv210-cpufreq.o | 68 | obj-$(CONFIG_ARM_S5PV210_CPUFREQ) += s5pv210-cpufreq.o |
69 | obj-$(CONFIG_ARM_SA1100_CPUFREQ) += sa1100-cpufreq.o | ||
70 | obj-$(CONFIG_ARM_SA1110_CPUFREQ) += sa1110-cpufreq.o | ||
69 | obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o | 71 | obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o |
70 | obj-$(CONFIG_ARCH_TEGRA) += tegra-cpufreq.o | 72 | obj-$(CONFIG_ARCH_TEGRA) += tegra-cpufreq.o |
71 | 73 | ||
diff --git a/arch/arm/mach-sa1100/cpu-sa1100.c b/drivers/cpufreq/sa1100-cpufreq.c index 32687617c7a5..cff18e87ca58 100644 --- a/arch/arm/mach-sa1100/cpu-sa1100.c +++ b/drivers/cpufreq/sa1100-cpufreq.c | |||
@@ -91,10 +91,9 @@ | |||
91 | 91 | ||
92 | #include <asm/cputype.h> | 92 | #include <asm/cputype.h> |
93 | 93 | ||
94 | #include <mach/generic.h> | ||
94 | #include <mach/hardware.h> | 95 | #include <mach/hardware.h> |
95 | 96 | ||
96 | #include "generic.h" | ||
97 | |||
98 | struct sa1100_dram_regs { | 97 | struct sa1100_dram_regs { |
99 | int speed; | 98 | int speed; |
100 | u32 mdcnfg; | 99 | u32 mdcnfg; |
diff --git a/arch/arm/mach-sa1100/cpu-sa1110.c b/drivers/cpufreq/sa1110-cpufreq.c index 38a77330dc16..39c90b6f4286 100644 --- a/arch/arm/mach-sa1100/cpu-sa1110.c +++ b/drivers/cpufreq/sa1110-cpufreq.c | |||
@@ -27,10 +27,9 @@ | |||
27 | #include <asm/cputype.h> | 27 | #include <asm/cputype.h> |
28 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
29 | 29 | ||
30 | #include <mach/generic.h> | ||
30 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
31 | 32 | ||
32 | #include "generic.h" | ||
33 | |||
34 | #undef DEBUG | 33 | #undef DEBUG |
35 | 34 | ||
36 | struct sdram_params { | 35 | struct sdram_params { |