Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| u-boot_board.c_routines [2019/04/10 13:00] – rpjday | u-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' | This page provides examples of the sorts of routines that are frequently defined in a board' | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | ===== Arch-specific routines | + | ===== board_f.c |
| - | ==== do_board_detect() | + | ==== Weak functions |
| - | ==== arch_cpu_init_dm() | + | * '' |
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| - | ===== board_f.c ===== | + | ==== Kbuild-selected functions |
| - | + | ||
| - | ==== arch_cpu_init() | + | |
| < | < | ||
| - | __weak int arch_cpu_init(void) | + | #ifdef CONFIG_OF_CONTROL |
| - | { | + | |
| - | | + | #endif |
| - | } | + | |
| - | </ | + | |
| - | ==== mach_cpu_init() ==== | + | #if defined(CONFIG_BOARD_EARLY_INIT_F) |
| + | board_early_init_f, | ||
| + | #endif | ||
| - | < | + | ... and much more ... |
| - | __weak int mach_cpu_init(void) | + | |
| - | { | + | |
| - | return 0; | + | |
| - | } | + | |
| </ | </ | ||
| - | |||
| - | ==== board_early_init_f() [LOTS] ==== | ||
| - | |||
| ===== board_r.c ===== | ===== board_r.c ===== | ||
| - | |||
| - | ==== board_init() ==== | ||