2 * arch/ppc/platforms/prpmc800_serial.h
4 * Definitions for Motorola MCG PRPMC800 cPCI board support
6 * Author: Dale Farnsworth dale.farnsworth@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
14 #ifndef __ASMPPC_PRPMC800_SERIAL_H
15 #define __ASMPPC_PRPMC800_SERIAL_H
17 #include <linux/config.h>
18 #include <platforms/prpmc800.h>
20 #ifdef CONFIG_SERIAL_MANY_PORTS
21 #define RS_TABLE_SIZE 64
23 #define RS_TABLE_SIZE 4
26 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
27 #define BASE_BAUD (PRPMC800_BASE_BAUD / 16)
29 #ifndef SERIAL_MAGIC_KEY
30 #define kernel_debugger ppc_kernel_debug
33 #ifdef CONFIG_SERIAL_DETECT_IRQ
34 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
36 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
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, \
44 io_type: SERIAL_IO_MEM },
46 #define SERIAL_PORT_DFNS \
49 #endif /* __ASMPPC_PRPMC800_SERIAL_H */