2 * include/asm-ppc/zx4500_serial.h
4 * Definitions for Znyx ZX4500 board support
6 * Author: Mark A. Greer
9 * Copyright 2000, 2001 MontaVista Software Inc.
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.
17 #ifndef __ASMPPC_ZX4500_SERIAL_H
18 #define __ASMPPC_ZX4500_SERIAL_H
20 #include <linux/config.h>
22 /* Define the UART base address (only 1 UART) */
23 #define ZX4500_SERIAL_1 0xff880000
25 #ifdef CONFIG_SERIAL_MANY_PORTS
26 #define RS_TABLE_SIZE 64
28 #define RS_TABLE_SIZE 1
31 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
32 #define BASE_BAUD ( 1843200 / 16 )
34 #ifdef CONFIG_SERIAL_DETECT_IRQ
35 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
37 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
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 },
45 #define SERIAL_PORT_DFNS \
48 #endif /* __ASMPPC_ZX4500_SERIAL_H */