Skip to content

Commit

Permalink
arm: pdu001: Setup pinmux for console UART as early as possible
Browse files Browse the repository at this point in the history
To make sure we get a working console as soon as possible in the SPL the
UART pins require to be configured earlier. This is especially
true for the pins of UART3, since the PDU001 board uses this UART for
the console by default.

Signed-off-by: Felix Brack <fb@ltec.ch>
  • Loading branch information
fxrb authored and trini committed Feb 28, 2022
1 parent 286f948 commit 551f426
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions board/eets/pdu001/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,36 @@ const struct dpll_params *get_dpll_ddr_params(void)
return &dpll_ddr;
}

void set_uart_mux_conf(void)
{
switch (CONFIG_CONS_INDEX) {
case 1: {
enable_uart0_pin_mux();
break;
}
case 2: {
enable_uart1_pin_mux();
break;
}
case 3: {
enable_uart2_pin_mux();
break;
}
case 4: {
enable_uart3_pin_mux();
break;
}
case 5: {
enable_uart4_pin_mux();
break;
}
case 6: {
enable_uart5_pin_mux();
break;
}
}
}

void set_mux_conf_regs(void)
{
/* done first by the ROM and afterwards by the pin controller driver */
Expand Down

0 comments on commit 551f426

Please sign in to comment.