summaryrefslogtreecommitdiff
path: root/src/soc/amd/common
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/common
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/common')
-rw-r--r--src/soc/amd/common/pi/agesawrapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/amd/common/pi/agesawrapper.c b/src/soc/amd/common/pi/agesawrapper.c
index 8ad1e0e4a9..a828d24a33 100644
--- a/src/soc/amd/common/pi/agesawrapper.c
+++ b/src/soc/amd/common/pi/agesawrapper.c
@@ -10,6 +10,7 @@
#include <soc/pci_devs.h>
#include <soc/northbridge.h>
#include <soc/cpu.h>
+#include <static.h>
#include <string.h>
void __weak SetMemParams(AMD_POST_PARAMS *PostParams) {}