[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1235051161-8858-10-git-send-email-eric.y.miao@gmail.com>
Date: Thu, 19 Feb 2009 21:45:58 +0800
From: Eric Miao <eric.y.miao@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: linux-arm-kernel <linux-arm-kernel@...ts.arm.linux.org.uk>,
Eric Miao <eric.miao@...vell.com>
Subject: [PATCH] [ARM] pxa/zylonite2: add support for console uart
From: Eric Miao <eric.miao@...vell.com>
Signed-off-by: Eric Miao <eric.miao@...vell.com>
---
arch/arm/mach-mmp/zylonite2.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mmp/zylonite2.c b/arch/arm/mach-mmp/zylonite2.c
index 82319b5..ca419aa 100644
--- a/arch/arm/mach-mmp/zylonite2.c
+++ b/arch/arm/mach-mmp/zylonite2.c
@@ -9,15 +9,27 @@
*/
#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 zylonite2_pin_config[] __initdata = {
+ /* UART1 */
+ GPIO107_UART1_RXD,
+ GPIO108_UART1_TXD,
+};
+
static void __init zylonite2_init(void)
{
+ mfp_config(ARRAY_AND_SIZE(zylonite2_pin_config));
+
+ pxa168_add_uart1();
}
MACHINE_START(ZYLONITE2, "PXA168-based Zylonite2 Development Platform")
--
1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists