mirror of
https://xff.cz/git/u-boot/
synced 2025-09-27 05:21:16 +02:00
ARM: legoev3: Move UART enable to early init
This moves the UART init for LEGO MINDSTORMS EV3 to board_early_init_f(). Some console messages were not being printed because the UART was not enabled until later in the init process. Signed-off-by: David Lechner <david@lechnology.com>
This commit is contained in:
@@ -132,6 +132,11 @@ void get_board_serial(struct tag_serialnr *serialnr)
|
|||||||
|
|
||||||
int board_early_init_f(void)
|
int board_early_init_f(void)
|
||||||
{
|
{
|
||||||
|
/* enable the console UART */
|
||||||
|
writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
|
||||||
|
DAVINCI_UART_PWREMU_MGMT_UTRST),
|
||||||
|
&davinci_uart1_ctrl_regs->pwremu_mgmt);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Power on required peripherals
|
* Power on required peripherals
|
||||||
* ARM does not have access by default to PSC0 and PSC1
|
* ARM does not have access by default to PSC0 and PSC1
|
||||||
@@ -166,10 +171,5 @@ int board_init(void)
|
|||||||
if (davinci_configure_pin_mux_items(pinmuxes, ARRAY_SIZE(pinmuxes)))
|
if (davinci_configure_pin_mux_items(pinmuxes, ARRAY_SIZE(pinmuxes)))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* enable the console UART */
|
|
||||||
writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
|
|
||||||
DAVINCI_UART_PWREMU_MGMT_UTRST),
|
|
||||||
&davinci_uart1_ctrl_regs->pwremu_mgmt);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user