lkml.org 
[lkml]   [2009]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] [ARM] pxa/zylonite2: add support for console uart
Date
From: Eric Miao <eric.miao@marvell.com>

Signed-off-by: Eric Miao <eric.miao@marvell.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


\
 
 \ /
  Last update: 2009-02-19 14:53    [from the cache]
©2003-2011 Jasper Spaans