xref: /OK3568_Linux_fs/kernel/arch/mips/txx9/rbtx4938/prom.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * rbtx4938 specific prom routines
3*4882a593Smuzhiyun  * Copyright (C) 2000-2001 Toshiba Corporation
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
6*4882a593Smuzhiyun  * terms of the GNU General Public License version 2. This program is
7*4882a593Smuzhiyun  * licensed "as is" without any warranty of any kind, whether express
8*4882a593Smuzhiyun  * or implied.
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <linux/init.h>
14*4882a593Smuzhiyun #include <linux/memblock.h>
15*4882a593Smuzhiyun #include <asm/txx9/generic.h>
16*4882a593Smuzhiyun #include <asm/txx9/rbtx4938.h>
17*4882a593Smuzhiyun 
rbtx4938_prom_init(void)18*4882a593Smuzhiyun void __init rbtx4938_prom_init(void)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	memblock_add(0, tx4938_get_mem_size());
21*4882a593Smuzhiyun 	txx9_sio_putchar_init(TX4938_SIO_REG(0) & 0xfffffffffULL);
22*4882a593Smuzhiyun }
23