diff mbox series

armV7R: K3: am654: Activate early console functionality

Message ID 20200212045430.26933-1-lokeshvutla@ti.com
State Accepted
Commit 96dd223c2933a9190411f52ab0654f50feca3005
Headers show
Series armV7R: K3: am654: Activate early console functionality | expand

Commit Message

Lokesh Vutla Feb. 12, 2020, 4:54 a.m. UTC
From: Andreas Dannenberg <dannenberg at ti.com>

Activate early console functionality on AM65x devices to allow for
early diagnostic messages until the main console is ready
to get activated.

Signed-off-by: Andreas Dannenberg <dannenberg at ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
 arch/arm/mach-k3/am6_init.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Lokesh Vutla Feb. 14, 2020, 9:51 a.m. UTC | #1
On 12/02/20 10:24 AM, Lokesh Vutla wrote:
> From: Andreas Dannenberg <dannenberg at ti.com>
> 
> Activate early console functionality on AM65x devices to allow for
> early diagnostic messages until the main console is ready
> to get activated.
> 
> Signed-off-by: Andreas Dannenberg <dannenberg at ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>

Merged into u-boot-ti.

Thanks and regards,
Lokesh
diff mbox series

Patch

diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c
index 8d107b870b..63cd7e0458 100644
--- a/arch/arm/mach-k3/am6_init.c
+++ b/arch/arm/mach-k3/am6_init.c
@@ -109,6 +109,16 @@  void board_init_f(ulong dummy)
 	/* Init DM early in-order to invoke system controller */
 	spl_early_init();
 
+#ifdef CONFIG_K3_EARLY_CONS
+	/*
+	 * Allow establishing an early console as required for example when
+	 * doing a UART-based boot. Note that this console may not "survive"
+	 * through a SYSFW PM-init step and will need a re-init in some way
+	 * due to changing module clock frequencies.
+	 */
+	early_console_init();
+#endif
+
 #ifdef CONFIG_K3_LOAD_SYSFW
 	/*
 	 * Process pinctrl for the serial0 a.k.a. WKUP_UART0 module and continue