1/* 2 * FILE NAME 3 * arch/mips/vr41xx/nec-eagle/init.c 4 * 5 * BRIEF MODULE DESCRIPTION 6 * Initialisation code for the NEC Eagle/Hawk board. 7 * 8 * Author: Yoichi Yuasa 9 * yyuasa@mvista.com or source@mvista.com 10 * 11 * Copyright 2001,2002 MontaVista Software Inc. 12 * 13 * This program is free software; you can redistribute it and/or modify it 14 * under the terms of the GNU General Public License as published by the 15 * Free Software Foundation; either version 2 of the License, or (at your 16 * option) any later version. 17 * 18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED 19 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 20 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 24 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 27 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * You should have received a copy of the GNU General Public License along 30 * with this program; if not, write to the Free Software Foundation, Inc., 31 * 675 Mass Ave, Cambridge, MA 02139, USA. 32 */ 33/* 34 * Changes: 35 * MontaVista Software Inc. <yyuasa@mvista.com> or <source@mvista.com> 36 * - Added support for NEC Hawk. 37 * 38 * MontaVista Software Inc. <yyuasa@mvista.com> or <source@mvista.com> 39 * - New creation, NEC Eagle is supported. 40 */ 41#include <linux/config.h> 42#include <linux/init.h> 43#include <linux/kernel.h> 44#include <linux/string.h> 45 46#include <asm/bootinfo.h> 47 48char arcs_cmdline[CL_SIZE]; 49 50const char *get_system_type(void) 51{ 52 return "NEC Eagle/Hawk"; 53} 54 55void __init bus_error_init(void) 56{ 57} 58 59void __init prom_init(int argc, char **argv, unsigned long magic, int *prom_vec) 60{ 61 int i; 62 63 /* 64 * collect args and prepare cmd_line 65 */ 66 for (i = 1; i < argc; i++) { 67 strcat(arcs_cmdline, argv[i]); 68 if (i < (argc - 1)) 69 strcat(arcs_cmdline, " "); 70 } 71 72 mips_machgroup = MACH_GROUP_NEC_VR41XX; 73 mips_machtype = MACH_NEC_EAGLE; 74} 75 76void __init prom_free_prom_memory (void) 77{ 78} 79