ARM: tegra: disable powergating on simulation
Jeff Smith [Thu, 3 May 2012 00:26:56 +0000 (17:26 -0700)]
Change-Id: Ibcf0536bfb882dea1db7f7b61c68e3bbd562a291
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/101277
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: Ra772f9a1905ee5cb1548a26eddc5ec6e99dbf80d

arch/arm/mach-tegra/powergate.c

index 5e8a591..15fed8e 100644 (file)
@@ -2,7 +2,7 @@
  * drivers/powergate/tegra-powergate.c
  *
  * Copyright (c) 2010 Google, Inc
- * Copyright (C) 2011 NVIDIA Corporation.
+ * Copyright (C) 2011-2012 NVIDIA Corporation.
  *
  * Author:
  *     Colin Cross <ccross@google.com>
@@ -430,6 +430,7 @@ static void mc_flush_done(int id) {}
 
 static int tegra_powergate_set(int id, bool new_state)
 {
+#ifndef CONFIG_TEGRA_SIMULATION_PLATFORM
        bool status;
        unsigned long flags;
        /* 10us timeout for toggle operation if it takes affect*/
@@ -476,6 +477,7 @@ static int tegra_powergate_set(int id, bool new_state)
 
        trace_power_domain_target(powergate_partition_info[id].name, new_state,
                        smp_processor_id());
+#endif
 
        return 0;
 }