aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/lib/fsp2/fsp_common.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-06 21:42:18 -0700
committerBin Meng <bmeng.cn@gmail.com>2019-12-15 11:44:16 +0800
commitcf87d3b5039d2e497380ccddff905cf3e58e0032 (patch)
tree09eca0761df865fe118a40f2c728847980f2e90f /arch/x86/lib/fsp2/fsp_common.c
parentf42af294cc13a4ad19eefd5801dc97bf4ee54e5c (diff)
x86: fsp: Add FSP2 base support
Add support for some important configuration options and FSP memory init. The memory init uses swizzle tables from the device tree. Support for the FSP_S binary is also included. Bootstage timing is used for both FSP_M and FSP_S and memory-mapped SPI reads. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/fsp2/fsp_common.c')
-rw-r--r--arch/x86/lib/fsp2/fsp_common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/lib/fsp2/fsp_common.c b/arch/x86/lib/fsp2/fsp_common.c
new file mode 100644
index 0000000000..f69456e43a
--- /dev/null
+++ b/arch/x86/lib/fsp2/fsp_common.c
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019 Google LLC
+ * Written by Simon Glass <sjg@chromium.org>
+ */
+
+#include <common.h>
+#include <init.h>
+
+int arch_fsp_init(void)
+{
+ return 0;
+}