aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/alderlake/bootblock/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/alderlake/bootblock/cpu.c')
-rw-r--r--src/soc/intel/alderlake/bootblock/cpu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/bootblock/cpu.c b/src/soc/intel/alderlake/bootblock/cpu.c
new file mode 100644
index 0000000000..4225358de5
--- /dev/null
+++ b/src/soc/intel/alderlake/bootblock/cpu.c
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/*
+ * This file is created based on Intel Alder Lake Processor PCH Datasheet
+ * Document number: 621483
+ * Chapter number: 7
+ */
+
+#include <intelblocks/fast_spi.h>
+#include <soc/bootblock.h>
+
+void bootblock_cpu_init(void)
+{
+ /*
+ * Alderlake platform doesn't support booting from any other media
+ * than SPI flash and on IA platform SPI is memory mapped hence
+ * enabling temporary caching of memory-mapped spi boot media.
+ */
+ fast_spi_cache_bios_region();
+}