Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296643
b: refs/heads/master
c: 6cafa97
h: refs/heads/master
i:
  296641: 7d01dd3
  296639: b43d424
v: v3
  • Loading branch information
Peter De Schrijver authored and Olof Johansson committed Feb 26, 2012
1 parent 7ee9608 commit e048065
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ac8cb5c213a3f3cfc243ef2f635794bd4b55c60
refs/heads/master: 6cafa97d3ca6a480dc39e20bb2d12ec2c5ca025e
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-tegra/include/mach/powergate.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
#define TEGRA_POWERGATE_VDEC 4
#define TEGRA_POWERGATE_L2 5
#define TEGRA_POWERGATE_MPE 6
#define TEGRA_POWERGATE_HEG 7
#define TEGRA_POWERGATE_SATA 8
#define TEGRA_POWERGATE_CPU1 9
#define TEGRA_POWERGATE_CPU2 10
#define TEGRA_POWERGATE_CPU3 11
#define TEGRA_POWERGATE_CELP 12
#define TEGRA_POWERGATE_3D1 13

#define TEGRA_POWERGATE_CPU0 TEGRA_POWERGATE_CPU
#define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D

int tegra_powergate_is_powered(int id);
int tegra_powergate_power_on(int id);
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-tegra/powergate.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ int __init tegra_powergate_init(void)
case TEGRA20:
tegra_num_powerdomains = 7;
break;
case TEGRA30:
tegra_num_powerdomains = 14;
break;
default:
/* Unknown Tegra variant. Disable powergating */
tegra_num_powerdomains = 0;
Expand Down

0 comments on commit e048065

Please sign in to comment.