Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[linux-2.6] / arch / ppc / platforms / 4xx / virtex-ii_pro.c
1 /*
2  * arch/ppc/platforms/4xx/virtex-ii_pro.c
3  *
4  * Author: MontaVista Software, Inc.
5  *         source@mvista.com
6  *
7  * 2002-2004 (c) MontaVista Software, Inc.  This file is licensed under the
8  * terms of the GNU General Public License version 2.  This program is licensed
9  * "as is" without any warranty of any kind, whether express or implied.
10  */
11
12 #include <linux/config.h>
13 #include <linux/init.h>
14 #include <asm/ocp.h>
15 #include "virtex-ii_pro.h"
16
17 /* Have OCP take care of the serial ports. */
18 struct ocp_def core_ocp[] = {
19 #ifdef XPAR_UARTNS550_0_BASEADDR
20         { .vendor       = OCP_VENDOR_XILINX,
21           .function     = OCP_FUNC_16550,
22           .index        = 0,
23           .paddr        = XPAR_UARTNS550_0_BASEADDR,
24           .irq          = XPAR_INTC_0_UARTNS550_0_VEC_ID,
25           .pm           = OCP_CPM_NA
26         },
27 #ifdef XPAR_UARTNS550_1_BASEADDR
28         { .vendor       = OCP_VENDOR_XILINX,
29           .function     = OCP_FUNC_16550,
30           .index        = 1,
31           .paddr        = XPAR_UARTNS550_1_BASEADDR,
32           .irq          = XPAR_INTC_0_UARTNS550_1_VEC_ID,
33           .pm           = OCP_CPM_NA
34         },
35 #ifdef XPAR_UARTNS550_2_BASEADDR
36         { .vendor       = OCP_VENDOR_XILINX,
37           .function     = OCP_FUNC_16550,
38           .index        = 2,
39           .paddr        = XPAR_UARTNS550_2_BASEADDR,
40           .irq          = XPAR_INTC_0_UARTNS550_2_VEC_ID,
41           .pm           = OCP_CPM_NA
42         },
43 #ifdef XPAR_UARTNS550_3_BASEADDR
44         { .vendor       = OCP_VENDOR_XILINX,
45           .function     = OCP_FUNC_16550,
46           .index        = 3,
47           .paddr        = XPAR_UARTNS550_3_BASEADDR,
48           .irq          = XPAR_INTC_0_UARTNS550_3_VEC_ID,
49           .pm           = OCP_CPM_NA
50         },
51 #ifdef XPAR_UARTNS550_4_BASEADDR
52 #error Edit this file to add more devices.
53 #endif                  /* 4 */
54 #endif                  /* 3 */
55 #endif                  /* 2 */
56 #endif                  /* 1 */
57 #endif                  /* 0 */
58         { .vendor       = OCP_VENDOR_INVALID
59         }
60 };