2 * arch/ppc/platforms/4xx/ibm440sp.c
4 * PPC440SP I/O descriptions
6 * Matt Porter <mporter@kernel.crashing.org>
7 * Copyright 2002-2005 MontaVista Software Inc.
9 * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
10 * Copyright (c) 2003, 2004 Zultys Technologies
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version.
18 #include <linux/init.h>
19 #include <linux/module.h>
20 #include <platforms/4xx/ibm440sp.h>
23 static struct ocp_func_emac_data ibm440sp_emac0_def = {
24 .rgmii_idx = -1, /* No RGMII */
25 .rgmii_mux = -1, /* No RGMII */
26 .zmii_idx = -1, /* No ZMII */
27 .zmii_mux = -1, /* No ZMII */
28 .mal_idx = 0, /* MAL device index */
29 .mal_rx_chan = 0, /* MAL rx channel number */
30 .mal_tx_chan = 0, /* MAL tx channel number */
31 .wol_irq = 61, /* WOL interrupt number */
32 .mdio_idx = -1, /* No shared MDIO */
33 .tah_idx = -1, /* No TAH */
34 .jumbo = 1, /* Jumbo frames supported */
38 static struct ocp_func_mal_data ibm440sp_mal0_def = {
39 .num_tx_chans = 1, /* Number of TX channels */
40 .num_rx_chans = 1, /* Number of RX channels */
41 .txeob_irq = 38, /* TX End Of Buffer IRQ */
42 .rxeob_irq = 39, /* RX End Of Buffer IRQ */
43 .txde_irq = 34, /* TX Descriptor Error IRQ */
44 .rxde_irq = 35, /* RX Descriptor Error IRQ */
45 .serr_irq = 33, /* MAL System Error IRQ */
46 .dcr_base = DCRN_MAL_BASE /* MAL0_CFG DCR number */
50 static struct ocp_func_iic_data ibm440sp_iic0_def = {
51 .fast_mode = 0, /* Use standad mode (100Khz) */
54 static struct ocp_func_iic_data ibm440sp_iic1_def = {
55 .fast_mode = 0, /* Use standad mode (100Khz) */
59 struct ocp_def core_ocp[] = {
60 { .vendor = OCP_VENDOR_IBM,
61 .function = OCP_FUNC_OPB,
63 .paddr = 0x0000000140000000ULL,
67 { .vendor = OCP_VENDOR_IBM,
68 .function = OCP_FUNC_16550,
70 .paddr = PPC440SP_UART0_ADDR,
74 { .vendor = OCP_VENDOR_IBM,
75 .function = OCP_FUNC_16550,
77 .paddr = PPC440SP_UART1_ADDR,
81 { .vendor = OCP_VENDOR_IBM,
82 .function = OCP_FUNC_16550,
84 .paddr = PPC440SP_UART2_ADDR,
88 { .vendor = OCP_VENDOR_IBM,
89 .function = OCP_FUNC_IIC,
91 .paddr = 0x00000001f0000400ULL,
94 .additions = &ibm440sp_iic0_def,
95 .show = &ocp_show_iic_data
97 { .vendor = OCP_VENDOR_IBM,
98 .function = OCP_FUNC_IIC,
100 .paddr = 0x00000001f0000500ULL,
103 .additions = &ibm440sp_iic1_def,
104 .show = &ocp_show_iic_data
106 { .vendor = OCP_VENDOR_IBM,
107 .function = OCP_FUNC_GPIO,
109 .paddr = 0x00000001f0000700ULL,
113 { .vendor = OCP_VENDOR_IBM,
114 .function = OCP_FUNC_MAL,
115 .paddr = OCP_PADDR_NA,
118 .additions = &ibm440sp_mal0_def,
119 .show = &ocp_show_mal_data,
121 { .vendor = OCP_VENDOR_IBM,
122 .function = OCP_FUNC_EMAC,
124 .paddr = 0x00000001f0000800ULL,
127 .additions = &ibm440sp_emac0_def,
128 .show = &ocp_show_emac_data,
130 { .vendor = OCP_VENDOR_INVALID