Permalink
Browse files

ARM: exynos: power: add ps_hold for exynos4

  • Loading branch information...
fourkbomb committed Apr 25, 2018
1 parent 2a0f5de commit 2333e410a30f4e44a86f1c1cfd1bd5542365c493
Showing with 11 additions and 0 deletions.
  1. +11 −0 arch/arm/mach-exynos/power.c
@@ -163,6 +163,15 @@ static void exynos5_set_ps_hold_ctrl(void)
EXYNOS_PS_HOLD_CONTROL_DATA_HIGH);
}

static void exynos4_set_ps_hold_ctrl(void)
{
struct exynos4412_power *power =
(struct exynos4412_power *)samsung_get_base_power();

setbits_le32(&power->ps_hold_control,
0x300);
}

/*
* Set ps_hold data driving value high
* This enables the machine to stay powered on
@@ -173,6 +182,8 @@ void set_ps_hold_ctrl(void)
{
if (cpu_is_exynos5())
exynos5_set_ps_hold_ctrl();
else if (cpu_is_exynos4())
exynos4_set_ps_hold_ctrl();
}


0 comments on commit 2333e41

Please sign in to comment.