ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.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 const char *get_system_type(void)
11 {
12         /* Should probably return one of "BT23-201", "BT23-202" */
13         return "Baget";
14 }
15
16 void __init prom_init(void)
17 {
18         mem_upper = PHYSADDR(fw_arg0);
19
20         mips_machgroup  = MACH_GROUP_UNKNOWN;
21         mips_machtype   = MACH_UNKNOWN;
22         arcs_cmdline[0] = 0;
23
24         vac_memory_upper = mem_upper;
25
26         add_memory_region(0, mem_upper, BOOT_MEM_RAM);
27 }
28
29 unsigned long __init prom_free_prom_memory(void)
30 {
31         return 0;
32 }