add gpio support to atheros, fixes #1861, thanks Othello
[openwrt/svn-archive/archive.git] / target / linux / atheros / 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 char **argv;
31
32 mips_machtype = -1;
33
34 DO_AR5312(ar5312_prom_init();)
35 DO_AR5315(ar5315_prom_init();)
36 #if 0
37 argv = (char **)fw_arg1;
38 /* RedBoot desired command line is argv[1] */
39 strcat(arcs_cmdline, argv[1]);
40 #endif
41 }
42
43 void __init prom_free_prom_memory(void)
44 {
45 }