coreboot-kgpe-d16/src/soc/intel/apollolake
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 src: Remove redundant use of ACPI offset(0) 2020-12-03 00:05:52 +00:00
bootblock soc/intel/apollolake: Rename SOC_INTEL_GLK symbol 2020-09-09 10:34:32 +00:00
include/soc soc/intel: deduplicate ACPI timer emulation 2020-10-28 21:28:19 +00:00
acpi.c soc/intel/apollolake: use P2SB function to generate DMAR IOAPIC 2020-11-20 10:18:25 +00:00
car.c src: Remove unused 'include <cpu/x86/msr.h>' 2020-07-14 16:14:09 +00:00
chip.c soc/intel: Configure PAVP at compile-time 2020-10-12 23:11:04 +00:00
chip.h soc/intel/*/chip.h: Use uint32_t for tcc_offset 2020-09-27 22:45:20 +00:00
cpu.c {cpu,soc}/intel: replace AES-NI locking by common implemenation call 2020-10-21 12:34:28 +00:00
cse.c src/soc/intel: Drop unneeded empty lines 2020-09-21 16:15:25 +00:00
elog.c soc/intel/common: Adapt XHCI elog driver for reuse 2020-12-10 17:45:47 +00:00
fspcar.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
glk_page_map.txt src: capitalize 'RAM' 2020-02-24 12:56:03 +00:00
gpio_apl.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gpio_glk.c src/soc/intel: Drop unneeded empty lines 2020-09-21 16:15:25 +00:00
graphics.c soc/intel/apl: Add panel power and backlight configuration 2020-09-06 21:41:33 +00:00
gspi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
heci.c Revert "soc/intel: Refactor do_global_reset() function" 2020-09-22 05:13:39 +00:00
i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig soc/intel/block/pmc: Only include the PCI driver when it is not hidden 2020-11-22 22:25:03 +00:00
lpc.c soc/intel/apollolake: Rename SOC_INTEL_GLK symbol 2020-09-09 10:34:32 +00:00
Makefile.inc soc/intel: deduplicate ACPI timer emulation 2020-10-28 21:28:19 +00:00
meminit.c soc/intel/apollolake: Rename SOC_INTEL_GLK symbol 2020-09-09 10:34:32 +00:00
meminit_util_apl.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
meminit_util_glk.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mmap_boot.c coreboot tables: Add SPI flash memory map windows to coreboot tables 2020-12-08 22:56:09 +00:00
nhlt.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pdpt.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
pmc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pmutil.c soc/intel: deduplicate ACPI timer emulation 2020-10-28 21:28:19 +00:00
pnpconfig.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pt.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
report_platform.c {nb,soc}/intel: Use get_current_microcode_rev() for ucode version 2020-08-05 15:36:38 +00:00
reset.c soc/intel: Use of common reset code block 2020-11-02 10:43:53 +00:00
romstage.c soc/intel: rename get_prmrr_size 2020-09-21 15:51:01 +00:00
sd.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smihandler.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
systemagent.c soc/intel/common: Improve Type16 SMBIOS tables 2020-05-28 06:26:53 +00:00
uart.c soc/intel/apollolake: Rename SOC_INTEL_GLK symbol 2020-09-09 10:34:32 +00:00
xdci.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
xhci.c soc/intel/common: Adapt XHCI elog driver for reuse 2020-12-10 17:45:47 +00:00