1 From fb4c9de4016dba651888db475fca03eff3423b73 Mon Sep 17 00:00:00 2001
2 From: Kabir Sahane <x0153567@ti.com>
3 Date: Tue, 9 Apr 2019 08:05:17 -0700
4 Subject: ARM: OMAP2+: pm33xx-core: Do not Turn OFF CEFUSE as PPA may be using
7 [ Upstream commit 72aff4ecf1cb85a3c6e6b42ccbda0bc631b090b3 ]
9 This area is used to store keys by HSPPA in case of AM438x SOC. Leave it
12 Signed-off-by: Kabir Sahane <x0153567@ti.com>
13 Signed-off-by: Andrew F. Davis <afd@ti.com>
14 Signed-off-by: Tony Lindgren <tony@atomide.com>
15 Signed-off-by: Sasha Levin <sashal@kernel.org>
17 arch/arm/mach-omap2/pm33xx-core.c | 8 +++++---
18 1 file changed, 5 insertions(+), 3 deletions(-)
20 diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c
21 index f4971e4a86b2..ca7026958d42 100644
22 --- a/arch/arm/mach-omap2/pm33xx-core.c
23 +++ b/arch/arm/mach-omap2/pm33xx-core.c
24 @@ -51,10 +51,12 @@ static int amx3_common_init(void)
26 /* CEFUSE domain can be turned off post bootup */
27 cefuse_pwrdm = pwrdm_lookup("cefuse_pwrdm");
29 - omap_set_pwrdm_state(cefuse_pwrdm, PWRDM_POWER_OFF);
32 pr_err("PM: Failed to get cefuse_pwrdm\n");
33 + else if (omap_type() != OMAP2_DEVICE_TYPE_GP)
34 + pr_info("PM: Leaving EFUSE power domain active\n");
36 + omap_set_pwrdm_state(cefuse_pwrdm, PWRDM_POWER_OFF);