ARM: tegra: powergate the mpe and 3d cores at boot
authorDima Zavin <dima@android.com>
Fri, 17 Sep 2010 00:58:05 +0000 (17:58 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:28:40 +0000 (16:28 -0700)
Change-Id: I6ca09db039cd80eab18d062a7a4b5d2a93bd385e
Signed-off-by: Dima Zavin <dima@android.com>
arch/arm/mach-tegra/common.c

index 3304e92b5fe15f7301639bc32c3f76a2cd81124d..d5852042123a2bafb4fa3367a4dce715a5887569 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <mach/iomap.h>
 #include <mach/dma.h>
+#include <mach/powergate.h>
 #include <mach/system.h>
 
 #include "board.h"
@@ -66,11 +67,18 @@ void __init tegra_init_cache(void)
 
 }
 
+static void __init tegra_init_power(void)
+{
+       tegra_powergate_power_off(TEGRA_POWERGATE_MPE);
+       tegra_powergate_power_off(TEGRA_POWERGATE_3D);
+}
+
 void __init tegra_common_init(void)
 {
        tegra_init_fuse();
        tegra_init_clock();
        tegra_clk_init_from_table(common_clk_init_table);
+       tegra_init_power();
        tegra_init_cache();
 #ifdef CONFIG_TEGRA_SYSTEM_DMA
        tegra_dma_init();