2 * arch/mips/vr41xx/nec-cmbvr4133/setup.c
4 * Setup for the NEC CMB-VR4133.
6 * Author: Yoichi Yuasa <yyuasa@mvista.com, or source@mvista.com> and
7 * Alex Sapkov <asapkov@ru.mvista.com>
9 * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under
10 * the terms of the GNU General Public License version 2. This program
11 * is licensed "as is" without any warranty of any kind, whether express
14 * Support for CMBVR4133 board in 2.6
15 * Author: Manish Lachwani (mlachwani@mvista.com)
17 #include <linux/config.h>
18 #include <linux/init.h>
19 #include <linux/ide.h>
20 #include <linux/ioport.h>
22 #include <asm/reboot.h>
24 #include <asm/vr41xx/cmbvr4133.h>
25 #include <asm/bootinfo.h>
28 #include <linux/mtd/physmap.h>
29 #include <linux/mtd/partitions.h>
30 #include <linux/mtd/mtd.h>
31 #include <linux/mtd/map.h>
33 static struct mtd_partition cmbvr4133_mtd_parts[] = {
43 .offset = MTDPART_OFS_APPEND,
44 .mask_flags = MTD_WRITEABLE, /* force read-only */
48 .size = MTDPART_SIZ_FULL,
49 .offset = MTDPART_OFS_APPEND,
54 #define number_partitions (sizeof(cmbvr4133_mtd_parts)/sizeof(struct mtd_partition))
57 extern void i8259_init(void);
59 static void __init nec_cmbvr4133_setup(void)
61 #ifdef CONFIG_ROCKHOPPER
62 extern void disable_pcnet(void);
66 set_io_port_base(KSEG1ADDR(0x16000000));
68 mips_machgroup = MACH_GROUP_NEC_VR41XX;
69 mips_machtype = MACH_NEC_CMBVR4133;
72 #ifdef CONFIG_ROCKHOPPER
77 #ifdef CONFIG_ROCKHOPPER
78 rockhopper_init_irq();
82 /* we use generic physmap mapping driver and we use partitions */
83 physmap_configure(0x1C000000, 0x02000000, 4, NULL);
84 physmap_set_partitions(cmbvr4133_mtd_parts, number_partitions);
87 /* 128 MB memory support */
88 add_memory_region(0, 0x08000000, BOOT_MEM_RAM);
90 #ifdef CONFIG_ROCKHOPPER