3 * Copyright 2000-2001 MontaVista Software Inc.
4 * Completed implementation.
6 * Armin Kuster akuster@mvista.com
8 * Module name: ibm405gp.c
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
19 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
22 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * You should have received a copy of the GNU General Public License along
28 * with this program; if not, write to the Free Software Foundation, Inc.,
29 * 675 Mass Ave, Cambridge, MA 02139, USA.
31 * History: 12/26/2001 - armin
38 * converted to core_ocp[];
41 * added OCP_IRQ_MUL to define EMAC
43 * Remove irq_resource struct.
48 #include <linux/config.h>
49 #include <linux/init.h>
50 #include <linux/smp.h>
51 #include <linux/threads.h>
52 #include <linux/param.h>
53 #include <linux/string.h>
54 #include <platforms/ibm405gp.h>
57 struct ocp_def core_ocp[] = {
58 {UART, UART0_IO_BASE, UART0_INT, IBM_CPM_UART0},
59 {UART, UART1_IO_BASE, UART1_INT, IBM_CPM_UART1},
60 {IIC, IIC0_BASE, IIC0_IRQ, IBM_CPM_IIC0},
61 {GPIO, GPIO0_BASE, OCP_IRQ_NA, IBM_CPM_GPIO0},
62 {PCI, PCIL0_BASE, OCP_IRQ_NA, IBM_CPM_PCI},
63 {OPB, OPB0_BASE, OCP_IRQ_NA, IBM_CPM_OPB},
64 {EMAC, EMAC0_BASE, BL_MAC_ETH0, IBM_CPM_EMAC0},
65 {OCP_NULL_TYPE, 0x0, OCP_IRQ_NA, OCP_CPM_NA},