From f073872e22728fe8ade85022740af95cc129e9a5 Mon Sep 17 00:00:00 2001 From: Shaunak Saha Date: Mon, 2 Oct 2017 15:01:33 -0700 Subject: soc/intel/common/block: Manage power state variable from common PMC block This patch helps managing power state variables from within the library. Adds migrate_power_state which migrates the chipset power state variable, reads global power variable and adds it in cbmem for future use. This also adds get_soc_power_state_values function which returns the power state variable from cbmem or global power state variable if cbmem is not populated yet. Change-Id: If65341c1492e3a35a1a927100e0d893f923b9e68 Signed-off-by: Shaunak Saha Reviewed-on: https://review.coreboot.org/21851 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/common/block/include/intelblocks/pmclib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/common/block/include/intelblocks') diff --git a/src/soc/intel/common/block/include/intelblocks/pmclib.h b/src/soc/intel/common/block/include/intelblocks/pmclib.h index fe0a7657e3..05a4a06294 100644 --- a/src/soc/intel/common/block/include/intelblocks/pmclib.h +++ b/src/soc/intel/common/block/include/intelblocks/pmclib.h @@ -150,6 +150,9 @@ void pmc_global_reset_lock(void); /* Rewrite the gpe0 registers in cbmem to proper values as per routing table */ void pmc_fixup_power_state(void); +/* Returns the power state structure */ +struct chipset_power_state *pmc_get_power_state(void); + /* * Reads and prints ACPI specific PM registers which are common across * chipsets. Returns the previous sleep state which is one of ACPI_SX values. -- cgit v1.2.3