Differences

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

Link to this comparison view

Next revision
Previous revision
u-boot_board_info [2019/04/14 12:23] – created rpjdayu-boot_board_info [2019/04/14 14:49] (current) – [setup_machine()] rpjday
Line 39: Line 39:
 } bd_t; } bd_t;
 </code> </code>
 +
 +===== board_f.c [init_fnc_t] =====
 +
 +==== reserve_board() ====
 +
 +<code>
 +/* (permanently) allocate a Board Info struct */
 +static int reserve_board(void)
 +{
 +        if (!gd->bd) {
 +                gd->start_addr_sp -= sizeof(bd_t);
 +                gd->bd = (bd_t *)map_sysmem(gd->start_addr_sp, sizeof(bd_t));
 +                memset(gd->bd, '\0', sizeof(bd_t));
 +                debug("Reserving %zu Bytes for Board Info at: %08lx\n",
 +                      sizeof(bd_t), gd->start_addr_sp);
 +        }
 +        return 0;
 +}
 +</code>
 +
 +==== setup_machine() ====
 +
 +Not set for Zedboard.
 +
 +<code>
 +static int setup_machine(void)
 +{
 +#ifdef CONFIG_MACH_TYPE
 +        gd->bd->bi_arch_number = CONFIG_MACH_TYPE; /* board id for Linux */
 +#endif
 +        return 0;
 +}
 +</code>
 +
 +==== dram_init_banksize() [board/xilinx/zynq/board.c] ====
 +
 +<code>
 +
 +</code>
 +
  • u-boot_board_info.1555244581.txt.gz
  • Last modified: 2019/04/14 12:23
  • by rpjday