public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] IXP425: Changing serial port initialization sequence Part 1/1
@ 2008-12-04 21:09 Stefan Althoefer
  2008-12-04 21:09 ` [U-Boot] [PATCH] IXP425: Improving print_cpuinfo code " Stefan Althoefer
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Althoefer @ 2008-12-04 21:09 UTC (permalink / raw)
  To: u-boot

[PATCH] IXP425: Changing serial port initialization sequence

On my IXP425 board (Janz emPC-A400), the first few characters of
the u-boot startup message were missing.

I fixed it by enabling the UART before all other initialization.

I also enabled (and flushed) the FIFO of the UART.


The patch is against "latest" u-boot git-repository

Please (still) be patient if style of submission or patches are
offending.

Signed-off-by: Stefan Althoefer <stefan.althoefer@web.de>
----

diff -uprN u-boot-orig//cpu/ixp/serial.c u-boot/cpu/ixp/serial.c
--- u-boot-orig//cpu/ixp/serial.c	2008-12-02 17:25:31.000000000 +0100
+++ u-boot/cpu/ixp/serial.c	2008-12-02 22:46:27.000000000 +0100
@@ -50,8 +50,10 @@ void serial_setbrg (void)
 	else
 		hang ();
 
-	IER(uart) = 0;					/* Disable for now */
-	FCR(uart) = 0;					/* No fifos enabled */
+	IER(uart) = IER_UUE;
+
+	/* Enable an clear FIFOs */
+	FCR(uart) = FCR_RESETTF | FCR_RESETRF | FCR_TRFIFOE;
 
 	/* set baud rate */
 	LCR(uart) = LCR_WLS0 | LCR_WLS1 | LCR_DLAB;
@@ -63,7 +65,6 @@ void serial_setbrg (void)
 #else
 	MCR(uart) = 0;					/* set RTS inactive */
 #endif
-	IER(uart) = IER_UUE;
 }
 
 /*

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

end of thread, other threads:[~2008-12-17 20:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 21:09 [U-Boot] [PATCH] IXP425: Changing serial port initialization sequence Part 1/1 Stefan Althoefer
2008-12-04 21:09 ` [U-Boot] [PATCH] IXP425: Improving print_cpuinfo code " Stefan Althoefer
2008-12-04 21:08   ` [U-Boot] [PATCH] ARM: add IDE init to lib_arm/board.c " Stefan Althoefer
2008-12-16 21:58     ` Jean-Christophe PLAGNIOL-VILLARD
2008-12-16 23:19       ` Stefan Althoefer
2008-12-17 12:45         ` michael
2008-12-17 13:10           ` michael
2008-12-17 14:35             ` Jean-Christophe PLAGNIOL-VILLARD
2008-12-17 20:47               ` Stefan Althoefer
2008-12-17  7:56       ` michael
2008-12-16 21:54   ` [U-Boot] [PATCH] IXP425: Improving print_cpuinfo code " Jean-Christophe PLAGNIOL-VILLARD
2008-12-16 22:28     ` Stefan Althoefer
2008-12-16 23:18       ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox