aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/elkhartlake/bootblock/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/elkhartlake/bootblock/cpu.c')
-rw-r--r--src/soc/intel/elkhartlake/bootblock/cpu.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/soc/intel/elkhartlake/bootblock/cpu.c b/src/soc/intel/elkhartlake/bootblock/cpu.c
new file mode 100644
index 0000000000..bbce44cd60
--- /dev/null
+++ b/src/soc/intel/elkhartlake/bootblock/cpu.c
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <intelblocks/fast_spi.h>
+#include <soc/bootblock.h>
+
+void bootblock_cpu_init(void)
+{
+ /*
+ * Elkhartlake platform doesn't support booting from any other media
+ * (like eMMC on APL/GLK platform) than only booting from SPI device
+ * and on IA platform SPI is memory mapped hence enabling temporarily
+ * caching on memory-mapped spi boot media.
+ */
+ fast_spi_cache_bios_region();
+}