ARM: tegra: Assert reset when power ungating
Terje Bergstrom [Wed, 31 Jul 2013 05:34:10 +0000 (08:34 +0300)]
Ensure unit is in reset when powering it back on.

Bug 1329416
Bug 1331777
Bug 1322046

Change-Id: I8ef6646a8fe2ae85fdb836f3222678e5f77a784c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/256139
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

arch/arm/mach-tegra/powergate-t11x.c

index 242f1c1..5548580 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2012-2013, NVIDIA CORPORATION.  All rights reserved.
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
@@ -485,6 +485,10 @@ static int tegra11x_unpowergate(int id,
 
        udelay(10);
 
+       powergate_partition_assert_reset(pg_info);
+
+       udelay(10);
+
        /* Un-Powergating fails if all clks are not enabled */
        ret = partition_clk_enable(pg_info);
        if (ret)