]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: mvebu: Armada XP GP specific suspend/resume code
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 21 Nov 2014 16:00:08 +0000 (17:00 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sun, 30 Nov 2014 16:40:14 +0000 (16:40 +0000)
commit27432825ae19fc26f099156c666cbcc4861e3e54
tree197ba77a3e623efec8c9b1bfd9696d7b98fddbb5
parent8da2b2f7ceeed931af0fc1d4fca800650bb41826
ARM: mvebu: Armada XP GP specific suspend/resume code

On the Armada XP GP platform, entering suspend to RAM state is
triggering by talking to an external PIC micro-controller connected to
the SoC using 3 GPIOs. There is then a small magic sequence of GPIO
toggling that needs to be used to tell the PIC to turn off the SoC.

The code uses the Device Tree to find out which GPIOs are used to
connect to the PIC micro-controller, and then registers its
mvebu_armada_xp_gp_pm_enter() callback to the SoC-level PM code. The
SoC PM code will call back into this registered function at the very
end of the suspend procedure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1416585613-2113-12-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/Makefile
arch/arm/mach-mvebu/pm-board.c [new file with mode: 0644]