2 * arch/mips/vr41xx/nec-eagle/setup.c
4 * Setup for the NEC Eagle/Hawk board.
6 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com>
8 * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under
9 * the terms of the GNU General Public License version 2. This program
10 * is licensed "as is" without any warranty of any kind, whether express
13 #include <linux/config.h>
14 #include <linux/ioport.h>
17 #include <asm/pci_channel.h>
18 #include <asm/vr41xx/eagle.h>
22 extern void vrc4173_preinit(void);
24 static struct resource vr41xx_pci_io_resource = {
31 static struct resource vr41xx_pci_mem_resource = {
38 extern struct pci_ops vr41xx_pci_ops;
40 struct pci_controller vr41xx_controller = {
41 .pci_ops = &vr41xx_pci_ops,
42 .io_resource = &vr41xx_pci_io_resource,
43 .mem_resource = &vr41xx_pci_mem_resource,
46 struct vr41xx_pci_address_space vr41xx_pci_mem1 = {
49 IO_MEM1_RESOURCE_START
52 struct vr41xx_pci_address_space vr41xx_pci_mem2 = {
55 IO_MEM2_RESOURCE_START
58 struct vr41xx_pci_address_space vr41xx_pci_io = {
61 IO_PORT_RESOURCE_START
64 static struct vr41xx_pci_address_map pci_address_map = {
71 const char *get_system_type(void)
73 return "NEC SDB-VR4122/VR4131(Eagle/Hawk)";
76 static int nec_eagle_setup(void)
78 set_io_port_base(IO_PORT_BASE);
79 ioport_resource.start = IO_PORT_RESOURCE_START;
80 ioport_resource.end = IO_PORT_RESOURCE_END;
82 #ifdef CONFIG_SERIAL_8250
83 vr41xx_select_siu_interface(SIU_RS232C, IRDA_NONE);
89 vr41xx_pciu_init(&pci_address_map);
97 early_initcall(nec_eagle_setup);