import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / mips / baget / prom / init.c
1 /*
2  * init.c: PROM library initialisation code.
3  *
4  * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov
5  */
6 #include <linux/init.h>
7 #include <asm/addrspace.h>
8 #include <asm/bootinfo.h>
9
10 char arcs_cmdline[CL_SIZE];
11
12 const char *get_system_type(void)
13 {
14         /* Should probably return one of "BT23-201", "BT23-202" */
15         return "Baget";
16 }
17
18 void __init prom_init(unsigned int mem_upper)
19 {
20         mem_upper = PHYSADDR(mem_upper);
21
22         mips_machgroup  = MACH_GROUP_UNKNOWN;
23         mips_machtype   = MACH_UNKNOWN;
24         arcs_cmdline[0] = 0;
25
26         vac_memory_upper = mem_upper;
27
28         add_memory_region(0, mem_upper, BOOT_MEM_RAM);
29 }
30
31 void prom_free_prom_memory (void)
32 {
33 }