]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: socfpga: support suspend to ram
authorAlan Tull <atull@opensource.altera.com>
Fri, 5 Jun 2015 13:24:52 +0000 (08:24 -0500)
committerKevin Hilman <khilman@linaro.org>
Wed, 10 Jun 2015 23:02:11 +0000 (16:02 -0700)
commitcb8832db2db64ec3059dec25bb1bd09bffc23a4f
tree86d07642758f6c26b835f9b24bad955cd0daa9d5
parent1704e426ac8c22a2c610e79bc4997375c5095f03
ARM: socfpga: support suspend to ram

Add code that requests that the sdr controller go into
self-refresh mode.  This code is run from ocram.

Suspend-to-RAM and EDAC support are mutually exclusive on
SOCFPGA.  If the EDAC is enabled, it will prevent the
platform from going into suspend.

Example of how to request to suspend to ram:
 $ echo enabled > \
/sys/devices/soc/ffc02000.serial0/tty/ttyS0/power/wakeup

 $ echo -n mem > /sys/power/state

Signed-off-by: Alan Tull <atull@opensource.altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/mach-socfpga/Kconfig
arch/arm/mach-socfpga/Makefile
arch/arm/mach-socfpga/core.h
arch/arm/mach-socfpga/pm.c [new file with mode: 0644]
arch/arm/mach-socfpga/self-refresh.S [new file with mode: 0644]
arch/arm/mach-socfpga/socfpga.c