]> git.sur5r.net Git - u-boot/commitdiff
Define board_quiesce_devices() in a shared location
authorSimon Glass <sjg@chromium.org>
Wed, 16 May 2018 15:42:25 +0000 (09:42 -0600)
committerAlexander Graf <agraf@suse.de>
Sun, 3 Jun 2018 13:27:21 +0000 (15:27 +0200)
This undocumented function relies on arch-specific code to declare a nop
weak version. Add the weak function in common code instead to avoid having
to duplicate the same function in each arch.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/include/asm/u-boot-arm.h
arch/x86/include/asm/u-boot-x86.h
arch/x86/lib/bootm.c
common/bootm.c
include/bootm.h

index 01c3ba87c3feb2258a69f4c317314f0d68f7036e..cc828c45045c369919b26ebe883e47bca6d81a3a 100644 (file)
@@ -37,7 +37,6 @@ int   arch_early_init_r(void);
 
 /* board/.../... */
 int    board_init(void);
-void   board_quiesce_devices(void);
 
 /* cpu/.../interrupt.c */
 int    arch_interrupt_init     (void);
index 9be45846a535bdb881b6b16306d43a17d795e309..2340ef83323d11a8fd4f7b6dab159acb10078915 100644 (file)
@@ -84,7 +84,6 @@ static inline __attribute__((no_instrument_function)) uint64_t rdtsc(void)
 /* board/... */
 void timer_set_tsc_base(uint64_t new_base);
 uint64_t timer_get_tsc(void);
-void board_quiesce_devices(void);
 
 void quick_ram_check(void);
 
index 533ba075bb1c79c8ce899a5b2c5dfe1e8d54a858..54c22fe6de3f50414446514d06bcda0412e5cfba 100644 (file)
@@ -27,10 +27,6 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #define COMMAND_LINE_OFFSET 0x9000
 
-__weak void board_quiesce_devices(void)
-{
-}
-
 void bootm_announce_and_cleanup(void)
 {
        printf("\nStarting kernel ...\n\n");
index a0ffc1cd6790b0c6f36bfb7b52f5f291807be899..e789f6818aa30d043fea4526bef9806b535bf679 100644 (file)
@@ -46,6 +46,10 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
                                   char * const argv[], bootm_headers_t *images,
                                   ulong *os_data, ulong *os_len);
 
+__weak void board_quiesce_devices(void)
+{
+}
+
 #ifdef CONFIG_LMB
 static void boot_start_lmb(bootm_headers_t *images)
 {
index 9e42e179878bbd001b1de77d691c5a085afa6c4f..9f7956d2e35407622803fda7f8d5387bcf719ab0 100644 (file)
@@ -72,4 +72,6 @@ int bootm_decomp_image(int comp, ulong load, ulong image_start, int type,
                       void *load_buf, void *image_buf, ulong image_len,
                       uint unc_len, ulong *load_end);
 
+void board_quiesce_devices(void);
+
 #endif