summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/exynos/power.c
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2014-05-29 21:40:54 +0530
committerMinkyu Kang <mk7.kang@samsung.com>2014-05-31 14:22:20 +0900
commit567802bbd6bf1c809d37fef9244fc8a692244e73 (patch)
tree0aa905d346d2f75f5f8cb6bd79ca52bd15e709f8 /arch/arm/cpu/armv7/exynos/power.c
parent0c04b1a83b54e5c3c458b5dfa096784be76e24d4 (diff)
Exynos: Make sure ps_hold gets set in the SPL
Setting ps_hold ought to be one of the first things we do when we first boot up. If we wait until the main u-boot runs we won't set it in time and the PMIC may power us back off. Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm/cpu/armv7/exynos/power.c')
-rw-r--r--arch/arm/cpu/armv7/exynos/power.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/exynos/power.c b/arch/arm/cpu/armv7/exynos/power.c
index 563abd750f..638ee0b30b 100644
--- a/arch/arm/cpu/armv7/exynos/power.c
+++ b/arch/arm/cpu/armv7/exynos/power.c
@@ -112,6 +112,12 @@ static void exynos5_set_ps_hold_ctrl(void)
EXYNOS_PS_HOLD_CONTROL_DATA_HIGH);
}
+/*
+ * Set ps_hold data driving value high
+ * This enables the machine to stay powered on
+ * after the initial power-on condition goes away
+ * (e.g. power button).
+ */
void set_ps_hold_ctrl(void)
{
if (cpu_is_exynos5())