[coreboot-gerrit] Change in coreboot[master]: wake_mask: Enable lazy wake mask for reef/poppy

Jenny Tc (Code Review) gerrit at coreboot.org
Fri Aug 18 12:20:53 CEST 2017


Jenny Tc has uploaded this change for review. ( https://review.coreboot.org/21086


Change subject: wake_mask: Enable lazy wake mask for reef/poppy
......................................................................

wake_mask: Enable lazy wake mask for reef/poppy

Enable lazy wake masks for Reef/Poppy so that s3/s5/s0ix
wake mask programming can be done in coreboot

BRANCH=none
BUG=b:63969337
TEST=enable lazy wake mask, powerd_dbus_suspend, verify ec
	command: hostevent

Change-Id: I65173104fce258d03956bbb0e80073c47fe80fab
Signed-off-by: Jenny TC <jenny.tc at intel.com>
---
M src/mainboard/google/poppy/Kconfig
M src/mainboard/google/poppy/ec.c
M src/mainboard/google/reef/Kconfig
M src/mainboard/google/reef/ec.c
4 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/21086/1

diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index 127f8c3..3e02d23 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -16,6 +16,7 @@
 	select NO_FADT_8042
 	select POPPY_USE_I2C_TPM if !VBOOT_MOCK_SECDATA
 	select SOC_INTEL_KABYLAKE
+	select LAZY_WAKE_MASK
 
 if BOARD_GOOGLE_BASEBOARD_POPPY
 
diff --git a/src/mainboard/google/poppy/ec.c b/src/mainboard/google/poppy/ec.c
index f0559ca..b5f3cec 100644
--- a/src/mainboard/google/poppy/ec.c
+++ b/src/mainboard/google/poppy/ec.c
@@ -40,4 +40,6 @@
 
 	/* Clear wake event mask */
 	google_chromeec_set_wake_mask(0);
+	google_chromeec_set_s0ix_lazy_wake_mask(
+				MAINBOARD_EC_S3_WAKE_EVENTS);
 }
diff --git a/src/mainboard/google/reef/Kconfig b/src/mainboard/google/reef/Kconfig
index f3360ca..9abc425 100644
--- a/src/mainboard/google/reef/Kconfig
+++ b/src/mainboard/google/reef/Kconfig
@@ -21,6 +21,7 @@
 	select USE_SAR
 	select SAR_ENABLE
 	select DSAR_ENABLE
+	select LAZY_WAKE_MASK
 
 if BOARD_GOOGLE_BASEBOARD_REEF
 
diff --git a/src/mainboard/google/reef/ec.c b/src/mainboard/google/reef/ec.c
index 59fa442..c664117 100644
--- a/src/mainboard/google/reef/ec.c
+++ b/src/mainboard/google/reef/ec.c
@@ -45,6 +45,8 @@
 
 	/* Clear wake event mask */
 	google_chromeec_set_wake_mask(0);
+	google_chromeec_set_s0ix_lazy_wake_mask(
+				MAINBOARD_EC_S3_WAKE_EVENTS);
 }
 
 static void bootblock_ec_init(void)

-- 
To view, visit https://review.coreboot.org/21086
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I65173104fce258d03956bbb0e80073c47fe80fab
Gerrit-Change-Number: 21086
Gerrit-PatchSet: 1
Gerrit-Owner: Jenny Tc <jenny.tc at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170818/ec774f7e/attachment.html>


More information about the coreboot-gerrit mailing list