summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-04-08 13:22:44 -0700
committerAndrei Gherzan <andrei@gherzan.ro>2020-04-08 22:31:24 +0100
commit8d163dd844c3737d1557395c1eb512ebac86bdc0 (patch)
tree65fb601fc6ac4b9e3460f2aef0be7a4e36ae6127 /recipes-kernel
parent9f47df580ea2e4b42cbc60c0b404c12084c4fce8 (diff)
downloadmeta-raspberrypi-8d163dd844c3737d1557395c1eb512ebac86bdc0.tar.gz
linux-raspberrypi_5.4.bb: Enable powersave options in kconfig
Will let system hibernate and suspend, its initial setup, there is more work needed to get it going fully without problems in userspace, which will follow Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/files/powersave.cfg13
-rw-r--r--recipes-kernel/linux/linux-raspberrypi_5.4.bb1
2 files changed, 14 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/powersave.cfg b/recipes-kernel/linux/files/powersave.cfg
new file mode 100644
index 0000000..9c48eff
--- /dev/null
+++ b/recipes-kernel/linux/files/powersave.cfg
@@ -0,0 +1,13 @@
1CONFIG_SUSPEND=y
2CONFIG_SUSPEND_FREEZER=y
3CONFIG_HIBERNATE_CALLBACKS=y
4CONFIG_HIBERNATION=y
5CONFIG_PM_STD_PARTITION="/dev/mmcblk0p2"
6CONFIG_PM_SLEEP=y
7CONFIG_PM_SLEEP_SMP=y
8CONFIG_PM_AUTOSLEEP=y
9CONFIG_PM_WAKELOCKS=y
10CONFIG_PM_WAKELOCKS_LIMIT=100
11CONFIG_PM_WAKELOCKS_GC=y
12CONFIG_PM_GENERIC_DOMAINS_SLEEP=y
13CONFIG_ARCH_HIBERNATION_HEADER=y
diff --git a/recipes-kernel/linux/linux-raspberrypi_5.4.bb b/recipes-kernel/linux/linux-raspberrypi_5.4.bb
index 86a43ec..ec15b94 100644
--- a/recipes-kernel/linux/linux-raspberrypi_5.4.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_5.4.bb
@@ -6,4 +6,5 @@ SRCREV = "5c08b6e79a8bfa1e59bb0004a1c94ed902a6d615"
6require linux-raspberrypi_5.4.inc 6require linux-raspberrypi_5.4.inc
7 7
8SRC_URI += "file://0001-perf-Make-perf-able-to-build-with-latest-libbfd.patch \ 8SRC_URI += "file://0001-perf-Make-perf-able-to-build-with-latest-libbfd.patch \
9 file://powersave.cfg \
9 " 10 "