2 * include/asm-ppc/sandpoint_serial.h
4 * Definitions for Motorola SPS Sandpoint Test Platform
6 * Author: Mark A. Greer
9 * Copyright 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_SANDPOINT_SERIAL_H
18 #define __ASMPPC_SANDPOINT_SERIAL_H
20 #include <linux/config.h>
22 #define SANDPOINT_SERIAL_0 0xfe0003f8
23 #define SANDPOINT_SERIAL_1 0xfe0002f8
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)
30 #define SANDPOINT_SERIAL_0 0xFC004500
32 #ifdef CONFIG_SERIAL_MANY_PORTS
33 #define RS_TABLE_SIZE 64
35 #define RS_TABLE_SIZE 1
38 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
39 //#define BASE_BAUD ( 1843200 / 16 )
41 #define BASE_BAUD (100000000/16)
43 #ifdef CONFIG_SERIAL_DETECT_IRQ
44 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
46 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
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 }, \
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 },
60 #define SERIAL_PORT_DFNS \
63 #endif /* __ASMPPC_SANDPOINT_SERIAL_H */