Skip to contentSkip to conversation

Make KGDB compile for AMD Au1200

PATCH New Sergei Shtylylov 1 participant 1 message Jan 6, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make KGDB compile for AMD Au1200

Hello.

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. Note that I haven't really tested KGDB itself...

WBR, Sergei

include/asm-mips/mach-au1x00/au1000.h +4 -0
index 8e1d7ed..4686e17 100644
@@ -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 */