All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] nios2: set up the debug UART early
@ 2015-12-30 12:32 Thomas Chou
  2015-12-31  1:50 ` Chin Liang See
  2016-02-06  7:04 ` Thomas Chou
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Chou @ 2015-12-30 12:32 UTC (permalink / raw)
  To: u-boot

Set up the debug UART early if enabled, so that it is ready to use.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
 arch/nios2/cpu/start.S | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S
index 54787c5..1caee0c 100644
--- a/arch/nios2/cpu/start.S
+++ b/arch/nios2/cpu/start.S
@@ -106,6 +106,13 @@ _reloc:
 	stw	r0, 4(sp)
 	mov	fp, sp
 
+#ifdef CONFIG_DEBUG_UART
+	/* Set up the debug UART */
+	movhi	r2, %hi(debug_uart_init at h)
+	ori	r2, r2, %lo(debug_uart_init at h)
+	callr	r2
+#endif
+
 	/* Allocate and zero GD, update SP */
 	mov	r4, sp
 	movhi	r2, %hi(board_init_f_mem at h)
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] nios2: set up the debug UART early
  2015-12-30 12:32 [U-Boot] [PATCH] nios2: set up the debug UART early Thomas Chou
@ 2015-12-31  1:50 ` Chin Liang See
  2016-02-06  7:04 ` Thomas Chou
  1 sibling, 0 replies; 3+ messages in thread
From: Chin Liang See @ 2015-12-31  1:50 UTC (permalink / raw)
  To: u-boot

On Wed, 2015-12-30 at 20:32 +0800, Thomas Chou wrote:
> Set up the debug UART early if enabled, so that it is ready to use.
> 
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
>  arch/nios2/cpu/start.S | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> 

Acked-by: Chin Liang See <clsee@altera.com>

Thanks
Chin Liang

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] nios2: set up the debug UART early
  2015-12-30 12:32 [U-Boot] [PATCH] nios2: set up the debug UART early Thomas Chou
  2015-12-31  1:50 ` Chin Liang See
@ 2016-02-06  7:04 ` Thomas Chou
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Chou @ 2016-02-06  7:04 UTC (permalink / raw)
  To: u-boot



On 2015?12?30? 20:32, Thomas Chou wrote:
> Set up the debug UART early if enabled, so that it is ready to use.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
>   arch/nios2/cpu/start.S | 7 +++++++
>   1 file changed, 7 insertions(+)
>

Applied to u-boot-nios.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-06  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-30 12:32 [U-Boot] [PATCH] nios2: set up the debug UART early Thomas Chou
2015-12-31  1:50 ` Chin Liang See
2016-02-06  7:04 ` Thomas Chou

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.