[coreboot-gerrit] Change in coreboot[master]: soc/intel/common: add acpi_get_sleep_type to pmclib

Bora Guvendik (Code Review) gerrit at coreboot.org
Sat Sep 29 02:07:05 CEST 2018


Bora Guvendik has uploaded this change for review. ( https://review.coreboot.org/28795


Change subject: soc/intel/common: add acpi_get_sleep_type to pmclib
......................................................................

soc/intel/common: add acpi_get_sleep_type to pmclib

Change-Id: I3f4123657a375211f802a7d484a15353f9a256e9
Signed-off-by: Bora Guvendik <bora.guvendik at intel.com>
---
M src/soc/intel/common/block/pmc/pmclib.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/28795/1

diff --git a/src/soc/intel/common/block/pmc/pmclib.c b/src/soc/intel/common/block/pmc/pmclib.c
index 52bfaec..3fb3866 100644
--- a/src/soc/intel/common/block/pmc/pmclib.c
+++ b/src/soc/intel/common/block/pmc/pmclib.c
@@ -93,6 +93,14 @@
 	 */
 }
 
+int acpi_get_sleep_type(void)
+{
+	struct chipset_power_state *ps;
+
+	ps = pmc_get_power_state();
+	return ps->prev_sleep_state;
+}
+
 static uint32_t pmc_reset_smi_status(void)
 {
 	uint32_t smi_sts = inl(ACPI_BASE_ADDRESS + SMI_STS);

-- 
To view, visit https://review.coreboot.org/28795
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f4123657a375211f802a7d484a15353f9a256e9
Gerrit-Change-Number: 28795
Gerrit-PatchSet: 1
Gerrit-Owner: Bora Guvendik <bora.guvendik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180929/a50b893b/attachment.html>


More information about the coreboot-gerrit mailing list