2 * rbtx4938 specific prom routines
3 * Copyright (C) 2000-2001 Toshiba Corporation
5 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
6 * terms of the GNU General Public License version 2. This program is
7 * licensed "as is" without any warranty of any kind, whether express
10 * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
13 #include <linux/init.h>
15 #include <linux/sched.h>
16 #include <linux/bootmem.h>
18 #include <asm/addrspace.h>
19 #include <asm/bootinfo.h>
20 #include <asm/txx9/tx4938.h>
22 void __init prom_init_cmdline(void)
24 int argc = (int) fw_arg0;
25 char **argv = (char **) fw_arg1;
28 /* ignore all built-in args if any f/w args given */
33 for (i = 1; i < argc; i++) {
35 strcat(arcs_cmdline, " ");
37 strcat(arcs_cmdline, argv[i]);
41 void __init prom_init(void)
43 extern int tx4938_get_mem_size(void);
45 #ifndef CONFIG_TX4938_NAND_BOOT
49 msize = tx4938_get_mem_size();
50 add_memory_region(0, msize << 20, BOOT_MEM_RAM);
55 void __init prom_free_prom_memory(void)
59 void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
64 const char *get_system_type(void)
66 return "Toshiba RBTX4938";
69 char * __init prom_getcmdline(void)
71 return &(arcs_cmdline[0]);