Commit ce6ee933 authored by Soby Mathew's avatar Soby Mathew
Browse files

Use the BL3-1 runtime console as the crash console.

This patch reassigns the crash console on Juno and FVP to use the runtime
BL3-1 console. The crash console is changed to SoC UART0 (UART2) from the
previous FPGA UART0 (UART0) on Juno. In FVP, it is changed from UART0 to
UART1.

Fixes ARM-software/tf-issues#256

Change-Id: I7df54f86ca00ec2652c27261dd66a94c12610816
parent d07baec4
...@@ -199,7 +199,7 @@ func platform_is_primary_cpu ...@@ -199,7 +199,7 @@ func platform_is_primary_cpu
ret ret
/* Define a crash console for the plaform */ /* Define a crash console for the plaform */
#define FVP_CRASH_CONSOLE_BASE PL011_UART0_BASE #define FVP_CRASH_CONSOLE_BASE PL011_UART1_BASE
/* --------------------------------------------- /* ---------------------------------------------
* int plat_crash_console_init(void) * int plat_crash_console_init(void)
...@@ -210,7 +210,7 @@ func platform_is_primary_cpu ...@@ -210,7 +210,7 @@ func platform_is_primary_cpu
*/ */
func plat_crash_console_init func plat_crash_console_init
mov_imm x0, FVP_CRASH_CONSOLE_BASE mov_imm x0, FVP_CRASH_CONSOLE_BASE
mov_imm x1, PL011_UART0_CLK_IN_HZ mov_imm x1, PL011_UART1_CLK_IN_HZ
mov_imm x2, PL011_BAUDRATE mov_imm x2, PL011_BAUDRATE
b console_core_init b console_core_init
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
.globl platform_mem_init .globl platform_mem_init
/* Define a crash console for the plaform */ /* Define a crash console for the plaform */
#define JUNO_CRASH_CONSOLE_BASE PL011_UART0_BASE #define JUNO_CRASH_CONSOLE_BASE PL011_UART3_BASE
/* --------------------------------------------- /* ---------------------------------------------
* int plat_crash_console_init(void) * int plat_crash_console_init(void)
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
*/ */
func plat_crash_console_init func plat_crash_console_init
mov_imm x0, JUNO_CRASH_CONSOLE_BASE mov_imm x0, JUNO_CRASH_CONSOLE_BASE
mov_imm x1, PL011_UART0_CLK_IN_HZ mov_imm x1, PL011_UART3_CLK_IN_HZ
mov_imm x2, PL011_BAUDRATE mov_imm x2, PL011_BAUDRATE
b console_core_init b console_core_init
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment