Linux-2.6.12-rc2
[linux-2.6/next.git] / arch / mips / vr4181 / osprey / prom.c
blobaf0d145616193ebf3f0aed6a086d1b99b321084c
1 /*
2 * Copyright 2001 MontaVista Software Inc.
3 * Author: jsun@mvista.com or jsun@junsun.net
5 * arch/mips/vr4181/osprey/prom.c
6 * prom code for osprey.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
14 #include <linux/init.h>
15 #include <linux/kernel.h>
16 #include <linux/string.h>
17 #include <linux/mm.h>
18 #include <linux/bootmem.h>
19 #include <asm/bootinfo.h>
20 #include <asm/addrspace.h>
22 const char *get_system_type(void)
24 return "NEC_Vr41xx Osprey";
28 * [jsun] right now we assume it is the nec debug monitor, which does
29 * not pass any arguments.
31 void __init prom_init(void)
33 // cmdline is now set in default config
34 // strcpy(arcs_cmdline, "ip=bootp ");
35 // strcat(arcs_cmdline, "ether=46,0x03fe0300,eth0 ");
36 // strcpy(arcs_cmdline, "ether=0,0x0300,eth0 "
37 // strcat(arcs_cmdline, "video=vr4181fb:xres:240,yres:320,bpp:8 ");
39 mips_machgroup = MACH_GROUP_NEC_VR41XX;
40 mips_machtype = MACH_NEC_OSPREY;
42 /* 16MB fixed */
43 add_memory_region(0, 16 << 20, BOOT_MEM_RAM);
46 unsigned long __init prom_free_prom_memory(void)
48 return 0;