blob: fbb37458ddb27a88736874454dc583a8f7fa0af0 [file] [log] [blame]
Ralf Baechle23fbee92005-07-25 22:45:45 +00001/*
Ralf Baechle23fbee92005-07-25 22:45:45 +00002 * rbtx4938 specific prom routines
3 * Copyright (C) 2000-2001 Toshiba Corporation
4 *
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
8 * or implied.
9 *
10 * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
11 */
12
Ralf Baechle23fbee92005-07-25 22:45:45 +000013#include <linux/init.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000014#include <linux/bootmem.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000015#include <asm/bootinfo.h>
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +090016#include <asm/txx9/generic.h>
17#include <asm/txx9/rbtx4938.h>
Ralf Baechle23fbee92005-07-25 22:45:45 +000018
Atsushi Nemotoedcaf1a2008-07-11 23:27:54 +090019void __init rbtx4938_prom_init(void)
Ralf Baechle23fbee92005-07-25 22:45:45 +000020{
21 extern int tx4938_get_mem_size(void);
22 int msize;
23#ifndef CONFIG_TX4938_NAND_BOOT
24 prom_init_cmdline();
25#endif
Ralf Baechle23fbee92005-07-25 22:45:45 +000026
27 msize = tx4938_get_mem_size();
28 add_memory_region(0, msize << 20, BOOT_MEM_RAM);
Ralf Baechle23fbee92005-07-25 22:45:45 +000029}