aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-21 21:16:59 -0600
committerTom Rini <trini@konsulko.com>2023-08-31 13:16:54 -0400
commit13a7db9ab1791736c69ce49be85db5f4c32dc581 (patch)
treea64403053be7cc964b8a598ccec33b9cf39632d9 /arch/x86/lib
parent12be60daab224f2cbcb7c6584ab87f0f7caba83c (diff)
downloadu-boot-13a7db9ab1791736c69ce49be85db5f4c32dc581.zip
u-boot-13a7db9ab1791736c69ce49be85db5f4c32dc581.tar.gz
u-boot-13a7db9ab1791736c69ce49be85db5f4c32dc581.tar.bz2
x86: Convert arch_fsp_init() to use events
Convert this to use events instead of calling a function directly in the init sequence. Rename it to arch_fsp_init_f() to distinguish it from the one that happens after relocation. For FSPv2 nothing needs to be done here, so drop the empty function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/fsp1/fsp_common.c1
-rw-r--r--arch/x86/lib/fsp2/fsp_common.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/lib/fsp1/fsp_common.c b/arch/x86/lib/fsp1/fsp_common.c
index 2092617..df18f47 100644
--- a/arch/x86/lib/fsp1/fsp_common.c
+++ b/arch/x86/lib/fsp1/fsp_common.c
@@ -101,3 +101,4 @@ int arch_fsp_init(void)
return 0;
}
+EVENT_SPY_SIMPLE(EVT_FSP_INIT_F, arch_fsp_init);
diff --git a/arch/x86/lib/fsp2/fsp_common.c b/arch/x86/lib/fsp2/fsp_common.c
index 20c3f64..d802a86 100644
--- a/arch/x86/lib/fsp2/fsp_common.c
+++ b/arch/x86/lib/fsp2/fsp_common.c
@@ -8,11 +8,6 @@
#include <init.h>
#include <asm/fsp/fsp_support.h>
-int arch_fsp_init(void)
-{
- return 0;
-}
-
void board_final_cleanup(void)
{
u32 status;