fix to allow usb modules to compile
[linux-2.4.21-pre4.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  * Copyright 2001 MontaVista Software Inc.
9  *
10  * This program is free software; you can redistribute  it and/or modify it
11  * under  the terms of  the GNU General Public License as published by the
12  * Free Software Foundation;  either version 2 of the  License, or (at your
13  * option) any later version.
14  */
15
16 #ifdef __KERNEL__
17 #ifndef __ASMPPC_POWERPMC250_SERIAL_H
18 #define __ASMPPC_POWERPMC250_SERIAL_H
19
20 #include <linux/config.h>
21 #include <platforms/powerpmc250.h>
22
23 #define RS_TABLE_SIZE  1
24
25 #define BASE_BAUD  (POWERPMC250_BASE_BAUD / 16)
26
27 #ifdef CONFIG_SERIAL_DETECT_IRQ
28 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
29 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
30 #else
31 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
32 #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
33 #endif
34
35 #define SERIAL_PORT_DFNS \
36 { 0, BASE_BAUD, POWERPMC250_SERIAL, POWERPMC250_SERIAL_IRQ, STD_COM_FLAGS, /* ttyS0 */\
37                 iomem_base: (u8 *)POWERPMC250_SERIAL,           \
38                 iomem_reg_shift: 0,                                     \
39                 io_type: SERIAL_IO_MEM }
40
41 #endif
42 #endif /* __KERNEL__ */