ARM: OMAP2+: sleep33/43xx: Make sleep actions configurable
authorDave Gerlach <d-gerlach@ti.com>
Mon, 9 Jul 2018 07:33:16 +0000 (13:03 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 10 Jul 2018 06:01:34 +0000 (23:01 -0700)
commit74655749a58405e259eaaba66bfc391fdbe1e34e
tree236b3f2e858af9d8649d1794dd37321f37153547
parenteb07fe9f9f28d4ce441c5b51653d421725b0c998
ARM: OMAP2+: sleep33/43xx: Make sleep actions configurable

Add an argument to the sleep33xx and sleep43xx code to allow us to set
flags to determine which portions of the code get called in order to use
the same code for multiple power saving modes. This patch allows us to
decide whether or not we flush and disable caches, save EMIF context,
put the memory into self refresh and disable the EMIF, and/or invoke
the wkup_m3 when entering into WFI.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm33xx-core.c
arch/arm/mach-omap2/sleep33xx.S
arch/arm/mach-omap2/sleep43xx.S
drivers/soc/ti/pm33xx.c
include/linux/platform_data/pm33xx.h