mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
Define board_quiesce_devices() in a shared location
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>
This commit is contained in:
committed by
Alexander Graf
parent
bb223b7f20
commit
329da4850c
@@ -37,7 +37,6 @@ int arch_early_init_r(void);
|
|||||||
|
|
||||||
/* board/.../... */
|
/* board/.../... */
|
||||||
int board_init(void);
|
int board_init(void);
|
||||||
void board_quiesce_devices(void);
|
|
||||||
|
|
||||||
/* cpu/.../interrupt.c */
|
/* cpu/.../interrupt.c */
|
||||||
int arch_interrupt_init (void);
|
int arch_interrupt_init (void);
|
||||||
|
@@ -84,7 +84,6 @@ static inline __attribute__((no_instrument_function)) uint64_t rdtsc(void)
|
|||||||
/* board/... */
|
/* board/... */
|
||||||
void timer_set_tsc_base(uint64_t new_base);
|
void timer_set_tsc_base(uint64_t new_base);
|
||||||
uint64_t timer_get_tsc(void);
|
uint64_t timer_get_tsc(void);
|
||||||
void board_quiesce_devices(void);
|
|
||||||
|
|
||||||
void quick_ram_check(void);
|
void quick_ram_check(void);
|
||||||
|
|
||||||
|
@@ -27,10 +27,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
|
|
||||||
#define COMMAND_LINE_OFFSET 0x9000
|
#define COMMAND_LINE_OFFSET 0x9000
|
||||||
|
|
||||||
__weak void board_quiesce_devices(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void bootm_announce_and_cleanup(void)
|
void bootm_announce_and_cleanup(void)
|
||||||
{
|
{
|
||||||
printf("\nStarting kernel ...\n\n");
|
printf("\nStarting kernel ...\n\n");
|
||||||
|
@@ -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,
|
char * const argv[], bootm_headers_t *images,
|
||||||
ulong *os_data, ulong *os_len);
|
ulong *os_data, ulong *os_len);
|
||||||
|
|
||||||
|
__weak void board_quiesce_devices(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_LMB
|
#ifdef CONFIG_LMB
|
||||||
static void boot_start_lmb(bootm_headers_t *images)
|
static void boot_start_lmb(bootm_headers_t *images)
|
||||||
{
|
{
|
||||||
|
@@ -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,
|
void *load_buf, void *image_buf, ulong image_len,
|
||||||
uint unc_len, ulong *load_end);
|
uint unc_len, ulong *load_end);
|
||||||
|
|
||||||
|
void board_quiesce_devices(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user