Enable Suspend-to-RAM code based on Kconfig option. Does not work yet, so the Kconfig option depends on BROKEN.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Index: LinuxBIOSv3-if0crud/southbridge/amd/cs5536/cs5536.c =================================================================== --- LinuxBIOSv3-if0crud/southbridge/amd/cs5536/cs5536.c (Revision 587) +++ LinuxBIOSv3-if0crud/southbridge/amd/cs5536/cs5536.c (Arbeitskopie) @@ -488,7 +488,7 @@ } sb = (struct southbridge_amd_cs5536_dts_config *)dev->device_configuration;
-#if 0 +#ifdef CONFIG_SUSPEND_TO_RAM if (!IsS3Resume()) { struct acpi_init *aci = acpi_init_table; Index: LinuxBIOSv3-if0crud/device/Kconfig =================================================================== --- LinuxBIOSv3-if0crud/device/Kconfig (Revision 587) +++ LinuxBIOSv3-if0crud/device/Kconfig (Arbeitskopie) @@ -87,3 +87,13 @@
endmenu
+menu "Power management" + +config SUSPEND_TO_RAM + bool "Suspend-to-RAM (S3)" + depends EXPERIMENTAL && BROKEN + help + Enable support for Suspend-to-RAM (S3) functionality. + +endmenu +