[ARM] tegra: Setup regulators for suspend

The regulator framework may need to change certain regulators when
entering suspend.

Change-Id: I584e92b3c32cbd1a63325831822e2704a3dd2774
Signed-off-by: Greg Meiste <w30289@motorola.com>
This commit is contained in:
Greg Meiste
2010-09-08 13:38:36 -05:00
committed by Colin Cross
parent 281032d649
commit 2b32d2a33a

View File

@@ -37,6 +37,8 @@
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/regulator/machine.h>
#include <asm/cacheflush.h>
#include <asm/hardware/cache-l2x0.h>
#include <asm/hardware/gic.h>
@@ -476,6 +478,11 @@ static void tegra_suspend_dram(bool do_lp0)
wmb();
}
static int tegra_suspend_begin(suspend_state_t state)
{
return regulator_suspend_prepare(state);
}
static int tegra_suspend_prepare_late(void)
{
disable_irq(INT_SYS_STATS_MON);
@@ -645,6 +652,7 @@ static int tegra_suspend_enter(suspend_state_t state)
static struct platform_suspend_ops tegra_suspend_ops = {
.valid = suspend_valid_only_mem,
.begin = tegra_suspend_begin,
.prepare_late = tegra_suspend_prepare_late,
.wake = tegra_suspend_wake,
.enter = tegra_suspend_enter,