aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2012-02-09 18:47:48 -0500
committerOlof Johansson <olof@lixom.net>2012-02-26 17:44:45 -0500
commit6cafa97d3ca6a480dc39e20bb2d12ec2c5ca025e (patch)
tree2a1e0b9d6ca679a374d1db931f2b4ca57be1fb2b /arch/arm/mach-tegra
parent6ac8cb5c213a3f3cfc243ef2f635794bd4b55c60 (diff)
ARM: tegra: add support for Tegra30 powerdomains
Add support for the new powerdomains in Tegra30 such as extra CPU cores and the SATA domain. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/include/mach/powergate.h10
-rw-r--r--arch/arm/mach-tegra/powergate.c3
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/powergate.h b/arch/arm/mach-tegra/include/mach/powergate.h
index 0ec8ce1cbd22..ca41186a545f 100644
--- a/arch/arm/mach-tegra/include/mach/powergate.h
+++ b/arch/arm/mach-tegra/include/mach/powergate.h
@@ -27,6 +27,16 @@
27#define TEGRA_POWERGATE_VDEC 4 27#define TEGRA_POWERGATE_VDEC 4
28#define TEGRA_POWERGATE_L2 5 28#define TEGRA_POWERGATE_L2 5
29#define TEGRA_POWERGATE_MPE 6 29#define TEGRA_POWERGATE_MPE 6
30#define TEGRA_POWERGATE_HEG 7
31#define TEGRA_POWERGATE_SATA 8
32#define TEGRA_POWERGATE_CPU1 9
33#define TEGRA_POWERGATE_CPU2 10
34#define TEGRA_POWERGATE_CPU3 11
35#define TEGRA_POWERGATE_CELP 12
36#define TEGRA_POWERGATE_3D1 13
37
38#define TEGRA_POWERGATE_CPU0 TEGRA_POWERGATE_CPU
39#define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D
30 40
31int tegra_powergate_is_powered(int id); 41int tegra_powergate_is_powered(int id);
32int tegra_powergate_power_on(int id); 42int tegra_powergate_power_on(int id);
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index 984bbdfec5db..7120ad7e1355 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -167,6 +167,9 @@ int __init tegra_powergate_init(void)
167 case TEGRA20: 167 case TEGRA20:
168 tegra_num_powerdomains = 7; 168 tegra_num_powerdomains = 7;
169 break; 169 break;
170 case TEGRA30:
171 tegra_num_powerdomains = 14;
172 break;
170 default: 173 default:
171 /* Unknown Tegra variant. Disable powergating */ 174 /* Unknown Tegra variant. Disable powergating */
172 tegra_num_powerdomains = 0; 175 tegra_num_powerdomains = 0;