diff options
author | Nicholas Chin <nic.c3.14@gmail.com> | 2024-10-05 21:40:38 -0600 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2024-11-10 19:11:48 +0000 |
commit | 7b466fb60b7d3f7793baf419b8b67b4b324702f4 (patch) | |
tree | 908f4cdfee0fbb822ee7d8c8cc1a7db29686ef32 /src/soc/amd/phoenix | |
parent | 05a13e7ed9b97b23af69202bedf2ea42b57e633f (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/phoenix')
-rw-r--r-- | src/soc/amd/phoenix/include/soc/xhci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/phoenix/include/soc/xhci.h b/src/soc/amd/phoenix/include/soc/xhci.h index 5b7d6eb204..72e03cc7c4 100644 --- a/src/soc/amd/phoenix/include/soc/xhci.h +++ b/src/soc/amd/phoenix/include/soc/xhci.h @@ -3,7 +3,7 @@ #ifndef AMD_PHOENIX_XHCI_H #define AMD_PHOENIX_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) |