cleanup
[linux-2.4.21-pre4.git] / arch / ppc / platforms / zx4500_serial.h
1 /*
2  * include/asm-ppc/zx4500_serial.h
3  * 
4  * Definitions for Znyx ZX4500 board support
5  *
6  * Author: Mark A. Greer
7  *         mgreer@mvista.com
8  *
9  * Copyright 2000, 2001 MontaVista Software Inc.
10  *
11  * This program is free software; you can redistribute  it and/or modify it
12  * under  the terms of  the GNU General Public License as published by the
13  * Free Software Foundation;  either version 2 of the  License, or (at your
14  * option) any later version.
15  */
16
17 #ifndef __ASMPPC_ZX4500_SERIAL_H
18 #define __ASMPPC_ZX4500_SERIAL_H
19
20 #include <linux/config.h>
21
22 /* Define the UART base address (only 1 UART) */
23 #define ZX4500_SERIAL_1                 0xff880000
24
25 #ifdef CONFIG_SERIAL_MANY_PORTS
26 #define RS_TABLE_SIZE  64
27 #else
28 #define RS_TABLE_SIZE  1
29 #endif
30
31 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
32 #define BASE_BAUD ( 1843200 / 16 )
33
34 #ifdef CONFIG_SERIAL_DETECT_IRQ
35 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
36 #else
37 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
38 #endif
39
40 #define STD_SERIAL_PORT_DFNS \
41         { 0, BASE_BAUD, ZX4500_SERIAL_1, 17, STD_COM_FLAGS, /* ttyS0 */ \
42                 iomem_base: (u8 *)ZX4500_SERIAL_1,                      \
43                 io_type: SERIAL_IO_MEM },
44
45 #define SERIAL_PORT_DFNS \
46         STD_SERIAL_PORT_DFNS
47
48 #endif /* __ASMPPC_ZX4500_SERIAL_H */