Skip to contentSkip to conversation

MSCC: Jaguar2 enable debug uart

PATCH New Horatiu Vultur 2 participants 2 messages Jan 29, 2019 – Feb 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MSCC: Jaguar2 enable debug uart

Enable debug uart for Jaguar2 SoC family.

---
 board/mscc/jr2/jr2.c       | 7 +++++++
 configs/mscc_jr2_defconfig | 6 ++++++
 2 files changed, 13 insertions(+)
board/mscc/jr2/jr2.c +7 -0
index eac4dca..226181f 100644
@@ -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;
configs/mscc_jr2_defconfig +6 -0
index 040e1e1..d80ca41 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 MSCC: Jaguar2 enable debug uart

Am 29.01.19 um 10:50 schrieb Horatiu Vultur:

Quoted 8 lines

Enable debug uart for Jaguar2 SoC family.

---
 board/mscc/jr2/jr2.c       | 7 +++++++
 configs/mscc_jr2_defconfig | 6 ++++++
 2 files changed, 13 insertions(+)

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel