coreboot-kgpe-d16/src
Furquan Shaikh b8501c7c5f mb/google/hatch: Fix interrupt trigger type for GPP_H0(HP_INT_L)
HP_INT_L(GPP_H0) is configured for GPIO IRQ instead of APIC IRQ since
it needs to trigger on both edges. With GPIO IRQ, it is necessary to
configure the trigger type in coreboot to match the ACPI
configuration. This is because:
1. ACPI configuration is used by intel-pinctrl driver in Linux kernel
to re-configure the trigger type for the pad in GPIO DW0 config
register. This is done when kernel driver probes and requests irq for
its device.
2. On resume from S3, the pad configuration gets reset and coreboot
sets the trigger type to LEVEL. However, kernel driver does not probe
again. This results in the trigger type being configured incorrectly.

This change updates the GPIO configuration for GPP_H0 to set the same
trigger type as advertised in ACPI for the kernel.

BUG=b:132672011
TEST=Verified that S3 works fine. Verified that interrupt on GPP_H0
works fine on boot as well as after suspend/resume.

Change-Id: Ieb44c7403a2f4911b4a8f422053dee8bcfb91d85
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34181
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-07-11 06:01:15 +00:00
..
acpi
arch arch/cpu/x86: Update AMD detection 2019-07-10 10:20:30 +00:00
commonlib commonlib/storage: use ALIGN_UP instead of ALIGN for better readability 2019-06-21 12:49:43 +00:00
console console: Correct printing of hexadecimal integers 2019-07-10 20:22:40 +00:00
cpu cpu/x86: Remove obsolete smm_init_completion() 2019-07-10 09:23:16 +00:00
device device/oprom: Replace CONFIG() preprocessor statements 2019-07-10 08:24:13 +00:00
drivers drivers/intel/fsp1_1/raminit.c: Always check FSP HOBs 2019-07-10 10:24:12 +00:00
ec arch/x86: Avoid HAVE_SMI_HANDLER conditional with smm-class 2019-07-09 12:43:35 +00:00
include lib/romstage_stack.c: Remove file 2019-07-07 21:27:22 +00:00
lib arch/x86: Replace some uses of SMM_TSEG 2019-07-09 12:44:10 +00:00
mainboard mb/google/hatch: Fix interrupt trigger type for GPP_H0(HP_INT_L) 2019-07-11 06:01:15 +00:00
northbridge nb/intel/nehalem: Tidy quickpath_reserved calculation 2019-07-10 10:15:51 +00:00
security src/security/vboot: Add option to skip display init with vboot 2.0 2019-07-07 20:09:24 +00:00
soc soc/intel/common/timer: Move USE_LEGACY_8254_TIMER into common/block/timer 2019-07-11 05:57:41 +00:00
southbridge sb/nvidia/ck804: Remove old debugging code 2019-07-10 18:23:11 +00:00
superio nuvoton/early_serial: improve comments on serial pinmux settings 2019-06-22 11:39:12 +00:00
vendorcode vendorcode/amd: Move 'static' to the beginning of declaration 2019-07-10 10:18:37 +00:00
Kconfig arch/x86: Flip HAVE_MONOTONIC_TIMER default 2019-07-09 13:36:18 +00:00