2 * include/asm-ppc/mvme5100_serial.h
4 * Definitions for Motorola MVME5100 support
6 * Author: Matt Porter <mporter@mvista.com>
8 * 2001 (c) MontaVista, Software, Inc. This file is licensed under
9 * the terms of the GNU General Public License version 2. This program
10 * is licensed "as is" without any warranty of any kind, whether express
15 #ifndef __ASM_MVME5100_SERIAL_H__
16 #define __ASM_MVME5100_SERIAL_H__
18 #include <linux/config.h>
19 #include <platforms/mvme5100.h>
21 #ifdef CONFIG_SERIAL_MANY_PORTS
22 #define RS_TABLE_SIZE 64
24 #define RS_TABLE_SIZE 4
27 #define BASE_BAUD ( MVME5100_BASE_BAUD / 16 )
29 #ifdef CONFIG_SERIAL_DETECT_IRQ
30 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
32 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
35 /* All UART IRQ's are wire-OR'd to one MPIC IRQ */
36 #define STD_SERIAL_PORT_DFNS \
37 { 0, BASE_BAUD, MVME5100_SERIAL_1, \
38 MVME5100_SERIAL_IRQ, \
39 STD_COM_FLAGS, /* ttyS0 */ \
40 iomem_base: (unsigned char *)MVME5100_SERIAL_1, \
42 io_type: SERIAL_IO_MEM }, \
43 { 0, BASE_BAUD, MVME5100_SERIAL_2, \
44 MVME5100_SERIAL_IRQ, \
45 STD_COM_FLAGS, /* ttyS1 */ \
46 iomem_base: (unsigned char *)MVME5100_SERIAL_2, \
48 io_type: SERIAL_IO_MEM },
50 #define SERIAL_PORT_DFNS \
53 #endif /* __ASM_MVME5100_SERIAL_H__ */
54 #endif /* __KERNEL__ */