summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga/Kconfig
diff options
context:
space:
mode:
authorAlan Tull <atull@opensource.altera.com>2015-06-05 15:24:52 +0200
committerKevin Hilman <khilman@linaro.org>2015-06-11 01:02:11 +0200
commit44fd8c7d4005f660f48679439f0a54225ba234a4 (patch)
tree86d07642758f6c26b835f9b24bad955cd0daa9d5 /arch/arm/mach-socfpga/Kconfig
parentARM: socfpga: add CPU_METHOD_OF_DECLARE for Arria 10 (diff)
downloadlinux-44fd8c7d4005f660f48679439f0a54225ba234a4.tar.xz
linux-44fd8c7d4005f660f48679439f0a54225ba234a4.zip
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>
Diffstat (limited to 'arch/arm/mach-socfpga/Kconfig')
-rw-r--r--arch/arm/mach-socfpga/Kconfig10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
index f420a1b200c2..90efdeb56be5 100644
--- a/arch/arm/mach-socfpga/Kconfig
+++ b/arch/arm/mach-socfpga/Kconfig
@@ -1,4 +1,4 @@
-config ARCH_SOCFPGA
+menuconfig ARCH_SOCFPGA
bool "Altera SOCFPGA family" if ARCH_MULTI_V7
select ARCH_SUPPORTS_BIG_ENDIAN
select ARM_AMBA
@@ -9,3 +9,11 @@ config ARCH_SOCFPGA
select HAVE_ARM_SCU
select HAVE_ARM_TWD if SMP
select MFD_SYSCON
+
+if ARCH_SOCFPGA
+config SOCFPGA_SUSPEND
+ bool "Suspend to RAM on SOCFPGA"
+ help
+ Select this if you want to enable Suspend-to-RAM on SOCFPGA
+ platforms.
+endif