use /etc/preinit on atheros-2.6
[openwrt-10.03/.git] / target / linux / atheros-2.6 / files / arch / mips / atheros / prom.c
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright MontaVista Software Inc
7  * Copyright (C) 2003 Atheros Communications, Inc.,  All Rights Reserved.
8  * Copyright (C) 2006 FON Technology, SL.
9  * Copyright (C) 2006 Imre Kaloz <kaloz@openwrt.org>
10  * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
11  */
12
13 /*
14  * Prom setup file for ar531x
15  */
16
17 #include <linux/init.h>
18 #include <linux/autoconf.h>
19 #include <linux/kernel.h>
20 #include <linux/string.h>
21 #include <linux/mm.h>
22 #include <linux/bootmem.h>
23
24 #include <asm/bootinfo.h>
25 #include <asm/addrspace.h>
26 #include "ar531x.h"
27
28 void __init prom_init(void)
29 {
30
31         mips_machgroup = MACH_GROUP_ATHEROS;
32         mips_machtype = -1;
33
34         DO_AR5312(ar5312_prom_init();)
35         DO_AR5315(ar5315_prom_init();)
36
37         strcpy(arcs_cmdline, "console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit");
38 }
39
40 void __init prom_free_prom_memory(void)
41 {
42 }