[adm5120] restore support for Infineon's EASY 5120 boards
[openwrt.git] / target / linux / adm5120-2.6 / files / arch / mips / adm5120 / boards / generic.c
1 /*
2 * $Id$
3 *
4 * Generic ADM5120 based board
5 *
6 * Copyright (C) 2007 OpenWrt.org
7 * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
23 *
24 */
25
26 #include <linux/kernel.h>
27 #include <linux/init.h>
28
29 #include <asm/bootinfo.h>
30 #include <asm/gpio.h>
31
32 #include <asm/mach-adm5120/adm5120_board.h>
33 #include <asm/mach-adm5120/adm5120_platform.h>
34
35 static struct platform_device *generic_devices[] __initdata = {
36 &adm5120_flash0_device,
37 };
38
39 static struct adm5120_board generic_board __initdata = {
40 .mach_type = MACH_ADM5120_GENERIC,
41 .name = "Generic ADM5120 board",
42 .num_eth_ports = 6,
43 .num_devices = ARRAY_SIZE(generic_devices),
44 .devices = generic_devices,
45 };
46
47 static int __init register_boards(void)
48 {
49 adm5120_board_register(&generic_board);
50 return 0;
51 }
52
53 pure_initcall(register_boards);
This page took 0.056456 seconds and 5 git commands to generate.