MSCC: Jaguar2 enable debug uart
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Tue, 29 Jan 2019 09:50:16 +0000 (10:50 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 1 Feb 2019 13:08:54 +0000 (14:08 +0100)
Enable debug uart for Jaguar2 SoC family.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
board/mscc/jr2/jr2.c
configs/mscc_jr2_defconfig

index eac4dcaa10b91e8967045bf69ab505c1cb25ad86..226181f6e7568d06e5e1c1d1628ad8f93166a174 100644 (file)
@@ -64,6 +64,13 @@ static void vcoreiii_gpio_set_alternate(int gpio, int mode)
        }
 }
 
+void board_debug_uart_init(void)
+{
+       /* too early for the pinctrl driver, so configure the UART pins here */
+       vcoreiii_gpio_set_alternate(10, 1);
+       vcoreiii_gpio_set_alternate(11, 1);
+}
+
 static void do_board_detect(void)
 {
        int i;
index 040e1e14497086b98d6b51f67dab5ad3d853b417..d80ca411b95b98ff8866a1ef73f7c0c6a223d09d 100644 (file)
@@ -56,3 +56,9 @@ CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_LZMA=y
+CONFIG_DEBUG_UART_BOARD_INIT=y
+CONFIG_DEBUG_UART_BASE=0x70100000
+CONFIG_DEBUG_UART_CLOCK=250000000
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_DEBUG_UART_ANNOUNCE=y