mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
microblaze: Fix board_init calling sequence
board_init() is in final elf file but it is not called at all. Use board_init_late() instead and call gpio_init() from it. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
077fe0f5e7
commit
38c4761c23
2 changed files with 5 additions and 2 deletions
|
@ -76,7 +76,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
int gpio_init (void)
|
||||
static int gpio_init(void)
|
||||
{
|
||||
#ifdef CONFIG_XILINX_GPIO
|
||||
reset_pin = gpio_alloc(CONFIG_SYS_GPIO_0_ADDR, "reset", 1);
|
||||
|
@ -86,7 +86,9 @@ int gpio_init (void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void board_init(void)
|
||||
int board_late_init(void)
|
||||
{
|
||||
gpio_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
# define CONFIG_XILINX_GPIO
|
||||
# define CONFIG_SYS_GPIO_0_ADDR XILINX_GPIO_BASEADDR
|
||||
#endif
|
||||
#define CONFIG_BOARD_LATE_INIT
|
||||
|
||||
/* interrupt controller */
|
||||
#ifdef XILINX_INTC_BASEADDR
|
||||
|
|
Loading…
Add table
Reference in a new issue