diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2019-01-29 12:50:16 +0300 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2019-02-01 16:08:54 +0300 |
commit | 45988b123cf40bb651d7c48e913b010a8e255643 (patch) | |
tree | 09f419204533d4439d9a12d9227037652a4c743b | |
parent | ab0ec15f77b5692c06fac024f34a90ab4752b41a (diff) | |
download | u-boot-45988b123cf40bb651d7c48e913b010a8e255643.tar.xz |
MSCC: Jaguar2 enable debug uart
Enable debug uart for Jaguar2 SoC family.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
-rw-r--r-- | board/mscc/jr2/jr2.c | 7 | ||||
-rw-r--r-- | configs/mscc_jr2_defconfig | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c index eac4dcaa10..226181f6e7 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 040e1e1449..d80ca411b9 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 |