Attention is currently required from: Jason Glenesk, Raul Rangel, Marshall Dawson, Felix Held. Karthik Ramasubramanian has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52049 )
Change subject: soc/amd/cezanne: Set Power state after power failure ......................................................................
soc/amd/cezanne: Set Power state after power failure
Configure the power state to return to when the power is re-applied after power failure.
BUG=b:183739671 TEST=Build and Boot to OS in Majolica and Guybrush. By default when the power fails the device remains off even after power is re-applied. When the POWER_ON_AFTER_POWER_FAILURE is enabled, the device powers on as soon as the power is re-applied.
Change-Id: I21c5da08c82156d6239450ef6921771da74cbaa1 Signed-off-by: Karthikeyan Ramasubramanian kramasub@google.com --- M src/soc/amd/cezanne/Kconfig M src/soc/amd/cezanne/bootblock.c 2 files changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/52049/1
diff --git a/src/soc/amd/cezanne/Kconfig b/src/soc/amd/cezanne/Kconfig index d682892..6a27955 100644 --- a/src/soc/amd/cezanne/Kconfig +++ b/src/soc/amd/cezanne/Kconfig @@ -48,6 +48,7 @@ select SOC_AMD_COMMON_BLOCK_NONCAR select SOC_AMD_COMMON_BLOCK_PCI select SOC_AMD_COMMON_BLOCK_PCI_MMCONF + select SOC_AMD_COMMON_BLOCK_PM select SOC_AMD_COMMON_BLOCK_PSP_GEN2 select SOC_AMD_COMMON_BLOCK_SMBUS select SOC_AMD_COMMON_BLOCK_SMI diff --git a/src/soc/amd/cezanne/bootblock.c b/src/soc/amd/cezanne/bootblock.c index 2447de6..47d246e 100644 --- a/src/soc/amd/cezanne/bootblock.c +++ b/src/soc/amd/cezanne/bootblock.c @@ -2,6 +2,7 @@
#include <amdblocks/amd_pci_mmconf.h> #include <amdblocks/cpu.h> +#include <amdblocks/pmlib.h> #include <bootblock_common.h> #include <console/console.h> #include <cpu/amd/mtrr.h> @@ -110,5 +111,6 @@ { u32 val = cpuid_eax(1); printk(BIOS_DEBUG, "Family_Model: %08x\n", val); + pm_set_power_failure_state(); fch_early_init(); }