]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: try to only powergate sata, pcie, xusb
authorShreshtha SAHU <ssahu@nvidia.com>
Mon, 20 Oct 2014 15:20:38 +0000 (20:50 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Wed, 22 Oct 2014 11:37:00 +0000 (04:37 -0700)
Clocks for SATA, PCIE, XUSBA, XUSBB and XUSBC are not
enabled in clk_init_table during early init, hence only
try to do powergating for these partitions instead of
powergating with clock off.

Bug 200037194

Change-Id: I583220f0332fe7709f581912e7bc8de2faf6bb28
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/559460
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/platform/tegra/common.c

index 4e4ee64834a7856b25e3d1c6bbafb4004f2735ff..b86d96af00fb28714bf44d776c72f1010c9fdc43 100644 (file)
@@ -814,17 +814,17 @@ static void __init tegra_ramrepair_init(void)
 static void __init tegra_init_power(void)
 {
 #ifdef CONFIG_ARCH_TEGRA_HAS_SATA
-       tegra_powergate_partition_with_clk_off(TEGRA_POWERGATE_SATA);
+       tegra_powergate_partition(TEGRA_POWERGATE_SATA);
 #endif
 #ifdef CONFIG_ARCH_TEGRA_HAS_PCIE
-       tegra_powergate_partition_with_clk_off(TEGRA_POWERGATE_PCIE);
+       tegra_powergate_partition(TEGRA_POWERGATE_PCIE);
 #endif
 
 #if defined(CONFIG_TEGRA_XUSB_PLATFORM)
        /* powergate xusb partitions by default */
-       tegra_powergate_partition_with_clk_off(TEGRA_POWERGATE_XUSBB);
-       tegra_powergate_partition_with_clk_off(TEGRA_POWERGATE_XUSBA);
-       tegra_powergate_partition_with_clk_off(TEGRA_POWERGATE_XUSBC);
+       tegra_powergate_partition(TEGRA_POWERGATE_XUSBB);
+       tegra_powergate_partition(TEGRA_POWERGATE_XUSBA);
+       tegra_powergate_partition(TEGRA_POWERGATE_XUSBC);
 #endif
 
 }