PageRenderTime 18ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/mips/vr4181/osprey/prom.c

https://bitbucket.org/evzijst/gittest
C | 49 lines | 21 code | 5 blank | 23 comment | 0 complexity | dbf8fa1f9e0215e4851145a7da4dcd9f MD5 | raw file
 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
22const char *get_system_type(void)
23{
24	return "NEC_Vr41xx Osprey";
25}
26
27/*
28 * [jsun] right now we assume it is the nec debug monitor, which does
29 * not pass any arguments.
30 */
31void __init prom_init(void)
32{
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 ");
38
39	mips_machgroup = MACH_GROUP_NEC_VR41XX;
40	mips_machtype = MACH_NEC_OSPREY;
41
42	/* 16MB fixed */
43	add_memory_region(0, 16 << 20, BOOT_MEM_RAM);
44}
45
46unsigned long __init prom_free_prom_memory(void)
47{
48	return 0;
49}