| 1 |
|
| 2 |
|
| 3 |
#include <device/pci_type.h> |
| 4 |
#include <intelblocks/xhci.h> |
| 5 |
|
| 6 |
#define XHCI_USB2_PORT_STATUS_REG 0x480 |
| 7 |
#if CONFIG(SOC_INTEL_GEMINILAKE) |
| 8 |
#define XHCI_USB3_PORT_STATUS_REG 0x510 |
| 9 |
#define XHCI_USB2_PORT_NUM 9 |
| 10 |
#else |
| 11 |
#define XHCI_USB3_PORT_STATUS_REG 0x500 |
| 12 |
#define XHCI_USB2_PORT_NUM 8 |
| 13 |
#endif |
| 14 |
#define XHCI_USB3_PORT_NUM 7 |
| 15 |
|
| 16 |
static const struct xhci_usb_info usb_info = { |
| 17 |
.usb2_port_status_reg = XHCI_USB2_PORT_STATUS_REG, |
| 18 |
.num_usb2_ports = XHCI_USB2_PORT_NUM, |
| 19 |
.usb3_port_status_reg = XHCI_USB3_PORT_STATUS_REG, |
| 20 |
.num_usb3_ports = XHCI_USB3_PORT_NUM, |
| 21 |
}; |
| 22 |
|
| 23 |
const struct xhci_usb_info *soc_get_xhci_usb_info(pci_devfn_t xhci_dev) |
| 24 |
{ |
| 25 |
|
| 26 |
return &usb_info; |
| 27 |
} |