OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips/] [vr41xx/] [nec-eagle/] [init.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
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
 
48
char arcs_cmdline[CL_SIZE];
49
 
50
const char *get_system_type(void)
51
{
52
        return "NEC Eagle/Hawk";
53
}
54
 
55
void __init prom_init(int argc, char **argv, unsigned long magic, int *prom_vec)
56
{
57
        int i;
58
 
59
        /*
60
         * collect args and prepare cmd_line
61
         */
62
        for (i = 1; i < argc; i++) {
63
                strcat(arcs_cmdline, argv[i]);
64
                if (i < (argc - 1))
65
                        strcat(arcs_cmdline, " ");
66
        }
67
 
68
        mips_machgroup = MACH_GROUP_NEC_VR41XX;
69
        mips_machtype = MACH_NEC_EAGLE;
70
}
71
 
72
void __init prom_free_prom_memory (void)
73
{
74
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.