All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] MSCC: Jaguar2 enable debug uart
@ 2019-01-29  9:50 Horatiu Vultur
  2019-02-01 13:10 ` Daniel Schwierzeck
  0 siblings, 1 reply; 2+ messages in thread
From: Horatiu Vultur @ 2019-01-29  9:50 UTC (permalink / raw)
  To: u-boot

Enable debug uart for Jaguar2 SoC family.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 board/mscc/jr2/jr2.c       | 7 +++++++
 configs/mscc_jr2_defconfig | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c
index eac4dca..226181f 100644
--- a/board/mscc/jr2/jr2.c
+++ b/board/mscc/jr2/jr2.c
@@ -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;
diff --git a/configs/mscc_jr2_defconfig b/configs/mscc_jr2_defconfig
index 040e1e1..d80ca41 100644
--- a/configs/mscc_jr2_defconfig
+++ b/configs/mscc_jr2_defconfig
@@ -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
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] MSCC: Jaguar2 enable debug uart
  2019-01-29  9:50 [U-Boot] [PATCH] MSCC: Jaguar2 enable debug uart Horatiu Vultur
@ 2019-02-01 13:10 ` Daniel Schwierzeck
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Schwierzeck @ 2019-02-01 13:10 UTC (permalink / raw)
  To: u-boot



Am 29.01.19 um 10:50 schrieb Horatiu Vultur:
> Enable debug uart for Jaguar2 SoC family.
> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> ---
>  board/mscc/jr2/jr2.c       | 7 +++++++
>  configs/mscc_jr2_defconfig | 6 ++++++
>  2 files changed, 13 insertions(+)
> 

applied to u-boot-mips, thanks.

-- 
- Daniel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-01 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-29  9:50 [U-Boot] [PATCH] MSCC: Jaguar2 enable debug uart Horatiu Vultur
2019-02-01 13:10 ` Daniel Schwierzeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.