/*1* BRIEF MODULE DESCRIPTION2* PROM library initialisation code, assuming a version of3* pmon is the boot code.4*5* Copyright 2001 MontaVista Software Inc.6* Author: MontaVista Software, Inc.7* [email protected]8*9* Based on arch/mips/au1000/common/prom.c10*11* This file was derived from Carsten Langgaard's12* arch/mips/mips-boards/xx files.13*14* Carsten Langgaard, [email protected]15* Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.16*17* This program is free software; you can redistribute it and/or modify it18* under the terms of the GNU General Public License as published by the19* Free Software Foundation; either version 2 of the License, or (at your20* option) any later version.21*22* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED23* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF24* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN25* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,26* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT27* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF28* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON29* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT30* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF31* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32*33* You should have received a copy of the GNU General Public License along34* with this program; if not, write to the Free Software Foundation, Inc.,35* 675 Mass Ave, Cambridge, MA 02139, USA.36*/37#include <linux/init.h>38#include <linux/kernel.h>39#include <asm/bootinfo.h>40#include <asm/txx9/generic.h>41#include <asm/txx9/jmr3927.h>4243void __init jmr3927_prom_init(void)44{45/* CCFG */46if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0)47printk(KERN_ERR "TX3927 TLB off\n");4849add_memory_region(0, JMR3927_SDRAM_SIZE, BOOT_MEM_RAM);50txx9_sio_putchar_init(TX3927_SIO_REG(1));51}525354