Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
u-boot_board.c_routines [2019/04/10 12:58] – [board_early_init_f()] rpjdayu-boot_board.c_routines [2019/12/28 09:23] (current) rpjday
Line 3: Line 3:
 This page provides examples of the sorts of routines that are frequently defined in a board's ''board.c'' file. We can break those routines up into routines invoked from: This page provides examples of the sorts of routines that are frequently defined in a board's ''board.c'' file. We can break those routines up into routines invoked from:
  
-  * ''board_f.c'' +  * ''common/board_f.c'' 
-  * ''board_r.c''+  * ''common/board_r.c''
  
-===== Arch-specific routines =====+===== board_f.c =====
  
-==== do_board_detect() ====+==== Weak functions ====
  
-==== arch_cpu_init_dm() ====+  * ''board_add_ram_info()'' 
 +  * ''dram_init_banksize()'' 
 +  * ''arch_cpu_init()'' 
 +  * ''mach_cpu_init()'' 
 +  * ''reserve_mmu()'' 
 +  * ''arch_reserve_stacks()'' 
 +  * ''reserve_arch()'' 
 +  * ''arch_cpu_init_dm()''
  
-===== board_f.c ===== +==== Kbuild-selected functions ====
- +
-==== arch_cpu_init() ====+
  
 <code> <code>
-__weak int arch_cpu_init(void) +#ifdef CONFIG_OF_CONTROL 
-{ +        fdtdec_setup, 
-        return 0; +#endif
-} +
-</code>+
  
-==== mach_cpu_init() ====+#if defined(CONFIG_BOARD_EARLY_INIT_F) 
 +        board_early_init_f, 
 +#endif
  
-<code> +... and much more ...
-__weak int mach_cpu_init(void) +
-+
-        return 0; +
-}+
 </code> </code>
- 
-==== board_early_init_f() [LOTS] ==== 
- 
-==== get_clocks() ==== 
- 
-==== timer_init() ==== 
- 
 ===== board_r.c ===== ===== board_r.c =====
- 
-==== board_init() ==== 
  • u-boot_board.c_routines.1554901129.txt.gz
  • Last modified: 2019/04/10 12:58
  • by rpjday