2 * linux/include/asm-arm/arch-h72x/serial.h
4 * Copyright (C) 2003 Thomas Gleixner <tglx@linutronix.de>
5 * 2003 Robert Schwebel <r.schwebel@pengutronix.de>
7 * Serial port setup for Hynix boards
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 #ifndef __ASM_ARCH_SERIAL_H
16 #define __ASM_ARCH_SERIAL_H
18 #include <asm/arch/irqs.h>
23 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
26 /* Base clock is 3.6864 MHz */
27 #define BASE_BAUD (115200*2)
28 #define EXTRA_SERIAL_PORT_DEFNS
31 * Board dependend defines
33 #if defined (CONFIG_CPU_H7201)
34 #define BASE_BAUD_P3C (115200)
36 #define STD_SERIAL_PORT_DEFNS \
38 .baud_base = BASE_BAUD, \
39 .port = SERIAL0_BASE, \
40 .iomem_base = (u8*)SERIAL0_BASE, \
41 .io_type = UPIO_MEM, \
43 .flags = STD_COM_FLAGS, \
44 .iomem_reg_shift = 2,\
47 .baud_base = BASE_BAUD, \
48 .port = SERIAL1_BASE, \
49 .iomem_base = (u8*)SERIAL1_BASE, \
50 .io_type = UPIO_MEM, \
52 .flags = STD_COM_FLAGS, \
53 .iomem_reg_shift = 2,\
56 #elif defined (CONFIG_CPU_H7202)
58 #define STD_SERIAL_PORT_DEFNS \
60 .baud_base = BASE_BAUD, \
61 .port = SERIAL0_BASE, \
62 .iomem_base = (u8*)SERIAL0_BASE, \
63 .io_type = UPIO_MEM, \
65 .flags = STD_COM_FLAGS, \
66 .iomem_reg_shift = 2,\
69 .baud_base = BASE_BAUD, \
70 .port = SERIAL1_BASE, \
71 .iomem_base = (u8*)SERIAL1_BASE, \
72 .io_type = UPIO_MEM, \
74 .flags = STD_COM_FLAGS, \
75 .iomem_reg_shift = 2,\
78 .baud_base = BASE_BAUD, \
79 .port = SERIAL2_BASE, \
80 .iomem_base = (u8*)SERIAL2_BASE, \
81 .io_type = UPIO_MEM, \
83 .flags = STD_COM_FLAGS, \
84 .iomem_reg_shift = 2,\
87 .baud_base = BASE_BAUD, \
88 .port = SERIAL3_BASE, \
89 .iomem_base = (u8*)SERIAL3_BASE, \
90 .io_type = UPIO_MEM, \
92 .flags = STD_COM_FLAGS, \
93 .iomem_reg_shift = 2,\
97 #error machine definition mismatch
100 /* __ASM_ARCH_SERIAL_H */