2 * arch/ppc/platforms/4xx/ibmstb4.c
4 * Author: Armin Kuster <akuster@mvista.com>
6 * 2000-2001 (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
12 #include <linux/init.h>
14 #include <asm/ppc4xx_pic.h>
15 #include <platforms/4xx/ibmstb4.h>
17 static struct ocp_func_iic_data ibmstb4_iic0_def
= {
18 .fast_mode
= 0, /* Use standad mode (100Khz) */
21 static struct ocp_func_iic_data ibmstb4_iic1_def
= {
22 .fast_mode
= 0, /* Use standad mode (100Khz) */
26 struct ocp_def core_ocp
[] __initdata
= {
27 { .vendor
= OCP_VENDOR_IBM
,
28 .function
= OCP_FUNC_16550
,
30 .paddr
= UART0_IO_BASE
,
34 { .vendor
= OCP_VENDOR_IBM
,
35 .function
= OCP_FUNC_16550
,
37 .paddr
= UART1_IO_BASE
,
41 { .vendor
= OCP_VENDOR_IBM
,
42 .function
= OCP_FUNC_16550
,
44 .paddr
= UART2_IO_BASE
,
48 { .vendor
= OCP_VENDOR_IBM
,
49 .function
= OCP_FUNC_IIC
,
53 .additions
= &ibmstb4_iic0_def
,
54 .show
= &ocp_show_iic_data
56 { .vendor
= OCP_VENDOR_IBM
,
57 .function
= OCP_FUNC_IIC
,
61 .additions
= &ibmstb4_iic1_def
,
62 .show
= &ocp_show_iic_data
64 { .vendor
= OCP_VENDOR_IBM
,
65 .function
= OCP_FUNC_GPIO
,
70 { .vendor
= OCP_VENDOR_IBM
,
71 .function
= OCP_FUNC_IDE
,
76 { .vendor
= OCP_VENDOR_INVALID
,
80 /* Polarity and triggering settings for internal interrupt sources */
81 struct ppc4xx_uic_settings ppc4xx_core_uic_cfg
[] __initdata
= {
82 { .polarity
= 0x7fffff01,
83 .triggering
= 0x00000000,
84 .ext_irq_mask
= 0x0000007e, /* IRQ0 - IRQ5 */
88 static struct resource ohci_usb_resources
[] = {
91 .end
= USB0_BASE
+ USB0_SIZE
- 1,
92 .flags
= IORESOURCE_MEM
,
97 .flags
= IORESOURCE_IRQ
,
101 static u64 dma_mask
= 0xffffffffULL
;
103 static struct platform_device ohci_usb_device
= {
104 .name
= "ppc-soc-ohci",
106 .num_resources
= ARRAY_SIZE(ohci_usb_resources
),
107 .resource
= ohci_usb_resources
,
109 .dma_mask
= &dma_mask
,
110 .coherent_dma_mask
= 0xffffffffULL
,
114 static struct platform_device
*ibmstb4_devs
[] __initdata
= {
119 ibmstb4_platform_add_devices(void)
121 return platform_add_devices(ibmstb4_devs
, ARRAY_SIZE(ibmstb4_devs
));
123 arch_initcall(ibmstb4_platform_add_devices
);