diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-10-17 16:00:10 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2017-10-19 00:42:53 +0000 |
commit | e48fb54b161f306966a9d878ab6d103554b2264a (patch) | |
tree | 97f8bc3be7ab2442a0372af3e3d7ff3e620e9de7 /src/soc/intel/common/block/include/intelblocks | |
parent | 2dc5eadccc29795a5923afaf2c7406ec98df482e (diff) | |
download | coreboot-e48fb54b161f306966a9d878ab6d103554b2264a.tar.xz |
soc/intel/common/block/pmc: Add new function pmc_fill_pm_reg_info
This change creates a new function pmc_fill_pm_reg_info that fills
chipset_power_state structure with all the PM register
information. On the other hand, already existing pmc_fill_power_state
calls into pmc_fill_pm_reg_info and then checks and returns previous
sleep state information. This allows caller to get all the PM register
information when previous sleep state is not relevant.
BUG=b:67874513
Change-Id: Idc91e4aef5379549355aceb685f7afafa6a220c5
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/22080
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/block/include/intelblocks')
-rw-r--r-- | src/soc/intel/common/block/include/intelblocks/pmclib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/include/intelblocks/pmclib.h b/src/soc/intel/common/block/include/intelblocks/pmclib.h index 89c3cdcd5d..7c10926e48 100644 --- a/src/soc/intel/common/block/include/intelblocks/pmclib.h +++ b/src/soc/intel/common/block/include/intelblocks/pmclib.h @@ -148,6 +148,12 @@ void pmc_fixup_power_state(void); struct chipset_power_state *pmc_get_power_state(void); /* + * Reads, fills(chipset_power_state) and prints ACPI specific PM registers. This + * function does not check the previous sleep state. + */ +void pmc_fill_pm_reg_info(struct chipset_power_state *ps); + +/* * Reads and prints ACPI specific PM registers which are common across * chipsets. Returns the previous sleep state which is one of ACPI_SX * values. Additionally, it also disables all GPEs after GPE_EN |