Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| u-boot_board_info [2019/04/14 12:23] – created rpjday | u-boot_board_info [2019/04/14 14:49] (current) – [setup_machine()] rpjday | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| } bd_t; | } bd_t; | ||
| </ | </ | ||
| + | |||
| + | ===== board_f.c [init_fnc_t] ===== | ||
| + | |||
| + | ==== reserve_board() ==== | ||
| + | |||
| + | < | ||
| + | /* (permanently) allocate a Board Info struct */ | ||
| + | static int reserve_board(void) | ||
| + | { | ||
| + | if (!gd-> | ||
| + | gd-> | ||
| + | gd->bd = (bd_t *)map_sysmem(gd-> | ||
| + | memset(gd-> | ||
| + | debug(" | ||
| + | sizeof(bd_t), | ||
| + | } | ||
| + | return 0; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== setup_machine() ==== | ||
| + | |||
| + | Not set for Zedboard. | ||
| + | |||
| + | < | ||
| + | static int setup_machine(void) | ||
| + | { | ||
| + | #ifdef CONFIG_MACH_TYPE | ||
| + | gd-> | ||
| + | #endif | ||
| + | return 0; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== dram_init_banksize() [board/ | ||
| + | |||
| + | < | ||
| + | |||
| + | </ | ||
| + | |||