soc/intel: Move USB wake methods to a common ASL file
commita5215c4eb3a4cbe0ef32257c4da2e5a6e0febdef
authorReka Norman <rekanorman@chromium.org>
Fri, 22 Sep 2023 05:26:54 +0000 (22 15:26 +1000)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 4 Oct 2023 15:29:32 +0000 (4 15:29 +0000)
treef41a03dd91791e30e8483a2623d010af9b590fe9
parent773d4b8fb00613b373d81e877a7014c338542e86
soc/intel: Move USB wake methods to a common ASL file

The ACPI methods for enabling USB wake are identical on ADL, CNL and
SKL. Move them to a common ASL file so they can be reused more easily
on other SoCs.

Also move the USB_PORT_WAKE_ENABLE macro used to create enable bitmasks
in devicetree to a common header.

BUG=b:300844110
TEST=Use abuild to build kinox, puff, and fizz with and without this
change. Check the generated dsdt.aml is unchanged.

Change-Id: Iabdfe2bece7fafc284ddf04382f1bbcacc370cce
Signed-off-by: Reka Norman <rekanorman@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78085
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
src/soc/intel/alderlake/acpi/xhci.asl
src/soc/intel/alderlake/chip.h
src/soc/intel/alderlake/include/soc/usb.h
src/soc/intel/cannonlake/acpi/xhci.asl
src/soc/intel/cannonlake/chip.h
src/soc/intel/cannonlake/include/soc/usb.h
src/soc/intel/common/acpi/xhci_wake.asl [new file with mode: 0644]
src/soc/intel/common/block/include/intelblocks/xhci.h
src/soc/intel/skylake/acpi/xhci.asl
src/soc/intel/skylake/chip.h
src/soc/intel/skylake/include/soc/usb.h