summaryrefslogtreecommitdiff
path: root/src/drivers/intel/fsp2_0
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/intel/fsp2_0')
-rw-r--r--src/drivers/intel/fsp2_0/include/fsp/soc_binding.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h b/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h
index 931e427188..607738d7a4 100644
--- a/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h
+++ b/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h
@@ -17,6 +17,20 @@
#include <stddef.h>
#pragma pack(push)
+
+/**
+ * These includes are required to include headers that are missing in
+ * the FSP headers. Import order matter for the correct PiHob definition
+ * to be found.
+ */
+#if CONFIG_UDK_VERSION >= CONFIG_UDK_2017_VERSION
+#include <PiPei.h>
+#include <Ppi/MpServices.h>
+#include <Uefi/UefiMultiPhase.h>
+#include <Pi/PiBootMode.h>
+#include <Pi/PiHob.h>
+#endif
+
/*
* This file is a implementation specific header. i.e. different
* FSP implementations for different chipsets.
@@ -28,10 +42,6 @@
#include <FirmwareVersionInfoHob.h>
#endif
-#if CONFIG_UDK_VERSION >= CONFIG_UDK_2017_VERSION
-#include <PiPei.h>
-#include <Ppi/MpServices.h>
-#endif
#pragma pack(pop)