import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / ppc / platforms / lopec_serial.h
1 /*
2  * include/asm-ppc/lopec_serial.h
3  *
4  * Definitions for Motorola LoPEC board.
5  *
6  * Author: Dan Cox
7  *         danc@mvista.com (or, alternately, source@mvista.com)
8  *
9  * Copyright 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 __PLATFORMS_LOPEC_SERIAL_H__
18 #define __PLATFORMS_LOPEC_SERIAL_H__
19
20 #define RS_TABLE_SIZE   3
21
22 #define BASE_BAUD       (1843200 / 16)
23 #define UART0_INT       29
24 #define UART1_INT       20
25 #define UART2_INT       21
26
27 #define UART0_PORT      0xFFE10000
28 #define UART1_PORT      0xFFE11000
29 #define UART2_PORT      0xFFE12000
30 #define UART0_IO_BASE   (u8 *) UART0_PORT
31 #define UART1_IO_BASE   (u8 *) UART1_PORT
32 #define UART2_IO_BASE   (u8 *) UART2_PORT
33
34 #define STD_UART_OP(num)                                        \
35         { 0, BASE_BAUD, UART##num##_PORT, UART##num##_INT,      \
36                 ASYNC_BOOT_AUTOCONF,                            \
37                 iomem_base: UART##num##_IO_BASE,                \
38                 io_type: SERIAL_IO_MEM },
39
40 #define SERIAL_PORT_DFNS        \
41                 STD_UART_OP(0)  \
42                 STD_UART_OP(1)  \
43                 STD_UART_OP(2)
44
45 #endif /* __PLATFORMS_LOPEC_SERIAL_H__ */