patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / ppc / platforms / 4xx / ibmstbx25.c
1 /*
2  * arch/ppc/platforms/4xx/ibmstbx25.c
3  *
4  * Author: Armin Kuster <akuster@mvista.com>
5  *
6  * 2000-2002 (c) MontaVista, Software, Inc.  This file is licensed under
7  * the terms of the GNU General Public License version 2.  This program
8  * is licensed "as is" without any warranty of any kind, whether express
9  * or implied.
10  */
11
12 #include <linux/init.h>
13 #include <asm/ocp.h>
14 #include <platforms/4xx/ibmstbx25.h>
15
16 static struct ocp_func_iic_data ibmstbx25_iic0_def = {
17         .fast_mode      = 0,            /* Use standad mode (100Khz) */
18 };
19 OCP_SYSFS_IIC_DATA()
20
21 struct ocp_def core_ocp[] __initdata = {
22         { .vendor       = OCP_VENDOR_IBM,
23           .function     = OCP_FUNC_16550,
24           .index        = 0,
25           .paddr        = UART0_IO_BASE,
26           .irq          = UART0_INT,
27           .pm           = IBM_CPM_UART0,
28         },
29         { .vendor       = OCP_VENDOR_IBM,
30           .function     = OCP_FUNC_16550,
31           .index        = 1,
32           .paddr        = UART1_IO_BASE,
33           .irq          = UART1_INT,
34           .pm           = IBM_CPM_UART1,
35         },
36         { .vendor       = OCP_VENDOR_IBM,
37           .function     = OCP_FUNC_16550,
38           .index        = 2,
39           .paddr        = UART2_IO_BASE,
40           .irq          = UART2_INT,
41           .pm           = IBM_CPM_UART2,
42         },
43         { .vendor       = OCP_VENDOR_IBM,
44           .function     = OCP_FUNC_IIC,
45           .paddr        = IIC0_BASE,
46           .irq          = IIC0_IRQ,
47           .pm           = IBM_CPM_IIC0,
48           .additions    = &ibmstbx25_iic0_def,
49           .show         = &ocp_show_iic_data
50         },
51         { .vendor       = OCP_VENDOR_IBM,
52           .function     = OCP_FUNC_GPIO,
53           .paddr        = GPIO0_BASE,
54           .irq          = OCP_IRQ_NA,
55           .pm           = IBM_CPM_GPIO0,
56         },
57         { .vendor       = OCP_VENDOR_INVALID
58         }
59 };