coreboot-kgpe-d16/src
Kane Chen 000549266e soc/intel/jasperlake: Run pmc_set_acpi_mode() during .init in pmc_ops
pmc_set_acpi_mode will set EC SMI mask to 1 in the end.
However google_chromeec_events_init will clear EC SMI mask.
If google_chromeec_events_init is ran after pmc_set_acpi_mode, the EC SMI mask
will be 0 in depthcharge and causes lidclose function not working.
So, pmc_set_acpi_mode() should run after google_chromeec_events_init.

This code is mainly from CB:42677

BUG=b:16338215
TEST=Close lid in depthcharge and the dut can be shutdown on waddledoo.

Signed-off-by: Kane Chen <kane.chen@intel.com>
Change-Id: I0f06e8b5da00eb05a34a6ce1de6d713005211c08
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44563
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aamir Bohra <aamir.bohra@intel.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
2020-08-24 13:40:15 +00:00
..
acpi src/acpi: Drop unneeded empty lines 2020-08-24 09:16:59 +00:00
arch src/arch: Drop unneeded empty lines 2020-08-24 09:16:19 +00:00
commonlib src: Remove unused 'include <stdint.h> 2020-07-14 16:11:10 +00:00
console src: Remove unused 'include <stddef.h> 2020-08-18 12:15:44 +00:00
cpu Revert "cpu/x86/sipi: Add x86_64 support" 2020-08-24 11:35:31 +00:00
device {sb/intel/*/azalia.c,device/azalia_device.c}: Reduce differences 2020-08-17 06:58:45 +00:00
drivers drivers/spi/tpm: Add helper to get cr50 firmware version 2020-08-22 00:30:57 +00:00
ec ec/google/chromeec: Add helper to request AP reset 2020-08-14 08:35:15 +00:00
include soc/amd/picasso: Add console & timestamp buffers to psp_verstage 2020-08-24 09:23:05 +00:00
lib lib: Update fmap cache error for psp_verstage 2020-08-21 18:48:06 +00:00
mainboard mb/prodrive/hermes: Remove duplicate entry from devicetree 2020-08-24 12:17:16 +00:00
northbridge nb/amd/agesa: define DDR3_SPD_SIZE as a common value 2020-08-24 09:18:12 +00:00
security drivers/spi/tpm: Enable long cr50 ready pulses for Tiger Lake systems 2020-08-20 19:34:46 +00:00
soc soc/intel/jasperlake: Run pmc_set_acpi_mode() during .init in pmc_ops 2020-08-24 13:40:15 +00:00
southbridge SMM: Validate more user-provided pointers 2020-08-21 07:51:07 +00:00
superio src/superio: Drop unneeded empty lines 2020-08-24 09:14:42 +00:00
vendorcode nb/amd/agesa: define DDR3_SPD_SIZE as a common value 2020-08-24 09:18:12 +00:00
Kconfig Kconfig: Update ASan config options 2020-08-21 07:42:21 +00:00