From 4ce4afa9d99805dd296d991ffb85b3f68c347b02 Mon Sep 17 00:00:00 2001 From: "Tan, Lean Sheng" Date: Tue, 25 Aug 2020 18:07:16 -0700 Subject: soc/intel/elkhartlake/bootblock: Do initial SoC commit until bootblock Clone entirely from Jasperlake This patch is based on TGL_upstream series patches: https://review.coreboot.org/c/coreboot/+/36550 List of changes on top off initial jasperlake clone 1. Replace "Jasperlake" with "Elkhartlake" 2. Replace "jsl" with "ehl" 3. Rename structure based on Jasperlake with Elkhartlake 6. Add required headers into include/soc/ from JSL directory Elkhart Lake specific changes will follow in subsequent patches. 1. soc/intel/elkhartlake: Update Kconfig Signed-off-by: Tan, Lean Sheng Change-Id: I9f91c1efa81a358b1f59e032e209e07b62d54613 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44799 Tested-by: build bot (Jenkins) Reviewed-by: Maulik V Vaghela Reviewed-by: Werner Zeh --- src/soc/intel/elkhartlake/bootblock/cpu.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/soc/intel/elkhartlake/bootblock/cpu.c (limited to 'src/soc/intel/elkhartlake/bootblock/cpu.c') 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 +#include + +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(); +} -- cgit v1.2.3