arm/km: add second serial interface for kirkwood
authorHolger Brunck <holger.brunck@keymile.com>
Tue, 31 May 2011 02:12:49 +0000 (02:12 +0000)
committerU-Boot <uboot@lilith.(none)>
Tue, 31 May 2011 17:45:54 +0000 (19:45 +0200)
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Acked-by: Heiko Schocher <hs@denx.de>
cc: Wolfgang Denk <wd@denx.de>
cc: Detlev Zundel <dzu@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>

include/configs/km/km_arm.h

index 9c704fc5edcea32ac7ba2eedec05ef50ca0af294..20ee6eab85694e3ab19fd75c95134a03c047c6e9 100644 (file)
@@ -91,6 +91,7 @@
 #define CONFIG_SYS_NS16550_REG_SIZE    (-4)
 #define CONFIG_SYS_NS16550_CLK         CONFIG_SYS_TCLK
 #define CONFIG_SYS_NS16550_COM1                KW_UART0_BASE
+#define CONFIG_SYS_NS16550_COM2                KW_UART1_BASE
 
 /*
  * Serial Port configuration
 
 #define BOOTFLASH_START                0x0
 
+/* Kirkwood has two serial IF */
+#if (CONFIG_CONS_INDEX == 2)
+#define CONFIG_KM_CONSOLE_TTY  "ttyS1"
+#else
 #define CONFIG_KM_CONSOLE_TTY  "ttyS0"
+#endif
 
 /*
  * Other required minimal configurations