diff options
author | Eric Miao <eric.miao@marvell.com> | 2009-02-09 21:35:25 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-03-22 22:11:35 -0400 |
commit | 9c291f0f835dc8349afc21d6311cb531140f6977 (patch) | |
tree | 017807323d670e410318b8e1d88289e743fd2fb2 | |
parent | 56422554d29e3761b095b3e27646e8ee03fae41a (diff) |
[ARM] pxa/aspenite: add support for console uart
Signed-off-by: Eric Miao <eric.miao@marvell.com>
-rw-r--r-- | arch/arm/mach-mmp/aspenite.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c index e8caf58e004c..a9efa5cadbe8 100644 --- a/arch/arm/mach-mmp/aspenite.c +++ b/arch/arm/mach-mmp/aspenite.c | |||
@@ -10,15 +10,27 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/kernel.h> | ||
13 | 14 | ||
14 | #include <asm/mach-types.h> | 15 | #include <asm/mach-types.h> |
15 | #include <asm/mach/arch.h> | 16 | #include <asm/mach/arch.h> |
16 | #include <mach/addr-map.h> | 17 | #include <mach/addr-map.h> |
18 | #include <mach/mfp-pxa168.h> | ||
19 | #include <mach/pxa168.h> | ||
17 | 20 | ||
18 | #include "common.h" | 21 | #include "common.h" |
19 | 22 | ||
23 | static unsigned long common_pin_config[] __initdata = { | ||
24 | /* UART1 */ | ||
25 | GPIO107_UART1_RXD, | ||
26 | GPIO108_UART1_TXD, | ||
27 | }; | ||
28 | |||
20 | static void __init common_init(void) | 29 | static void __init common_init(void) |
21 | { | 30 | { |
31 | mfp_config(ARRAY_AND_SIZE(common_pin_config)); | ||
32 | |||
33 | pxa168_add_uart(1); | ||
22 | } | 34 | } |
23 | 35 | ||
24 | MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform") | 36 | MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform") |