summary refs log tree commit diff
path: root/arch/mips/alchemy/devboards/platform.c
diff options
context:
space:
mode:
authorManuel Lauss <manuel.lauss@gmail.com>2012-09-13 17:44:39 +0200
committerRalf Baechle <ralf@linux-mips.org>2012-10-11 11:11:20 +0200
commitbd8510df881f63a9e7768824cf0e33c4702dcde1 (patch)
tree00264a638b54403bc3693637c848f1bdee144c05 /arch/mips/alchemy/devboards/platform.c
parent748e787eb6de610c4427594923ef8ca1f5431b74 (diff)
downloadlinux-bd8510df881f63a9e7768824cf0e33c4702dcde1.tar.gz
MIPS: Alchemy: Single kernel for DB1200/1300/1550
Combine support for the DB1200/PB1200, DB1300 and DB1550 boards into
a single kernel image.

defconfig-generated image verified on DB1200, DB1300 and DB1550.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4335/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/devboards/platform.c')
-rw-r--r--arch/mips/alchemy/devboards/platform.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/alchemy/devboards/platform.c b/arch/mips/alchemy/devboards/platform.c
index f39042e99d0d..8df86eb94972 100644
--- a/arch/mips/alchemy/devboards/platform.c
+++ b/arch/mips/alchemy/devboards/platform.c
@@ -36,11 +36,10 @@ void __init prom_init(void)
 
 void prom_putchar(unsigned char c)
 {
-#ifdef CONFIG_MIPS_DB1300
-	alchemy_uart_putchar(AU1300_UART2_PHYS_ADDR, c);
-#else
-	alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c);
-#endif
+	if (alchemy_get_cputype() == ALCHEMY_CPU_AU1300)
+		alchemy_uart_putchar(AU1300_UART2_PHYS_ADDR, c);
+	else
+		alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c);
 }