diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2010-01-11 19:54:50 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-03-01 18:40:53 -0500 |
commit | 9896de72d20686f4dbc9cdd64ca178c80d6838b6 (patch) | |
tree | 623929b963795e1aa498a6c01e152cb5bb19433a /arch/arm/mach-mmp/include | |
parent | 0925e2f0fc5a55621cb80afbb6d4543c62e6a653 (diff) |
[ARM] mmp: avengers lite (pxa168) board bring up
Signed-off-by: Gavin Gu <gavin.gu@marvell.com>
Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jack Ren <jack.ren@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/include')
-rw-r--r-- | arch/arm/mach-mmp/include/mach/mfp-pxa168.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-mmp/include/mach/uncompress.h | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h index 3b216bf41e7f..ded43c455ec3 100644 --- a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h +++ b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h | |||
@@ -193,7 +193,9 @@ | |||
193 | #define GPIO32_CF_nCD1 MFP_CFG(GPIO32, AF3) | 193 | #define GPIO32_CF_nCD1 MFP_CFG(GPIO32, AF3) |
194 | #define GPIO33_CF_nCD2 MFP_CFG(GPIO33, AF3) | 194 | #define GPIO33_CF_nCD2 MFP_CFG(GPIO33, AF3) |
195 | 195 | ||
196 | /* UART1 */ | 196 | /* UART */ |
197 | #define GPIO88_UART2_TXD MFP_CFG(GPIO88, AF2) | ||
198 | #define GPIO89_UART2_RXD MFP_CFG(GPIO89, AF2) | ||
197 | #define GPIO107_UART1_TXD MFP_CFG_DRV(GPIO107, AF1, FAST) | 199 | #define GPIO107_UART1_TXD MFP_CFG_DRV(GPIO107, AF1, FAST) |
198 | #define GPIO107_UART1_RXD MFP_CFG_DRV(GPIO107, AF2, FAST) | 200 | #define GPIO107_UART1_RXD MFP_CFG_DRV(GPIO107, AF2, FAST) |
199 | #define GPIO108_UART1_RXD MFP_CFG_DRV(GPIO108, AF1, FAST) | 201 | #define GPIO108_UART1_RXD MFP_CFG_DRV(GPIO108, AF1, FAST) |
diff --git a/arch/arm/mach-mmp/include/mach/uncompress.h b/arch/arm/mach-mmp/include/mach/uncompress.h index c93d5fa5865c..a7dcc5307216 100644 --- a/arch/arm/mach-mmp/include/mach/uncompress.h +++ b/arch/arm/mach-mmp/include/mach/uncompress.h | |||
@@ -8,15 +8,16 @@ | |||
8 | 8 | ||
9 | #include <linux/serial_reg.h> | 9 | #include <linux/serial_reg.h> |
10 | #include <mach/addr-map.h> | 10 | #include <mach/addr-map.h> |
11 | #include <asm/mach-types.h> | ||
11 | 12 | ||
12 | #define UART1_BASE (APB_PHYS_BASE + 0x36000) | 13 | #define UART1_BASE (APB_PHYS_BASE + 0x36000) |
13 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) | 14 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) |
14 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) | 15 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) |
15 | 16 | ||
17 | static volatile unsigned long *UART = (unsigned long *)UART2_BASE; | ||
18 | |||
16 | static inline void putc(char c) | 19 | static inline void putc(char c) |
17 | { | 20 | { |
18 | volatile unsigned long *UART = (unsigned long *)UART2_BASE; | ||
19 | |||
20 | /* UART enabled? */ | 21 | /* UART enabled? */ |
21 | if (!(UART[UART_IER] & UART_IER_UUE)) | 22 | if (!(UART[UART_IER] & UART_IER_UUE)) |
22 | return; | 23 | return; |
@@ -34,8 +35,14 @@ static inline void flush(void) | |||
34 | { | 35 | { |
35 | } | 36 | } |
36 | 37 | ||
38 | static inline void arch_decomp_setup(void) | ||
39 | { | ||
40 | if (machine_is_avengers_lite()) | ||
41 | UART = (unsigned long *)UART3_BASE; | ||
42 | } | ||
43 | |||
37 | /* | 44 | /* |
38 | * nothing to do | 45 | * nothing to do |
39 | */ | 46 | */ |
40 | #define arch_decomp_setup() | 47 | |
41 | #define arch_decomp_wdog() | 48 | #define arch_decomp_wdog() |