xref: /OK3568_Linux_fs/kernel/arch/mips/txx9/rbtx4927/prom.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * rbtx4927 specific prom routines
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Author: MontaVista Software, Inc.
5*4882a593Smuzhiyun  *	   source@mvista.com
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Copyright 2001-2002 MontaVista Software Inc.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * Copyright (C) 2004 MontaVista Software Inc.
10*4882a593Smuzhiyun  * Author: Manish Lachwani, mlachwani@mvista.com
11*4882a593Smuzhiyun  *
12*4882a593Smuzhiyun  *  This program is free software; you can redistribute it and/or modify it
13*4882a593Smuzhiyun  *  under the terms of the GNU General Public License as published by the
14*4882a593Smuzhiyun  *  Free Software Foundation; either version 2 of the License, or (at your
15*4882a593Smuzhiyun  *  option) any later version.
16*4882a593Smuzhiyun  *
17*4882a593Smuzhiyun  *  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
18*4882a593Smuzhiyun  *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19*4882a593Smuzhiyun  *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20*4882a593Smuzhiyun  *  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21*4882a593Smuzhiyun  *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22*4882a593Smuzhiyun  *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
23*4882a593Smuzhiyun  *  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24*4882a593Smuzhiyun  *  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
25*4882a593Smuzhiyun  *  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
26*4882a593Smuzhiyun  *  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27*4882a593Smuzhiyun  *
28*4882a593Smuzhiyun  *  You should have received a copy of the GNU General Public License along
29*4882a593Smuzhiyun  *  with this program; if not, write to the Free Software Foundation, Inc.,
30*4882a593Smuzhiyun  *  675 Mass Ave, Cambridge, MA 02139, USA.
31*4882a593Smuzhiyun  */
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #include <linux/init.h>
34*4882a593Smuzhiyun #include <linux/memblock.h>
35*4882a593Smuzhiyun #include <asm/txx9/generic.h>
36*4882a593Smuzhiyun #include <asm/txx9/rbtx4927.h>
37*4882a593Smuzhiyun 
rbtx4927_prom_init(void)38*4882a593Smuzhiyun void __init rbtx4927_prom_init(void)
39*4882a593Smuzhiyun {
40*4882a593Smuzhiyun 	memblock_add(0, tx4927_get_mem_size());
41*4882a593Smuzhiyun 	txx9_sio_putchar_init(TX4927_SIO_REG(0) & 0xfffffffffULL);
42*4882a593Smuzhiyun }
43