summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/board-paz00.c
diff options
context:
space:
mode:
authorMarc Dietrich <marvin24@gmx.de>2011-08-07 21:00:53 +0200
committerOlof Johansson <olof@lixom.net>2011-08-09 12:07:40 -0700
commit8e219ebfa0e3f5d99f01cc57c6b84023343ff22a (patch)
tree8026ae1871073b5a4b75d9ee98c0257ff773d377 /arch/arm/mach-tegra/board-paz00.c
parent9aaa15a739a0a3880922a850573493daa4ee4bcc (diff)
downloadblackbird-op-linux-8e219ebfa0e3f5d99f01cc57c6b84023343ff22a.tar.gz
blackbird-op-linux-8e219ebfa0e3f5d99f01cc57c6b84023343ff22a.zip
ARM: tegra: paz00: enable wifi led
This adds support for the wifi led. It is automaticly triggered by the rfkill0 event. Signed-off-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/board-paz00.c')
-rw-r--r--arch/arm/mach-tegra/board-paz00.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c
index 6b798e760931..45111f6a5ced 100644
--- a/arch/arm/mach-tegra/board-paz00.c
+++ b/arch/arm/mach-tegra/board-paz00.c
@@ -91,11 +91,33 @@ static struct platform_device wifi_rfkill_device = {
},
};
+static struct gpio_led gpio_leds[] = {
+ {
+ .name = "wifi-led",
+ .default_trigger = "rfkill0",
+ .gpio = TEGRA_WIFI_LED,
+ },
+};
+
+static struct gpio_led_platform_data gpio_led_info = {
+ .leds = gpio_leds,
+ .num_leds = ARRAY_SIZE(gpio_leds),
+};
+
+static struct platform_device leds_gpio = {
+ .name = "leds-gpio",
+ .id = -1,
+ .dev = {
+ .platform_data = &gpio_led_info,
+ },
+};
+
static struct platform_device *paz00_devices[] __initdata = {
&debug_uart,
&tegra_sdhci_device1,
&tegra_sdhci_device4,
&wifi_rfkill_device,
+ &leds_gpio,
};
static void paz00_i2c_init(void)
OpenPOWER on IntegriCloud