ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc / platforms / prpmc800_serial.h
1 /*
2  * arch/ppc/platforms/prpmc800_serial.h
3  *
4  * Definitions for Motorola MCG PRPMC800 cPCI board support
5  *
6  * Author: Dale Farnsworth      dale.farnsworth@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 #ifndef __ASMPPC_PRPMC800_SERIAL_H
15 #define __ASMPPC_PRPMC800_SERIAL_H
16
17 #include <linux/config.h>
18 #include <platforms/prpmc800.h>
19
20 #ifdef CONFIG_SERIAL_MANY_PORTS
21 #define RS_TABLE_SIZE  64
22 #else
23 #define RS_TABLE_SIZE  4
24 #endif
25
26 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
27 #define BASE_BAUD (PRPMC800_BASE_BAUD / 16)
28
29 #ifndef SERIAL_MAGIC_KEY
30 #define kernel_debugger ppc_kernel_debug
31 #endif
32
33 #ifdef CONFIG_SERIAL_DETECT_IRQ
34 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
35 #else
36 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
37 #endif
38
39 /* UARTS are at IRQ 16 */
40 #define STD_SERIAL_PORT_DFNS \
41         { 0, BASE_BAUD, PRPMC800_SERIAL_1, 16, STD_COM_FLAGS, /* ttyS0 */\
42                 iomem_base: (unsigned char *)PRPMC800_SERIAL_1,         \
43                 iomem_reg_shift: 0,                                     \
44                 io_type: SERIAL_IO_MEM },
45
46 #define SERIAL_PORT_DFNS \
47         STD_SERIAL_PORT_DFNS
48
49 #endif /* __ASMPPC_PRPMC800_SERIAL_H */