board_f: x86: Rename x86_fsp_init() to arch_fsp_init()
authorSimon Glass <sjg@chromium.org>
Tue, 28 Mar 2017 16:27:18 +0000 (10:27 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 5 Apr 2017 17:52:36 +0000 (13:52 -0400)
While x86 is the only user and this could in principle be moved to
arch_cpu_init() there is some justification for this being a separate
call. It provides a way to handle init which is not CPU-specific, but
must happen before the CPU can be set up.

Rename the function to be more generic.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/x86/include/asm/u-boot-x86.h
arch/x86/lib/fsp/fsp_common.c
common/board_f.c
include/common.h

index 4f901f9392c06844644bfb257047b9b18b802014..cc7fc7370ef9bec424e3fef0af758c2023324a00 100644 (file)
@@ -55,9 +55,6 @@ u32 isa_map_rom(u32 bus_addr, int size);
 /* arch/x86/lib/... */
 int video_bios_init(void);
 
-/* arch/x86/lib/fsp/... */
-int x86_fsp_init(void);
-
 void   board_init_f_r_trampoline(ulong) __attribute__ ((noreturn));
 void   board_init_f_r(void) __attribute__ ((noreturn));
 
index 8479af1d7e40731ecbff4c31bf8e60fde3277b8c..cebf85ee5b67e2bb5a9a58f4b86ba51c4e50532b 100644 (file)
@@ -70,7 +70,7 @@ static __maybe_unused void *fsp_prepare_mrc_cache(void)
        return cache->data;
 }
 
-int x86_fsp_init(void)
+int arch_fsp_init(void)
 {
        void *nvs;
 
index 0b2a325cef543c369e0ec9ae4eeae81e50ce6b08..b8c0514b0deaa41e547722ae85a9f59e62834ed1 100644 (file)
@@ -817,8 +817,8 @@ static const init_fnc_t init_sequence_f[] = {
 #endif
        initf_malloc,
        initf_console_record,
-#if defined(CONFIG_X86) && defined(CONFIG_HAVE_FSP)
-       x86_fsp_init,
+#if defined(CONFIG_HAVE_FSP)
+       arch_fsp_init,
 #endif
        arch_cpu_init,          /* basic arch cpu dependent setup */
        mach_cpu_init,          /* SoC/machine dependent CPU setup */
index 8bd4087babf81b6eb6f908f037b36b2091e2e580..5f5c0f46e04de594fa4ae0acf1570e21b747237f 100644 (file)
@@ -285,6 +285,15 @@ int print_cpuinfo(void);
 int update_flash_size(int flash_size);
 int arch_early_init_r(void);
 
+/**
+ * arch_fsp_init() - perform firmware support package init
+ *
+ * Where U-Boot relies on binary blobs to handle part of the system init, this
+ * function can be used to set up the blobs. This is used on some Intel
+ * platforms.
+ */
+int arch_fsp_init(void);
+
 /**
  * arch_cpu_init_dm() - init CPU after driver model is available
  *