ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc / platforms / ev64260.h
1 /*
2  * arch/ppc/platforms/ev64260.h
3  *
4  * Definitions for Marvell/Galileo EV-64260-BP Evaluation Board.
5  *
6  * Author: Mark A. Greer <mgreer@mvista.com>
7  *
8  * 2001 (c) MontaVista, Software, Inc.  This file is licensed under
9  * the terms of the GNU General Public License version 2.  This program
10  * is licensed "as is" without any warranty of any kind, whether express
11  * or implied.
12  */
13
14 /*
15  * The GT64260 has 2 PCI buses each with 1 window from the CPU bus to
16  * PCI I/O space and 4 windows from the CPU bus to PCI MEM space.
17  * We'll only use one PCI MEM window on each PCI bus.
18  */
19
20 #ifndef __PPC_PLATFORMS_EV64260_H
21 #define __PPC_PLATFORMS_EV64260_H
22
23 #define EV64260_BRIDGE_REG_BASE         0xf8000000
24 #define EV64260_BRIDGE_REG_BASE_TO_TOP  0x08000000U
25
26 #define EV64260_TODC_BASE               0xfc800000
27 #define EV64260_TODC_LEN                0x00800000
28 #define EV64260_TODC_END                (EV64260_TODC_BASE + \
29                                          EV64260_TODC_LEN - 1)
30
31 #define EV64260_UART_BASE               0xfd000000
32 #define EV64260_UART_LEN                0x00800000
33 #define EV64260_UART_END                (EV64260_UART_BASE + \
34                                          EV64260_UART_LEN - 1)
35 /* Serial driver setup.  */
36 #define EV64260_SERIAL_0                (EV64260_UART_BASE + 0x20)
37 #define EV64260_SERIAL_1                EV64260_UART_BASE
38
39 #define BASE_BAUD ( 3686400 / 16 )
40
41 #ifdef CONFIG_SERIAL_MANY_PORTS
42 #define RS_TABLE_SIZE   64
43 #else
44 #define RS_TABLE_SIZE   2
45 #endif
46
47 #ifdef CONFIG_SERIAL_DETECT_IRQ
48 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
49 #else
50 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
51 #endif
52
53 #if     !defined(CONFIG_GT64260_CONSOLE)
54 /* Required for bootloader's ns16550.c code */
55 #define STD_SERIAL_PORT_DFNS                                            \
56         { 0, BASE_BAUD, EV64260_SERIAL_0, 85, STD_COM_FLAGS, /* ttyS0 */\
57         iomem_base: (u8 *)EV64260_SERIAL_0,                             \
58         iomem_reg_shift: 2,                                             \
59         io_type: SERIAL_IO_MEM },
60
61 #define SERIAL_PORT_DFNS \
62         STD_SERIAL_PORT_DFNS
63 #else
64 #define SERIAL_PORT_DFNS
65 #endif
66
67 #endif /* __PPC_PLATFORMS_EV64260_H */