mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user