diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2013-03-22 10:57:40 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:04:34 -0700 |
commit | 3de88b6baca37bc187474ef53614bc3793e6f1c9 (patch) | |
tree | 973baf6615b8bb5cfe56376c7a823fb6046b1033 /arch/arm/mach-tegra/pm.h | |
parent | 5e32d984e7fc4fd5f108b1f6f678a758e044455b (diff) |
ARM: Tegra: Add idle state for MC clock
This state puts DRAM in self-refresh. It is attached to MC clock
domain, disabled initiallly and will get enabled automatically when
MC clock domain is turned off.
/sys/module/cpuidle_t11x/parameters/stop_mc_clk_in_idle can be used
to control this state.
Bug 1010971
Change-Id: Ia7d70ba1e5a4cdd8ac9cc722de20ed0cd4dabf1a
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/197386
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pm.h')
-rw-r--r-- | arch/arm/mach-tegra/pm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index c515e6f9b192..a1da6ba9ec63 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -79,6 +79,7 @@ struct tegra_suspend_platform_data { unsigned long min_residency_ncpu_fast; unsigned long min_residency_crail; #endif + unsigned long min_residency_mc_clk; }; /* clears io dpd settings before kernel code */ @@ -87,6 +88,7 @@ void tegra_bl_io_dpd_cleanup(void); unsigned long tegra_cpu_power_good_time(void); unsigned long tegra_cpu_power_off_time(void); unsigned long tegra_cpu_lp2_min_residency(void); +unsigned long tegra_mc_clk_stop_min_residency(void); #ifdef CONFIG_ARCH_TEGRA_HAS_SYMMETRIC_CPU_PWR_GATE unsigned long tegra_min_residency_vmin_fmin(void); unsigned long tegra_min_residency_ncpu(void); @@ -95,6 +97,8 @@ unsigned long tegra_min_residency_crail(void); void tegra_clear_cpu_in_pd(int cpu); bool tegra_set_cpu_in_pd(int cpu); +void tegra_mc_clk_prepare(void); +void tegra_mc_clk_finish(void); int tegra_suspend_dram(enum tegra_suspend_mode mode, unsigned int flags); #ifdef CONFIG_ARCH_TEGRA_14x_SOC |