aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-w90x900/cpu.h
diff options
context:
space:
mode:
authorwanzongshun <mcuos.com@gmail.com>2009-02-03 23:01:38 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-10 06:24:21 -0500
commit17198f2d681d34b3376f3a55b2837e56062c2439 (patch)
tree9d9f87f3bf08c530ef18251e04a50ec16d6633ea /arch/arm/mach-w90x900/cpu.h
parentb74788d8c118a48585ad5342560e0aea6ed0ccd4 (diff)
[ARM] 5374/1: The w90p910 uart0 driver patch
Add W90P910 UART0 support,the W90P910 UART0 is 8250 series. Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900/cpu.h')
-rw-r--r--arch/arm/mach-w90x900/cpu.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-w90x900/cpu.h b/arch/arm/mach-w90x900/cpu.h
index 40ff40845df0..001d50915e38 100644
--- a/arch/arm/mach-w90x900/cpu.h
+++ b/arch/arm/mach-w90x900/cpu.h
@@ -43,6 +43,7 @@ extern void w90p910_init_io(struct map_desc *mach_desc, int size);
43extern void w90p910_init_uarts(struct w90x900_uartcfg *cfg, int no); 43extern void w90p910_init_uarts(struct w90x900_uartcfg *cfg, int no);
44extern void w90p910_init_clocks(int xtal); 44extern void w90p910_init_clocks(int xtal);
45extern void w90p910_map_io(struct map_desc *mach_desc, int size); 45extern void w90p910_map_io(struct map_desc *mach_desc, int size);
46extern struct platform_device w90p910_serial_device;
46extern struct sys_timer w90x900_timer; 47extern struct sys_timer w90x900_timer;
47 48
48#define W90X900_RES(name) \ 49#define W90X900_RES(name) \
@@ -67,11 +68,13 @@ struct platform_device w90x900_##devname = { \
67 .resource = w90x900_##regname##_resource, \ 68 .resource = w90x900_##regname##_resource, \
68} 69}
69 70
70#define W90X900_UARTCFG(port, flag, uc, ulc, ufc) \ 71#define W90X900_8250PORT(name) \
71{ \ 72{ \
72 .hwport = port, \ 73 .membase = name##_BA, \
73 .flags = flag, \ 74 .mapbase = name##_PA, \
74 .ucon = uc, \ 75 .irq = IRQ_##name, \
75 .ulcon = ulc, \ 76 .uartclk = 11313600, \
76 .ufcon = ufc, \ 77 .regshift = 2, \
78 .iotype = UPIO_MEM, \
79 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, \
77} 80}