commented early_printk patch because of rejects.
[linux-flexiantxendom0-3.2.10.git] / arch / mips / gt64120 / momenco_ocelot / dbg_io.c
index 68dfb17..3ef3584 100644 (file)
@@ -1,6 +1,8 @@
 #include <linux/config.h>
 
-#if defined(CONFIG_REMOTE_DEBUG)
+#if defined(CONFIG_KGDB)
+
+#include <asm/serial.h> /* For the serial port location and base baud */
 
 /* --- CONFIG --- */
 
@@ -36,8 +38,8 @@ typedef unsigned int uint32;
 /* === 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 @@ int putDebugChar(uint8 byte)
 {
        if (!remoteDebugInitialized) {
                remoteDebugInitialized = 1;
-               debugInit(UART16550_BAUD_9600,
+               debugInit(UART16550_BAUD_38400,
                          UART16550_DATA_8BIT,
                          UART16550_PARITY_NONE, UART16550_STOP_1BIT);
        }