Linux 2.6.13-rc3
[linux-2.6/next.git] / include / asm-sh / serial.h
blobf51e232d5cd94f085fef8e3698c67c390b0edca1
1 /*
2 * include/asm-sh/serial.h
4 * Configuration details for 8250, 16450, 16550, etc. serial ports
5 */
7 #ifndef _ASM_SERIAL_H
8 #define _ASM_SERIAL_H
10 #include <linux/config.h>
11 #include <linux/kernel.h>
13 #ifdef CONFIG_SH_EC3104
14 #include <asm/serial-ec3104.h>
15 #elif defined (CONFIG_SH_BIGSUR)
16 #include <asm/serial-bigsur.h>
17 #else
19 * This assumes you have a 1.8432 MHz clock for your UART.
21 * It'd be nice if someone built a serial card with a 24.576 MHz
22 * clock, since the 16550A is capable of handling a top speed of 1.5
23 * megabits/second; but this requires the faster clock.
25 #define BASE_BAUD ( 1843200 / 16 )
27 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
29 #ifdef CONFIG_HD64465
30 #include <asm/hd64465.h>
32 #define SERIAL_PORT_DFNS \
33 /* UART CLK PORT IRQ FLAGS */ \
34 { 0, BASE_BAUD, 0x3F8, HD64465_IRQ_UART, STD_COM_FLAGS } /* ttyS0 */
36 #else
38 #define SERIAL_PORT_DFNS \
39 /* UART CLK PORT IRQ FLAGS */ \
40 { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
41 { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS } /* ttyS1 */
43 #endif
45 #endif
46 #endif /* _ASM_SERIAL_H */