1/* 2 * Copyright 2001 MontaVista Software Inc. 3 * Author: jsun@mvista.com or jsun@junsun.net 4 * 5 * arch/mips/vr4181/osprey/prom.c 6 * prom code for osprey. 7 * 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. 12 * 13 */ 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> 21 22char arcs_cmdline[CL_SIZE]; 23 24const char *get_system_type(void) 25{ 26 return "NEC_Vr41xx Osprey"; 27} 28 29/* 30 * [jsun] right now we assume it is the nec debug monitor, which does 31 * not pass any arguments. 32 */ 33void __init prom_init() 34{ 35 strcpy(arcs_cmdline, "ip=bootp "); 36 strcat(arcs_cmdline, "ether=46,0x03fe0300,eth0 "); 37 // strcpy(arcs_cmdline, "ether=0,0x0300,eth0 " 38 // strcat(arcs_cmdline, "video=vr4181fb:xres:240,yres:320,bpp:8 "); 39 40 mips_machgroup = MACH_GROUP_NEC_VR41XX; 41 mips_machtype = MACH_NEC_OSPREY; 42 43 /* 16MB fixed */ 44 add_memory_region(0, 16 << 20, BOOT_MEM_RAM); 45} 46 47void __init prom_free_prom_memory(void) 48{ 49} 50 51void __init prom_fixup_mem_map(unsigned long start, unsigned long end) 52{ 53} 54 55