device/xhci: Add xHCI utility to enumerate capabilities
commita5b7ddf94047aed0444b0fd44c3498a639577d58
authorRaul E Rangel <rrangel@chromium.org>
Fri, 29 May 2020 23:16:20 +0000 (29 17:16 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 10 Jun 2020 18:50:36 +0000 (10 18:50 +0000)
treea6ca098da0a5b11c4f292f455dbf3f4e3782c7a9
parent26a0c66c133aee35f559a62afb8d104915667c53
device/xhci: Add xHCI utility to enumerate capabilities

This will allow enumerating an xHCI controller to allow dynamically
generating the ACPI device nodes.

BUG=b:154756391
TEST=Boot trembyle and see capabilities printed on console
xHCI Supported Protocol:
  Major: 0x2, Minor: 0x0, Protocol: 'USB '
  Port Offset: 1, Port Count: 2
xHCI Supported Protocol:
  Major: 0x3, Minor: 0x10, Protocol: 'USB '
  Port Offset: 3, Port Count: 1

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I3065c3fffad01b5378a55cfe904f971079b13d0f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41899
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/device/Kconfig
src/device/Makefile.inc
src/device/xhci.c [new file with mode: 0644]
src/include/device/xhci.h [new file with mode: 0644]