armv8: fsl-layerscape: spl: add debug UART support
authorMichael Walle <michael@walle.cc>
Fri, 26 Mar 2021 18:40:55 +0000 (19:40 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 15 Apr 2021 08:52:22 +0000 (14:22 +0530)
commit019438e4fd6c63dc9c093a812faa98dcdfd7f970
tree919974921e9b52548779b8460695bd34fa6b61b4
parent8ff123a685d203d4da1325a6aeeb8e04262d19ac
armv8: fsl-layerscape: spl: add debug UART support

To use the debug UART we have to call debug_uart_init() in the SPL. Do
so as soon as possible.

As an example, here is how you can use it on a LS1028A SoC:
CONFIG_DEBUG_UART=y
CONFIG_DEBUG_UART_BASE=0x21c0500
CONFIG_DEBUG_UART_CLOCK=200000000

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/spl.c