]> err.no Git - linux-2.6/commitdiff
[MIPS] Au1200: Make KGDB compile
authorSergei Shtylylov <sshtylyov@ru.mvista.com>
Thu, 26 Jan 2006 01:36:25 +0000 (04:36 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Feb 2006 13:30:23 +0000 (13:30 +0000)
AMD Au1200 SOC just doesn't have UART3, so KGDB won't even compile for it
as is, here's the fix to make KGDB use UART1.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/mach-au1x00/au1000.h

index 8e1d7ed7d8e3c3d786e8d9d427b9a8848da4d2c9..4686e17c206cc166603c73b3f8d655ab5d7fcf78 100644 (file)
@@ -1198,7 +1198,11 @@ extern au1xxx_irq_map_t au1xxx_irq_map[];
 
 /* UARTS 0-3 */
 #define UART_BASE                 UART0_ADDR
+#ifdef CONFIG_SOC_AU1200
+#define UART_DEBUG_BASE           UART1_ADDR
+#else
 #define UART_DEBUG_BASE           UART3_ADDR
+#endif
 
 #define UART_RX                0       /* Receive buffer */
 #define UART_TX                4       /* Transmit buffer */