ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc / platforms / prpmc750_serial.h
1 /*
2  * include/asm-ppc/platforms/prpmc750_serial.h
3  *
4  * Motorola PrPMC750 serial support
5  *
6  * Author: Matt Porter <mporter@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 __ASM_PRPMC750_SERIAL_H__
16 #define __ASM_PRPMC750_SERIAL_H__
17
18 #include <linux/config.h>
19 #include <platforms/prpmc750.h>
20
21 #define RS_TABLE_SIZE  4
22
23 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
24 #define BASE_BAUD  (PRPMC750_BASE_BAUD / 16)
25
26 #ifndef SERIAL_MAGIC_KEY
27 #define kernel_debugger ppc_kernel_debug
28 #endif
29
30 #ifdef CONFIG_SERIAL_DETECT_IRQ
31 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
32 #else
33 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
34 #endif
35
36 #define SERIAL_PORT_DFNS \
37         { 0, BASE_BAUD, PRPMC750_SERIAL_0, 1, STD_COM_FLAGS, \
38                 iomem_base: (unsigned char *)PRPMC750_SERIAL_0, \
39                 iomem_reg_shift: 4, \
40                 io_type: SERIAL_IO_MEM } /* ttyS0 */
41
42 #endif /* __ASM_PRPMC750_SERIAL_H__ */
43 #endif /* __KERNEL__ */