aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/tigerlake/bootblock/cpu.c
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2019-11-01 18:12:58 +0530
committerSubrata Banik <subrata.banik@intel.com>2019-11-09 03:26:10 +0000
commit930c31c63ab2e2a2654090f4968217f2cd3125f3 (patch)
treedf1949d80ea7dcbc5a3a71256d5cd57f6b384908 /src/soc/intel/tigerlake/bootblock/cpu.c
parentf307ffbe47f014bbea83a1da044e95210d66f56f (diff)
soc/intel/tigerlake/bootblock: Do initial SoC commit till bootblock
Clone entirely from Icelake List of changes on top off initial icelake clone 1. Replace "Icelake" with "Tigerlake" 2. Replace "icl" with "tgl" 3. Replace "icp" with "tgp" 4. Rename structure based on Icelake with Tigerlake 5. Add CPU/PCH/SA EDS document number and chapter number 6. Add required headers into include/soc/ from ICL directory Tiger Lake specific changes will follow in subsequent patches. 1. Add Tigerlake specific device IDs (CPU/PCH/SA) Change-Id: Id7a05f4b183028550d805f02a8078ab69862a62e Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36550 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
Diffstat (limited to 'src/soc/intel/tigerlake/bootblock/cpu.c')
-rw-r--r--src/soc/intel/tigerlake/bootblock/cpu.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/soc/intel/tigerlake/bootblock/cpu.c b/src/soc/intel/tigerlake/bootblock/cpu.c
new file mode 100644
index 0000000000..1bae4fa804
--- /dev/null
+++ b/src/soc/intel/tigerlake/bootblock/cpu.c
@@ -0,0 +1,37 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2019 Intel Corp.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+/*
+ * This file is created based on Intel Tiger Lake Processor PCH Datasheet
+ * Document number: 575857
+ * Chapter number: 6
+ */
+
+#include <intelblocks/fast_spi.h>
+#include <soc/bootblock.h>
+
+void bootblock_cpu_init(void)
+{
+ /*
+ * Tigerlake 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
+ * cacheing on memory-mapped spi boot media.
+ *
+ * This assumption will not hold good for APL/GLK platform where boot
+ * from eMMC is also possible options.
+ */
+ fast_spi_cache_bios_region();
+}