ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc / platforms / powerpmc250_serial.h
1 /*
2  * include/asm-ppc/platforms/powerpmc250_serial.h
3  *
4  * Motorola PrPMC750 serial support
5  *
6  * Author: Troy Benjegerdes <tbenjegerdes@mvista.com>
7  *
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
11  * or implied.
12  */
13
14 #ifdef __KERNEL__
15 #ifndef __ASMPPC_POWERPMC250_SERIAL_H
16 #define __ASMPPC_POWERPMC250_SERIAL_H
17
18 #include <linux/config.h>
19 #include <platforms/powerpmc250.h>
20
21 #define RS_TABLE_SIZE  1
22
23 #define BASE_BAUD  (POWERPMC250_BASE_BAUD / 16)
24
25 #ifdef CONFIG_SERIAL_DETECT_IRQ
26 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
27 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
28 #else
29 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
30 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
31 #endif
32
33 #define SERIAL_PORT_DFNS \
34 { 0, BASE_BAUD, POWERPMC250_SERIAL, POWERPMC250_SERIAL_IRQ, STD_COM_FLAGS, /* ttyS0 */\
35                 iomem_base: (u8 *)POWERPMC250_SERIAL,           \
36                 iomem_reg_shift: 0,                                     \
37                 io_type: SERIAL_IO_MEM }
38
39 #endif
40 #endif /* __KERNEL__ */