X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Finit.h;h=b5a167b6edb0194a08b1de235d3f970a5bb4e013;hb=d181191e1215204d825db7837ed2c64a5196a734;hp=cb92c6a4b751fe5cdb1275ded6c30c0c8bb67864;hpb=9b4a205f454dd19687aaf9a22a5bc01164182a90;p=oweals%2Fu-boot.git diff --git a/include/init.h b/include/init.h index cb92c6a4b7..b5a167b6ed 100644 --- a/include/init.h +++ b/include/init.h @@ -20,7 +20,7 @@ struct global_data; #ifdef CONFIG_EFI_STUB #define ll_boot_init() false #else -#define ll_boot_init() true +#define ll_boot_init() (!(gd->flags & GD_FLG_SKIP_LL_INIT)) #endif /* @@ -109,6 +109,8 @@ int dram_init_banksize(void); long get_ram_size(long *base, long size); phys_size_t get_effective_memsize(void); +int testdram(void); + /** * arch_reserve_stacks() - Reserve all necessary stacks * @@ -127,6 +129,18 @@ phys_size_t get_effective_memsize(void); */ int arch_reserve_stacks(void); +/** + * arch_reserve_mmu() - Reserve memory for MMU TLB table + * + * Architecture-specific routine for reserving memory for the MMU TLB table. + * This is used in generic board init sequence in common/board_f.c. + * + * If an implementation is not provided, it will just be a nop stub. + * + * Return: 0 if OK + */ +int arch_reserve_mmu(void); + /** * init_cache_f_r() - Turn on the cache in preparation for relocation * @@ -143,7 +157,6 @@ int init_cache_f_r(void); int print_cpuinfo(void); #endif int timer_init(void); -int reserve_mmu(void); int misc_init_f(void); #if defined(CONFIG_DTB_RESELECT)