diff options
author | Subrata Banik <subrata.banik@intel.com> | 2017-12-13 11:02:43 +0530 |
---|---|---|
committer | Subrata Banik <subrata.banik@intel.com> | 2017-12-21 03:48:00 +0000 |
commit | 9b98febe7a9126ab4a323c8eeedb1427e959f7d9 (patch) | |
tree | 9da5751c0215f152dc04f93868a8a189b6ac8630 /src/soc/intel/common/block/pmc/Kconfig | |
parent | e5ab9e28a6041209fd88bc7f760df60662539ba1 (diff) |
soc/intel/common: Add API to restore power failure into PMC common code
PMC config register need to program to define which state system
should be after reapplied power from G3 state.
0 = System will return to S0 state
1 = System will return to S5 state
2 = System will return to previous state before failure
Refer to EDS for detailed programming sequence.
Change-Id: I0ce2cc77745d00a8cfe3eed7c6372af77e063d02
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/22838
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/block/pmc/Kconfig')
-rw-r--r-- | src/soc/intel/common/block/pmc/Kconfig | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/pmc/Kconfig b/src/soc/intel/common/block/pmc/Kconfig index c00e14c303..cfd12d8f3e 100644 --- a/src/soc/intel/common/block/pmc/Kconfig +++ b/src/soc/intel/common/block/pmc/Kconfig @@ -5,3 +5,28 @@ config SOC_INTEL_COMMON_BLOCK_PMC help Intel Processor common code for Power Management controller(PMC) subsystem + +choice + prompt "System Power State after Failure" + default POWER_STATE_ON_AFTER_FAILURE + +config POWER_STATE_OFF_AFTER_FAILURE + bool "S5 Soft Off" + help + Choose this option if you want to keep system into + S5 after reapplying power after failure + +config POWER_STATE_ON_AFTER_FAILURE + bool "S0 Full On" + help + Choose this option if you want to keep system into + S0 after reapplying power after failure + +config POWER_STATE_PREVIOUS_AFTER_FAILURE + bool "Keep Previous State" + help + Choose this option if you want to keep system into + same power state as before failure even after reapplying + power + +endchoice |