2 * arch/ubicom32/mach-ip5k/board-ip5160rgw.c
3 * Platform initialization for ip5160rgw board.
5 * (C) Copyright 2009, Ubicom, Inc.
7 * This file is part of the Ubicom32 Linux Kernel Port.
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
23 * Ubicom32 implementation derived from (with many thanks):
28 #include <linux/device.h>
29 #include <linux/platform_device.h>
30 #include <linux/gpio.h>
31 #include <asm/board.h>
32 #include <asm/machdep.h>
35 * Factory Default Button on the board at PXn
36 * TODO: This is just a placeholder and it needs to include proper header files
38 struct ubicom32fdb_platform_data {
43 static struct ubicom32fdb_platform_data ip5160rgw_fdb_data = {
48 static struct platform_device ip5160rgw_fdb_device = {
49 .name = "ubicom32fdb",
52 .platform_data = &ip5160rgw_fdb_data,
57 * List of all devices in our system
59 static struct platform_device *ip5160rgw_devices[] __initdata = {
60 &ip5160rgw_fdb_device,
65 * Called to add the devices which we have on this board
67 static int __init ip5160rgw_init(void)
70 printk(KERN_INFO "%s: registering device resources\n", __FUNCTION__);
71 platform_add_devices(ip5160rgw_devices, ARRAY_SIZE(ip5160rgw_devices));
75 arch_initcall(ip5160rgw_init);