diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-12 02:35:48 -0400 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2013-06-18 04:23:11 -0400 |
commit | dbb8d76e5ed9bb7f33a092f4aa5b28d8b1c872a4 (patch) | |
tree | db52de2f90211017ac35fe88b4e34a9a731f132f /arch/arm | |
parent | 6866cba3a4fe1d06d6c4493d5c9a8736db4c5459 (diff) |
cpufreq: tegra: create CONFIG_ARM_TEGRA_CPUFREQ
currently Tegra cpufreq driver gets built based on ARCH_TEGRA, which doesn't
depend on nor select CPU_FREQ itself, so:
select CPU_FREQ_TABLE if CPU_FREQ
... isn't guaranteed to fire.
The correct solution seems to be:
* Add CONFIG_ARM_TEGRA_CPUFREQ to drivers/cpufreq/Kconfig.arm.
* Make that Kconfig option selct CPU_FREQ_TABLE.
* Make that Kconfig option be def_bool ARCH_TEGRA.
* Modify drivers/cpufreq/Makefile to build tegra-cpufreq.c based on that.
* Remove all the cpufreq-related stuff from arch/arm/mach-tegra/Kconfig.
That way, tegra-cpufreq.c can't be built if !CPU_FREQ, and Tegra's
cpufreq works the same way as all the other cpufreq drivers.
This patch does it.
Suggested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 84d72fc36dfe..5c0db065baa4 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -28,7 +28,6 @@ config ARCH_TEGRA_2x_SOC | |||
28 | select ARM_ERRATA_754327 if SMP | 28 | select ARM_ERRATA_754327 if SMP |
29 | select ARM_ERRATA_764369 if SMP | 29 | select ARM_ERRATA_764369 if SMP |
30 | select ARM_GIC | 30 | select ARM_GIC |
31 | select CPU_FREQ_TABLE if CPU_FREQ | ||
32 | select CPU_V7 | 31 | select CPU_V7 |
33 | select PINCTRL | 32 | select PINCTRL |
34 | select PINCTRL_TEGRA20 | 33 | select PINCTRL_TEGRA20 |
@@ -46,7 +45,6 @@ config ARCH_TEGRA_3x_SOC | |||
46 | select ARM_ERRATA_754322 | 45 | select ARM_ERRATA_754322 |
47 | select ARM_ERRATA_764369 if SMP | 46 | select ARM_ERRATA_764369 if SMP |
48 | select ARM_GIC | 47 | select ARM_GIC |
49 | select CPU_FREQ_TABLE if CPU_FREQ | ||
50 | select CPU_V7 | 48 | select CPU_V7 |
51 | select PINCTRL | 49 | select PINCTRL |
52 | select PINCTRL_TEGRA30 | 50 | select PINCTRL_TEGRA30 |
@@ -63,7 +61,6 @@ config ARCH_TEGRA_114_SOC | |||
63 | select ARM_ARCH_TIMER | 61 | select ARM_ARCH_TIMER |
64 | select ARM_GIC | 62 | select ARM_GIC |
65 | select ARM_L1_CACHE_SHIFT_6 | 63 | select ARM_L1_CACHE_SHIFT_6 |
66 | select CPU_FREQ_TABLE if CPU_FREQ | ||
67 | select CPU_V7 | 64 | select CPU_V7 |
68 | select PINCTRL | 65 | select PINCTRL |
69 | select PINCTRL_TEGRA114 | 66 | select PINCTRL_TEGRA114 |