summaryrefslogtreecommitdiff
path: root/src/soc/intel/meteorlake/bootblock/bootblock.c
diff options
context:
space:
mode:
authorRavi Sarawadi <ravishankar.sarawadi@intel.com>2022-04-10 23:31:24 -0700
committerSubrata Banik <subratabanik@google.com>2022-06-06 17:51:31 +0000
commitb8224f48feb9c2967e22993b630ad1c6a835b241 (patch)
treed0e6153962e7b574821ae15280401b41a2d0f026 /src/soc/intel/meteorlake/bootblock/bootblock.c
parent3d79f7f13ee643507d4130d2be357e1505e81f53 (diff)
soc/intel/mtl: Do initial Meteor Lake SoC commit till bootblock
Base code is based of Intel Alder Lake SOC code. List of changes: 1. Add required Meteor Lake SoC programming till bootblock 2. Include only required headers into include/soc 3. Include MTL-P related DID, BDF 4. Ref: Processor EDS documents vol1 #621483, vol2 #640858 TEST= Build 'util/abuild/abuild -p none -t google/rex -a -c max'. Signed-off-by: Ravi Sarawadi <ravishankar.sarawadi@intel.com> Change-Id: I26479fcc3a3f9c6f8ebf5f198ab0809f0b4a2cc4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62772 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/meteorlake/bootblock/bootblock.c')
-rw-r--r--src/soc/intel/meteorlake/bootblock/bootblock.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/soc/intel/meteorlake/bootblock/bootblock.c b/src/soc/intel/meteorlake/bootblock/bootblock.c
new file mode 100644
index 0000000000..74e9dca663
--- /dev/null
+++ b/src/soc/intel/meteorlake/bootblock/bootblock.c
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <bootblock_common.h>
+#include <soc/bootblock.h>
+
+asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
+{
+ /* Call lib/bootblock.c main */
+ bootblock_main_with_basetime(base_timestamp);
+}
+
+void bootblock_soc_early_init(void)
+{
+ bootblock_ioe_die_early_init();
+ bootblock_soc_die_early_init();
+}
+
+void bootblock_soc_init(void)
+{
+ report_platform_info();
+ bootblock_soc_die_init();
+}