summaryrefslogtreecommitdiff
path: root/src/soc/amd/cezanne
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-10-05 21:40:38 -0600
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-11-10 19:11:48 +0000
commit7b466fb60b7d3f7793baf419b8b67b4b324702f4 (patch)
tree908f4cdfee0fbb822ee7d8c8cc1a7db29686ef32 /src/soc/amd/cezanne
parent05a13e7ed9b97b23af69202bedf2ea42b57e633f (diff)
soc/*: Explicitly include static.h for DEV_PTR
As per commit 05a13e7ed9b9 ("sconfig: Move (WEAK_)DEV_PTR from device.h to static.h"), sources that require access to devicetree static devices should directly include static.h. This allows static.h to be removed from device.h, eliminating unnecessary dependencies on the devicetree for objects that only need the device types and function declarations. The DEV_PTR macro resolves to names declared in static_devices.h, which is then included in static.h, so include the header whenever the macro is used. Change-Id: Ie281e9a9c015b19bfc96b83021a6e3afd98abcc3 Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84677 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Jayvik Desai <jayvik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/cezanne')
-rw-r--r--src/soc/amd/cezanne/include/soc/xhci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/cezanne/include/soc/xhci.h b/src/soc/amd/cezanne/include/soc/xhci.h
index c590195731..a7fe53b548 100644
--- a/src/soc/amd/cezanne/include/soc/xhci.h
+++ b/src/soc/amd/cezanne/include/soc/xhci.h
@@ -3,7 +3,7 @@
#ifndef AMD_CEZANNE_XHCI_H
#define AMD_CEZANNE_XHCI_H
-#include <device/device.h>
+#include <static.h>
#define SOC_XHCI_0 DEV_PTR(xhci_0)
#define SOC_XHCI_1 DEV_PTR(xhci_1)