patch-2.4.19 linux-2.4.19/arch/mips/gt64120/momenco_ocelot/dbg_io.c

Next file: linux-2.4.19/arch/mips/gt64120/momenco_ocelot/irq.c
Previous file: linux-2.4.19/arch/mips/galileo-boards/generic/reset.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips/gt64120/momenco_ocelot/dbg_io.c linux-2.4.19/arch/mips/gt64120/momenco_ocelot/dbg_io.c
@@ -2,6 +2,8 @@
 
 #if defined(CONFIG_REMOTE_DEBUG)
 
+#include <asm/serial.h> /* For the serial port location and base baud */
+
 /* --- CONFIG --- */
 
 typedef unsigned char uint8;
@@ -36,8 +38,8 @@
 /* === CONFIG === */
 
 /* [jsun] we use the second serial port for kdb */
-#define         BASE                    0xbd000020
-#define         MAX_BAUD                115200
+#define         BASE                    OCELOT_SERIAL1_BASE
+#define         MAX_BAUD                OCELOT_BASE_BAUD
 
 /* === END OF CONFIG === */
 
@@ -111,7 +113,7 @@
 {
 	if (!remoteDebugInitialized) {
 		remoteDebugInitialized = 1;
-		debugInit(UART16550_BAUD_9600,
+		debugInit(UART16550_BAUD_38400,
 			  UART16550_DATA_8BIT,
 			  UART16550_PARITY_NONE, UART16550_STOP_1BIT);
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)