timerfd: wire the new timerfd API to the x86 family
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / mach-rdc321x / platform.c
blobdda6024a58629ca2f9cf4bf21b523d4e8972eb4c
1 /*
2 * Generic RDC321x platform devices
4 * Copyright (C) 2007 Florian Fainelli <florian@openwrt.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 #include <linux/init.h>
24 #include <linux/kernel.h>
25 #include <linux/list.h>
26 #include <linux/device.h>
27 #include <linux/platform_device.h>
28 #include <linux/version.h>
29 #include <linux/leds.h>
31 #include <asm/gpio.h>
33 /* LEDS */
34 static struct gpio_led default_leds[] = {
35 { .name = "rdc:dmz", .gpio = 1, },
38 static struct gpio_led_platform_data rdc321x_led_data = {
39 .num_leds = ARRAY_SIZE(default_leds),
40 .leds = default_leds,
43 static struct platform_device rdc321x_leds = {
44 .name = "leds-gpio",
45 .id = -1,
46 .dev = {
47 .platform_data = &rdc321x_led_data,
51 /* Watchdog */
52 static struct platform_device rdc321x_wdt = {
53 .name = "rdc321x-wdt",
54 .id = -1,
55 .num_resources = 0,
58 static struct platform_device *rdc321x_devs[] = {
59 &rdc321x_leds,
60 &rdc321x_wdt
63 static int __init rdc_board_setup(void)
65 return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs));
68 arch_initcall(rdc_board_setup);