feat(msm8916): allow selecting which UART to use
At the moment the msm8916 platform port always uses UART number 2 for
debug output. In some situations it is necessary to change this, either
because only the other UART is exposed on the board or for runtime
debugging, to avoid conflicting with the normal world.
Make the UART to use configurable using QTI_UART_NUM on the make
command line and also add QTI_RUNTIME_UART as an option to keep using
the UART after early boot. The latter is disabled by default since it
requires reserving the UART and related clocks inside the normal world.
Change-Id: I14725f954bbcecebcf317e8601922a3d00f2ec28
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
diff --git a/plat/qti/msm8916/aarch32/msm8916_helpers.S b/plat/qti/msm8916/aarch32/msm8916_helpers.S
index 3664ff1..ea39663 100644
--- a/plat/qti/msm8916/aarch32/msm8916_helpers.S
+++ b/plat/qti/msm8916/aarch32/msm8916_helpers.S
@@ -30,7 +30,7 @@
* -------------------------------------------------
*/
func plat_crash_console_init
- ldr r1, =BLSP_UART2_BASE
+ ldr r1, =BLSP_UART_BASE
mov r0, #1
b console_uartdm_core_init
endfunc plat_crash_console_init
@@ -44,7 +44,7 @@
* -------------------------------------------------
*/
func plat_crash_console_putc
- ldr r1, =BLSP_UART2_BASE
+ ldr r1, =BLSP_UART_BASE
b console_uartdm_core_putc
endfunc plat_crash_console_putc
@@ -56,7 +56,7 @@
* -------------------------------------------------
*/
func plat_crash_console_flush
- ldr r1, =BLSP_UART2_BASE
+ ldr r1, =BLSP_UART_BASE
b console_uartdm_core_flush
endfunc plat_crash_console_flush