summaryrefslogtreecommitdiff
path: root/src/soc/amd/glinda/xhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/glinda/xhci.c')
-rw-r--r--src/soc/amd/glinda/xhci.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/soc/amd/glinda/xhci.c b/src/soc/amd/glinda/xhci.c
index 74e8816e84..70a0d84864 100644
--- a/src/soc/amd/glinda/xhci.c
+++ b/src/soc/amd/glinda/xhci.c
@@ -25,7 +25,13 @@ static const struct sci_source xhci_sci_sources[] = {
.level = SMI_SCI_EDG
},
{
- .scimap = SMITYPE_XHC2_PME,
+ .scimap = SMITYPE_XHC3_PME,
+ .gpe = GEVENT_31,
+ .direction = SMI_SCI_LVL_HIGH,
+ .level = SMI_SCI_EDG
+ },
+ {
+ .scimap = SMITYPE_XHC4_PME,
.gpe = GEVENT_31,
.direction = SMI_SCI_LVL_HIGH,
.level = SMI_SCI_EDG
@@ -41,18 +47,20 @@ enum cb_err pci_xhci_get_wake_gpe(const struct device *dev, int *gpe)
return CB_ERR_ARG;
if (dev->upstream->dev->path.pci.devfn == PCIE_ABC_A_DEVFN) {
- if (dev->path.pci.devfn == XHCI0_DEVFN) {
- *gpe = xhci_sci_sources[0].gpe;
- return CB_SUCCESS;
- } else if (dev->path.pci.devfn == XHCI1_DEVFN) {
+ if (dev->path.pci.devfn == XHCI1_DEVFN) {
*gpe = xhci_sci_sources[1].gpe;
return CB_SUCCESS;
}
} else if (dev->upstream->dev->path.pci.devfn == PCIE_ABC_C_DEVFN) {
- if (dev->path.pci.devfn == XHCI2_DEVFN
- && dev->device == PCI_DID_AMD_FAM17H_MODELA0H_XHCI2) {
+ if (dev->path.pci.devfn == XHCI0_DEVFN) {
+ *gpe = xhci_sci_sources[0].gpe;
+ return CB_SUCCESS;
+ } else if (dev->path.pci.devfn == USB4_XHCI0_DEVFN) {
*gpe = xhci_sci_sources[2].gpe;
return CB_SUCCESS;
+ } else if (dev->path.pci.devfn == USB4_XHCI1_DEVFN) {
+ *gpe = xhci_sci_sources[3].gpe;
+ return CB_SUCCESS;
}
}