diff options
author | Rajendra Nayak <rnayak@ti.com> | 2013-06-17 09:16:23 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2013-06-17 10:26:44 -0400 |
commit | 63b0420c85096d4bb1a3ba365dbf6b970a58b8f7 (patch) | |
tree | a0c4bbe9983e598ed4c6acab8157dfa30b5204f5 | |
parent | cd8abed1da91a3250aa4b3857479613a2b446f84 (diff) |
ARM: AM33xx: Remove the unused voltagedomain data
Now that there is a way to tell the powerdomain core about
missing voltage domain auto-scaling control in SoCs', get rid of the dummy
voltage domain data populated for AM33xx devices.
Acked-by: Nishanth Menon <nm@ti.com>
Acked-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Afzal Mohammed <afzal@ti.com> # am335x evm
Signed-off-by: Kevin Hilman <khilman@linaro.org>
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/io.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/prm33xx.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-omap2/voltage.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/voltagedomains33xx_data.c | 43 |
5 files changed, 7 insertions, 46 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 55a9d6777683..a4f1d2a78d98 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -125,7 +125,6 @@ obj-$(CONFIG_ARCH_OMAP3) += voltagedomains3xxx_data.o | |||
125 | obj-$(CONFIG_ARCH_OMAP4) += $(voltagedomain-common) | 125 | obj-$(CONFIG_ARCH_OMAP4) += $(voltagedomain-common) |
126 | obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o | 126 | obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o |
127 | obj-$(CONFIG_SOC_AM33XX) += $(voltagedomain-common) | 127 | obj-$(CONFIG_SOC_AM33XX) += $(voltagedomain-common) |
128 | obj-$(CONFIG_SOC_AM33XX) += voltagedomains33xx_data.o | ||
129 | obj-$(CONFIG_SOC_OMAP5) += $(voltagedomain-common) | 128 | obj-$(CONFIG_SOC_OMAP5) += $(voltagedomain-common) |
130 | 129 | ||
131 | # OMAP powerdomain framework | 130 | # OMAP powerdomain framework |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 09abf99e9e57..50b93df45846 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -577,7 +577,6 @@ void __init am33xx_init_early(void) | |||
577 | omap2_set_globals_cm(AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE), NULL); | 577 | omap2_set_globals_cm(AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE), NULL); |
578 | omap3xxx_check_revision(); | 578 | omap3xxx_check_revision(); |
579 | ti81xx_check_features(); | 579 | ti81xx_check_features(); |
580 | am33xx_voltagedomains_init(); | ||
581 | am33xx_powerdomains_init(); | 580 | am33xx_powerdomains_init(); |
582 | am33xx_clockdomains_init(); | 581 | am33xx_clockdomains_init(); |
583 | am33xx_hwmod_init(); | 582 | am33xx_hwmod_init(); |
diff --git a/arch/arm/mach-omap2/prm33xx.c b/arch/arm/mach-omap2/prm33xx.c index 44c0d7216aa7..720440737744 100644 --- a/arch/arm/mach-omap2/prm33xx.c +++ b/arch/arm/mach-omap2/prm33xx.c | |||
@@ -320,6 +320,12 @@ static int am33xx_pwrdm_wait_transition(struct powerdomain *pwrdm) | |||
320 | return 0; | 320 | return 0; |
321 | } | 321 | } |
322 | 322 | ||
323 | static int am33xx_check_vcvp(void) | ||
324 | { | ||
325 | /* No VC/VP on am33xx devices */ | ||
326 | return 0; | ||
327 | } | ||
328 | |||
323 | struct pwrdm_ops am33xx_pwrdm_operations = { | 329 | struct pwrdm_ops am33xx_pwrdm_operations = { |
324 | .pwrdm_set_next_pwrst = am33xx_pwrdm_set_next_pwrst, | 330 | .pwrdm_set_next_pwrst = am33xx_pwrdm_set_next_pwrst, |
325 | .pwrdm_read_next_pwrst = am33xx_pwrdm_read_next_pwrst, | 331 | .pwrdm_read_next_pwrst = am33xx_pwrdm_read_next_pwrst, |
@@ -335,4 +341,5 @@ struct pwrdm_ops am33xx_pwrdm_operations = { | |||
335 | .pwrdm_set_mem_onst = am33xx_pwrdm_set_mem_onst, | 341 | .pwrdm_set_mem_onst = am33xx_pwrdm_set_mem_onst, |
336 | .pwrdm_set_mem_retst = am33xx_pwrdm_set_mem_retst, | 342 | .pwrdm_set_mem_retst = am33xx_pwrdm_set_mem_retst, |
337 | .pwrdm_wait_transition = am33xx_pwrdm_wait_transition, | 343 | .pwrdm_wait_transition = am33xx_pwrdm_wait_transition, |
344 | .pwrdm_has_voltdm = am33xx_check_vcvp, | ||
338 | }; | 345 | }; |
diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h index a0ce4f10ff13..9bf796df1b9e 100644 --- a/arch/arm/mach-omap2/voltage.h +++ b/arch/arm/mach-omap2/voltage.h | |||
@@ -169,7 +169,6 @@ int omap_voltage_late_init(void); | |||
169 | 169 | ||
170 | extern void omap2xxx_voltagedomains_init(void); | 170 | extern void omap2xxx_voltagedomains_init(void); |
171 | extern void omap3xxx_voltagedomains_init(void); | 171 | extern void omap3xxx_voltagedomains_init(void); |
172 | extern void am33xx_voltagedomains_init(void); | ||
173 | extern void omap44xx_voltagedomains_init(void); | 172 | extern void omap44xx_voltagedomains_init(void); |
174 | 173 | ||
175 | struct voltagedomain *voltdm_lookup(const char *name); | 174 | struct voltagedomain *voltdm_lookup(const char *name); |
diff --git a/arch/arm/mach-omap2/voltagedomains33xx_data.c b/arch/arm/mach-omap2/voltagedomains33xx_data.c deleted file mode 100644 index 965458dc0cb9..000000000000 --- a/arch/arm/mach-omap2/voltagedomains33xx_data.c +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /* | ||
2 | * AM33XX voltage domain data | ||
3 | * | ||
4 | * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License as | ||
8 | * published by the Free Software Foundation version 2. | ||
9 | * | ||
10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
11 | * kind, whether express or implied; without even the implied warranty | ||
12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | ||
15 | |||
16 | #include <linux/kernel.h> | ||
17 | #include <linux/init.h> | ||
18 | |||
19 | #include "voltage.h" | ||
20 | |||
21 | static struct voltagedomain am33xx_voltdm_mpu = { | ||
22 | .name = "mpu", | ||
23 | }; | ||
24 | |||
25 | static struct voltagedomain am33xx_voltdm_core = { | ||
26 | .name = "core", | ||
27 | }; | ||
28 | |||
29 | static struct voltagedomain am33xx_voltdm_rtc = { | ||
30 | .name = "rtc", | ||
31 | }; | ||
32 | |||
33 | static struct voltagedomain *voltagedomains_am33xx[] __initdata = { | ||
34 | &am33xx_voltdm_mpu, | ||
35 | &am33xx_voltdm_core, | ||
36 | &am33xx_voltdm_rtc, | ||
37 | NULL, | ||
38 | }; | ||
39 | |||
40 | void __init am33xx_voltagedomains_init(void) | ||
41 | { | ||
42 | voltdm_init(voltagedomains_am33xx); | ||
43 | } | ||