]> git.baikalelectronics.ru Git - kernel.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)
commit79b82b093a1756e481fe4bf9a1d3ddffb34b932f
tree197ba77a3e623efec8c9b1bfd9696d7b98fddbb5
parent06e50ae2e9e0bacf9f3948be62021db43efabf66
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]