summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Brack <fb@ltec.ch>2022-02-21 14:26:05 +0100
committerTom Rini <trini@konsulko.com>2022-02-28 10:33:11 -0500
commit551f426011e31fad37fe66108ffdf05eb48e3176 (patch)
treeb1b797995e6cf6d6c30fc8649495d45a08e4d168
parent286f94803ee446a3ef730626f2219a0a28a82b8e (diff)
downloadu-boot-551f426011e31fad37fe66108ffdf05eb48e3176.tar.gz
arm: pdu001: Setup pinmux for console UART as early as possible
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>
-rw-r--r--board/eets/pdu001/board.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/board/eets/pdu001/board.c b/board/eets/pdu001/board.c
index 8612c09d40..2b483dab8e 100644
--- a/board/eets/pdu001/board.c
+++ b/board/eets/pdu001/board.c
@@ -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 */