fix to allow usb modules to compile
[linux-2.4.21-pre4.git] / arch / ppc / platforms / @!
1 /*
2  * include/asm-ppc/sandpoint_serial.h
3  * 
4  * Definitions for Motorola SPS Sandpoint Test Platform
5  *
6  * Author: Mark A. Greer
7  *         mgreer@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 __ASMPPC_SANDPOINT_SERIAL_H
18 #define __ASMPPC_SANDPOINT_SERIAL_H
19
20 #include <linux/config.h>
21 #if 0
22 #define SANDPOINT_SERIAL_0              0xfe0003f8
23 #define SANDPOINT_SERIAL_1              0xfe0002f8
24 #endif //REX:
25 #if 0
26 extern unsigned long                    ioremap_base;
27 #define SANDPOINT_SERIAL_0 (ioremap_base - 0x100000 + 0x4500) 
28 //#define SANDPOINT_SERIAL_1 (MPC10X_MAPB_EUMB_BASE+0x4600)
29 #endif
30 #define SANDPOINT_SERIAL_0 0xFC004500
31
32 #ifdef CONFIG_SERIAL_MANY_PORTS
33 #define RS_TABLE_SIZE  64
34 #else
35 #define RS_TABLE_SIZE 1 
36 #endif
37
38 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
39 //#define BASE_BAUD ( 1843200 / 16 )
40 //REX:
41 #define BASE_BAUD (100000000/16)
42
43 #ifdef CONFIG_SERIAL_DETECT_IRQ
44 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
45 #else
46 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
47 #endif
48 #if 0
49 #define STD_SERIAL_PORT_DFNS \
50         { 0, BASE_BAUD, SANDPOINT_SERIAL_0, 4, STD_COM_FLAGS, /* ttyS0 */ \
51                 iomem_base: (u8 *)SANDPOINT_SERIAL_0,                     \
52                 io_type: SERIAL_IO_MEM },                                 \
53 #endif
54 //REX:
55 #define STD_SERIAL_PORT_DFNS \
56         { 0, BASE_BAUD, SANDPOINT_SERIAL_0, 127, STD_COM_FLAGS, /* ttyS0 */ \
57                 iomem_base: (u8 *)SANDPOINT_SERIAL_0,                     \
58                 io_type: SERIAL_IO_MEM },                                 
59
60 #define SERIAL_PORT_DFNS \
61         STD_SERIAL_PORT_DFNS
62
63 #endif /* __ASMPPC_SANDPOINT_SERIAL_H */