From: Wu Zhangjin Date: Fri, 6 Nov 2009 10:35:34 +0000 (+0800) Subject: MIPS: Loongson: Cleanup the serial port support X-Git-Tag: v2.6.33-rc1~6^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ed495190ebe918f4584291ed8c76f1c97a84fd;p=pandora-kernel.git MIPS: Loongson: Cleanup the serial port support To share the same kernel image amon different machines we have added the machtype command line support. In the old serial port implementation the UART base address is hardcoded as a macro in machine.h which breaks with machtype, so change that to discover the address dynamically. Also move the initialization of the UART base address to uart_base.c to avoid remapping twice for early_printk.c and serial.c. Signed-off-by: Wu Zhangjin Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/581/ Patchwork: http://patchwork.linux-mips.org/patch/682/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed