2 * linux/arch/mips/tx4938/toshiba_rbtx4938/prom.c
4 * rbtx4938 specific prom routines
5 * Copyright (C) 2000-2001 Toshiba Corporation
7 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
8 * terms of the GNU General Public License version 2. This program is
9 * licensed "as is" without any warranty of any kind, whether express
12 * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
15 #include <linux/config.h>
16 #include <linux/init.h>
18 #include <linux/sched.h>
19 #include <linux/bootmem.h>
21 #include <asm/addrspace.h>
22 #include <asm/bootinfo.h>
23 #include <asm/tx4938/tx4938.h>
25 void __init
prom_init_cmdline(void)
27 int argc
= (int) fw_arg0
;
28 char **argv
= (char **) fw_arg1
;
31 /* ignore all built-in args if any f/w args given */
36 for (i
= 1; i
< argc
; i
++) {
38 strcat(arcs_cmdline
, " ");
40 strcat(arcs_cmdline
, argv
[i
]);
44 void __init
prom_init(void)
46 extern int tx4938_get_mem_size(void);
48 #ifndef CONFIG_TX4938_NAND_BOOT
51 mips_machgroup
= MACH_GROUP_TOSHIBA
;
52 mips_machtype
= MACH_TOSHIBA_RBTX4938
;
54 msize
= tx4938_get_mem_size();
55 add_memory_region(0, msize
<< 20, BOOT_MEM_RAM
);
60 unsigned long __init
prom_free_prom_memory(void)
65 void __init
prom_fixup_mem_map(unsigned long start
, unsigned long end
)
70 const char *get_system_type(void)
72 return "Toshiba RBTX4938";
75 char * __init
prom_getcmdline(void)
77 return &(arcs_cmdline
[0]);