blob: 8734590d27e8c79c6fb7bb831b1b13c8d923bf5b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * include/asm-sh/serial.h
3 *
4 * Configuration details for 8250, 16450, 16550, etc. serial ports
5 */
6
7#ifndef _ASM_SERIAL_H
8#define _ASM_SERIAL_H
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <linux/kernel.h>
11
12#ifdef CONFIG_SH_EC3104
13#include <asm/serial-ec3104.h>
14#elif defined (CONFIG_SH_BIGSUR)
15#include <asm/serial-bigsur.h>
16#else
17/*
18 * This assumes you have a 1.8432 MHz clock for your UART.
19 *
20 * It'd be nice if someone built a serial card with a 24.576 MHz
21 * clock, since the 16550A is capable of handling a top speed of 1.5
22 * megabits/second; but this requires the faster clock.
23 */
24#define BASE_BAUD ( 1843200 / 16 )
25
26#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
27
28#ifdef CONFIG_HD64465
29#include <asm/hd64465.h>
30
Russell King026d02a2005-06-29 18:45:19 +010031#define SERIAL_PORT_DFNS \
Linus Torvalds1da177e2005-04-16 15:20:36 -070032 /* UART CLK PORT IRQ FLAGS */ \
33 { 0, BASE_BAUD, 0x3F8, HD64465_IRQ_UART, STD_COM_FLAGS } /* ttyS0 */
34
35#else
36
Russell King026d02a2005-06-29 18:45:19 +010037#define SERIAL_PORT_DFNS \
Linus Torvalds1da177e2005-04-16 15:20:36 -070038 /* UART CLK PORT IRQ FLAGS */ \
39 { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
40 { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS } /* ttyS1 */
41
42#endif
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#endif
45#endif /* _ASM_SERIAL_H */