ARM: OMAP2+: pm33xx-core: Extend platform_data ops for cpuidle
authorDave Gerlach <d-gerlach@ti.com>
Fri, 13 Dec 2019 03:07:53 +0000 (21:07 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 27 Feb 2020 17:27:27 +0000 (09:27 -0800)
commit65880ab160838e0764138894ef4450abdbed4af5
treeea35636572f1026b2107266a1ffa66fbbf20db24
parent06ee7a950b6a342cd79590e7243bdda850141967
ARM: OMAP2+: pm33xx-core: Extend platform_data ops for cpuidle

In order for am335x and am437x to properly enter deeper c-states in
cpuidle they must always call into the sleep33/43xx suspend code and
also sometimes invoke the wkup_m3_ipc driver. These are both controlled
by the pm33xx module so we must provide a method for the platform code
to call back into the module when it is available as the core cpuidle
ops that are invoked by the cpuidle-arm driver must remain as built in.

Extend the init platform op to take an idle function as an argument so
that we can use this to call into the pm33xx module for c-states that
need it. Also add a deinit op so we can unregister this idle function
from the PM core when the pm33xx module gets unloaded.

Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm33xx-core.c
drivers/soc/ti/pm33xx.c
include/linux/platform_data/pm33xx.h