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 eac4dca..226181f 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 040e1e1..d80ca41 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