2 * arch/ppc/platforms/ev64260.h
4 * Definitions for Marvell/Galileo EV-64260-BP Evaluation Board.
6 * Author: Mark A. Greer <mgreer@mvista.com>
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
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.
20 #ifndef __PPC_PLATFORMS_EV64260_H
21 #define __PPC_PLATFORMS_EV64260_H
23 #define EV64260_BRIDGE_REG_BASE 0xf8000000
24 #define EV64260_BRIDGE_REG_BASE_TO_TOP 0x08000000U
26 #define EV64260_TODC_BASE 0xfc800000
27 #define EV64260_TODC_LEN 0x00800000
28 #define EV64260_TODC_END (EV64260_TODC_BASE + \
31 #define EV64260_UART_BASE 0xfd000000
32 #define EV64260_UART_LEN 0x00800000
33 #define EV64260_UART_END (EV64260_UART_BASE + \
35 /* Serial driver setup. */
36 #define EV64260_SERIAL_0 (EV64260_UART_BASE + 0x20)
37 #define EV64260_SERIAL_1 EV64260_UART_BASE
39 #define BASE_BAUD ( 3686400 / 16 )
41 #ifdef CONFIG_SERIAL_MANY_PORTS
42 #define RS_TABLE_SIZE 64
44 #define RS_TABLE_SIZE 2
47 #ifdef CONFIG_SERIAL_DETECT_IRQ
48 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
50 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
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, \
59 io_type: SERIAL_IO_MEM },
61 #define SERIAL_PORT_DFNS \
64 #define SERIAL_PORT_DFNS
67 #endif /* __PPC_PLATFORMS_EV64260_H */