]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] pxa/aspenite: add support for console uart
authorEric Miao <eric.miao@marvell.com>
Tue, 10 Feb 2009 02:35:25 +0000 (10:35 +0800)
committerEric Miao <eric.miao@marvell.com>
Mon, 23 Mar 2009 02:11:35 +0000 (10:11 +0800)
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-mmp/aspenite.c

index e8caf58e004c62a73f742a7f65c1a720c48ba75a..a9efa5cadbe88e8ffd442eb31adc27fc2ffe11db 100644 (file)
  */
 
 #include <linux/init.h>
+#include <linux/kernel.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <mach/addr-map.h>
+#include <mach/mfp-pxa168.h>
+#include <mach/pxa168.h>
 
 #include "common.h"
 
+static unsigned long common_pin_config[] __initdata = {
+       /* UART1 */
+       GPIO107_UART1_RXD,
+       GPIO108_UART1_TXD,
+};
+
 static void __init common_init(void)
 {
+       mfp_config(ARRAY_AND_SIZE(common_pin_config));
+
+       pxa168_add_uart(1);
 }
 
 MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")