powerpc: Improve (in|out)_[bl]eXX() asm code
[linux-2.6/verdex.git] / arch / ppc / platforms / sandpoint.h
blobed83759e4044bc909267cb923af3d1406d29d731
1 /*
2 * Definitions for Motorola SPS Sandpoint Test Platform
4 * Author: Mark A. Greer
5 * mgreer@mvista.com
7 * 2000-2003 (c) MontaVista, Software, Inc. This file is licensed under
8 * the terms of the GNU General Public License version 2. This program
9 * is licensed "as is" without any warranty of any kind, whether express
10 * or implied.
14 * Sandpoint uses the CHRP map (Map B).
17 #ifndef __PPC_PLATFORMS_SANDPOINT_H
18 #define __PPC_PLATFORMS_SANDPOINT_H
20 #include <asm/ppcboot.h>
22 #if 0
23 /* The Sandpoint X3 allows the IDE interrupt to be directly connected
24 * from the Windbond (PCI INTC or INTD) to the serial EPIC. Someday
25 * we should try this, but it was easier to use the existing 83c553
26 * initialization than change it to route the different interrupts :-).
27 * -- Dan
29 #define SANDPOINT_IDE_INT0 23 /* EPIC 7 */
30 #define SANDPOINT_IDE_INT1 24 /* EPIC 8 */
31 #endif
34 * The sandpoint boards have processor modules that either have an 8240 or
35 * an MPC107 host bridge on them. These bridges have an IDSEL line that allows
36 * them to respond to PCI transactions as if they were a normal PCI devices.
37 * However, the processor on the processor side of the bridge can not reach
38 * out onto the PCI bus and then select the bridge or bad things will happen
39 * (documented in the 8240 and 107 manuals).
40 * Because of this, we always skip the bridge PCI device when accessing the
41 * PCI bus. The PCI slot that the bridge occupies is defined by the macro
42 * below.
44 #define SANDPOINT_HOST_BRIDGE_IDSEL 12
47 * Serial defines.
49 #define SANDPOINT_SERIAL_0 0xfe0003f8
50 #define SANDPOINT_SERIAL_1 0xfe0002f8
52 #define RS_TABLE_SIZE 2
54 /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
55 #define BASE_BAUD ( 1843200 / 16 )
56 #define UART_CLK 1843200
58 #ifdef CONFIG_SERIAL_DETECT_IRQ
59 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
60 #else
61 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF)
62 #endif
64 #define STD_SERIAL_PORT_DFNS \
65 { 0, BASE_BAUD, SANDPOINT_SERIAL_0, 4, STD_COM_FLAGS, /* ttyS0 */ \
66 iomem_base: (u8 *)SANDPOINT_SERIAL_0, \
67 io_type: SERIAL_IO_MEM }, \
68 { 0, BASE_BAUD, SANDPOINT_SERIAL_1, 3, STD_COM_FLAGS, /* ttyS1 */ \
69 iomem_base: (u8 *)SANDPOINT_SERIAL_1, \
70 io_type: SERIAL_IO_MEM },
72 #define SERIAL_PORT_DFNS \
73 STD_SERIAL_PORT_DFNS
75 #endif /* __PPC_PLATFORMS_SANDPOINT_H */