[PATCH] [ARM] pxa/zylonite2: add support for console uart

From: Eric Miao
Date: Thu Feb 19 2009 - 08:50:35 EST


From: Eric Miao <eric.miao@xxxxxxxxxxx>

Signed-off-by: Eric Miao <eric.miao@xxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/