ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / mips / vr41xx / common / init.c
1 /*
2  *  init.c, Common initialization routines for NEC VR4100 series.
3  *
4  *  Copyright (C) 2003-2004  Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 #include <linux/init.h>
21 #include <linux/ioport.h>
22 #include <linux/string.h>
23
24 #include <asm/bootinfo.h>
25 #include <asm/vr41xx/vr41xx.h>
26
27 extern void vr41xx_bcu_init(void);
28 extern void vr41xx_cmu_init(void);
29 extern void vr41xx_pmu_init(void);
30 extern void vr41xx_rtc_init(void);
31
32 void __init prom_init(void)
33 {
34         int argc, i;
35         char **argv;
36
37         argc = fw_arg0;
38         argv = (char **)fw_arg1;
39
40         for (i = 1; i < argc; i++) {
41                 strcat(arcs_cmdline, argv[i]);
42                 if (i < (argc - 1))
43                         strcat(arcs_cmdline, " ");
44         }
45
46         iomem_resource.start = IO_MEM_RESOURCE_START;
47         iomem_resource.end = IO_MEM_RESOURCE_END;
48
49         vr41xx_bcu_init();
50         vr41xx_cmu_init();
51         vr41xx_pmu_init();
52         vr41xx_rtc_init();
53 }
54
55 unsigned long __init prom_free_prom_memory (void)
56 {
57         return 0UL;
58 }