2 * (C) Copyright 2000-2009
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * Copy the startup prototype, previously defined in common.h
6 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
8 * SPDX-License-Identifier: GPL-2.0+
14 #ifndef __ASSEMBLY__ /* put C only stuff in this section */
20 /* common/board_f.c */
21 void board_init_f(ulong dummy);
24 * arch_cpu_init() - basic cpu-dependent setup for an architecture
26 * This is called after early malloc is available. It should handle any
27 * CPU- or SoC- specific init needed to continue the init sequence. See
28 * board_f.c for where it is called. If this is not provided, a default
29 * version (which does nothing) will be used.
31 * @return: 0 on success, otherwise error
33 int arch_cpu_init(void);
36 * arch_cpu_init_dm() - init CPU after driver model is available
38 * This is called immediately after driver model is available before
39 * relocation. This is similar to arch_cpu_init() but is able to reference
42 * @return 0 if OK, -ve on error
44 int arch_cpu_init_dm(void);
47 * mach_cpu_init() - SoC/machine dependent CPU setup
49 * This is called after arch_cpu_init(). It should handle any
50 * SoC or machine specific init needed to continue the init sequence. See
51 * board_f.c for where it is called. If this is not provided, a default
52 * version (which does nothing) will be used.
54 * @return: 0 on success, otherwise error
56 int mach_cpu_init(void);
59 * arch_fsp_init() - perform firmware support package init
61 * Where U-Boot relies on binary blobs to handle part of the system init, this
62 * function can be used to set up the blobs. This is used on some Intel
65 int arch_fsp_init(void);
70 * dram_init_banksize() - Set up DRAM bank sizes
72 * This can be implemented by boards to set up the DRAM bank information in
73 * gd->bd->bi_dram(). It is called just before relocation, after dram_init()
76 * If this is not provided, a default implementation will try to set up a
77 * single bank. It will do this if CONFIG_NR_DRAM_BANKS and
78 * CONFIG_SYS_SDRAM_BASE are set. The bank will have a start address of
79 * CONFIG_SYS_SDRAM_BASE and the size will be determined by a call to
80 * get_effective_memsize().
82 * @return 0 if OK, -ve on error
84 int dram_init_banksize(void);
87 * Reserve all necessary stacks
89 * This is used in generic board init sequence in common/board_f.c. Each
90 * architecture could provide this function to tailor the required stacks.
92 * On entry gd->start_addr_sp is pointing to the suggested top of the stack.
93 * The callee ensures gd->start_add_sp is 16-byte aligned, so architectures
94 * require only this can leave it untouched.
96 * On exit gd->start_addr_sp and gd->irq_sp should be set to the respective
97 * positions of the stack. The stack pointer(s) will be set to this later.
98 * gd->irq_sp is only required, if the architecture needs it.
100 * @return 0 if no error
102 int arch_reserve_stacks(void);
104 int print_cpuinfo(void);
105 int timer_init(void);
106 int reserve_mmu(void);
107 int misc_init_f(void);
108 #if defined(CONFIG_DTB_RESELECT)
109 int embedded_dtb_select(void);
112 /* common/board_r.c */
114 #endif /* __ASSEMBLY__ */
115 /* Put only stuff here that the assembler can digest */
117 #endif /* __INIT_H_ */