summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/include/amdblocks
diff options
context:
space:
mode:
authorRobert Zieba <robertzieba@google.com>2022-08-11 11:33:47 -0600
committerFelix Held <felix-coreboot@felixheld.de>2023-03-09 19:36:59 +0000
commit6cf287efa3749deee51f4ad57482cfeb0cc3103a (patch)
tree16b4f7dbf64dcbea8e7c7d63194276e01e1dd8bb /src/soc/amd/common/block/include/amdblocks
parentab0e680c8e027ef76b47a87d4d9e13068b50c630 (diff)
soc/amd/common/xhci: Add support for logging XHCI wake events
AMD SoCs currently only log the GPE# when an XHCI controller wakes the system. Add code to log XHCI wake events to the elog. BRANCH=guybrush BUG=b:186792595 TEST=builds Change-Id: Ic0489e1df55c4e63cb8a306099e3f31c82eebd58 Signed-off-by: Robert Zieba <robertzieba@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67936 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/soc/amd/common/block/include/amdblocks')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/xhci.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/xhci.h b/src/soc/amd/common/block/include/amdblocks/xhci.h
new file mode 100644
index 0000000000..6d1bc260a4
--- /dev/null
+++ b/src/soc/amd/common/block/include/amdblocks/xhci.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef AMD_BLOCK_XHCI_H
+#define AMD_BLOCK_XHCI_H
+
+#include <cpu/x86/smm.h>
+#include <device/pci_type.h>
+#include <device/pci_def.h>
+#include <device/xhci.h>
+
+#include <types.h>
+
+#define XHCI_GEVENT GEVENT_31
+
+#define SOC_XHCI_DEVICES {\
+ SOC_XHCI_0,\
+ SOC_XHCI_1,\
+ SOC_XHCI_2,\
+ SOC_XHCI_3,\
+ SOC_XHCI_4,\
+ SOC_XHCI_5,\
+ SOC_XHCI_6,\
+ SOC_XHCI_7,\
+}
+
+void soc_xhci_store_resources(struct smm_pci_resource_info *slots, size_t count);
+void soc_xhci_log_wake_events(void);
+
+#endif /* AMD_BLOCK_XHCI_H */