coreboot-kgpe-d16/src/soc/intel/common
Tim Wawrzynczak 56fcfb5b4f soc/intel/common: Adapt XHCI elog driver for reuse
Currently this XHCI driver assumes the PCH XHCI controller, but the TCSS
or North XHCI block has a similar enough PCI MMIO structure to make this
code mostly reusable.

1) Rename everything to drop the `pch_` prefix
2) xhci_update_wake_event() now takes in a pci_devfn_t for the XHCI
controller
3) soc_get_xhci_usb_info() also now takes a pci_devfn_t for the XHCI
controller

BUG=b:172279037
TEST=plug in USB keyboard while in S0, enter S0ix and verify entry via
EC; type on keyboard, verify it wakes up, eventlog contains:
39 | 2020-12-10 09:40:21 | S0ix Enter
40 | 2020-12-10 09:40:42 | S0ix Exit
41 | 2020-12-10 09:40:42 | Wake Source | PME - XHCI (USB 2.0 port) | 1
42 | 2020-12-10 09:40:42 | Wake Source | GPE # | 109
which verifies it still functions for the PCH XHCI controller

Change-Id: I9f28354e031e3eda587f4faf8ef7595dce8b33ea
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47411
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-12-10 17:45:47 +00:00
..
acpi soc/intel/common/acpi,mb/*: replace the two obsolete LPID with PEPD 2020-11-20 00:12:09 +00:00
basecode soc/intel/common: Keep common non-IP code block inside basecode 2020-09-21 16:16:46 +00:00
block soc/intel/common: Adapt XHCI elog driver for reuse 2020-12-10 17:45:47 +00:00
pch soc/intel/common/dmi: Add support for locking down SRL 2020-12-09 14:23:22 +00:00
acpi.h treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
acpi_wake_source.c ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
fsp_reset.c soc/intel/common: Create common Intel FSP reset code block 2020-11-02 10:43:40 +00:00
hda_verb.c {soc/intel/common,sb/intel/lynxpoint}/hda_verb.c: Reduce differences 2020-08-17 06:59:24 +00:00
hda_verb.h soc/intel/common: Move common HDA registers to <device/azalia_device.h> 2020-08-17 06:44:04 +00:00
Kconfig.common soc/intel: Configure PAVP at compile-time 2020-10-12 23:11:04 +00:00
Makefile.inc soc/intel/common: Create common Intel FSP reset code block 2020-11-02 10:43:40 +00:00
mma.c cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
mma.h src: Remove unused 'include <stdint.h> 2020-07-14 16:11:10 +00:00
nhlt.c ACPI: Drop typedef global_nvs_t 2020-06-30 09:19:10 +00:00
reset.c Revert "soc/intel: Refactor do_global_reset() function" 2020-09-22 05:13:39 +00:00
reset.h Revert "soc/intel: Refactor do_global_reset() function" 2020-09-22 05:13:39 +00:00
smbios.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smbios.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
tpm_tis.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
vbt.c src: Remove unused 'include <bootstate.h>' 2020-06-02 07:40:35 +00:00
vbt.h src: Remove unused 'include <types.h>' 2020-07-14 16:10:17 +00:00