soc/intel/{adl,tgl,jsl}: Enable power button smi after BS_CHIPS_EXIT
commit3aee3ad46dd8d415c6236a74b27d15672fd0bb93
authorKane Chen <kane.chen@intel.corp-partner.google.com>
Tue, 4 May 2021 01:53:38 +0000 (4 09:53 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 7 May 2021 06:05:37 +0000 (7 06:05 +0000)
tree5ac4a54983d6b6cf518f4089bb85520817de03fa
parent7b7b33e3a615b0581df9e8e371fb218e97ba2a51
soc/intel/{adl,tgl,jsl}: Enable power button smi after BS_CHIPS_EXIT

On tgl, we noticed system hang if a shutdown is triggered before fsps.
The dut is unable to shutdown properly due to tcss is stuck before
tcss_init in fsps.

This change enable power button smi on jsl, tgl, adl after fsps.
it can also prevent a shutdown failure due to lack of fsps init on
certain ip.

BUG=b:186194102, b:186815114
TEST=Power on the system and pressing power button repeatedly doesn't
     cause the system hang during shutdown.

Change-Id: I70b871f2676a89bc782116e02beba5c20ec51eef
Signed-off-by: Kane Chen <kane.chen@intel.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52874
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
src/soc/intel/alderlake/cpu.c
src/soc/intel/alderlake/pmc.c
src/soc/intel/jasperlake/cpu.c
src/soc/intel/jasperlake/pmc.c
src/soc/intel/tigerlake/cpu.c
src/soc/intel/tigerlake/pmc.c