Commit 8e219ebf authored by Marc Dietrich's avatar Marc Dietrich Committed by Olof Johansson

ARM: tegra: paz00: enable wifi led

This adds support for the wifi led. It is automaticly triggered by
the rfkill0 event.
Signed-off-by: default avatarMarc Dietrich <marvin24@gmx.de>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 9aaa15a7
...@@ -147,6 +147,7 @@ static struct tegra_gpio_table gpio_table[] = { ...@@ -147,6 +147,7 @@ static struct tegra_gpio_table gpio_table[] = {
{ .gpio = TEGRA_ULPI_RST, .enable = true }, { .gpio = TEGRA_ULPI_RST, .enable = true },
{ .gpio = TEGRA_WIFI_PWRN, .enable = true }, { .gpio = TEGRA_WIFI_PWRN, .enable = true },
{ .gpio = TEGRA_WIFI_RST, .enable = true }, { .gpio = TEGRA_WIFI_RST, .enable = true },
{ .gpio = TEGRA_WIFI_LED, .enable = true },
}; };
void paz00_pinmux_init(void) void paz00_pinmux_init(void)
......
...@@ -91,11 +91,33 @@ static struct platform_device wifi_rfkill_device = { ...@@ -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 = { static struct platform_device *paz00_devices[] __initdata = {
&debug_uart, &debug_uart,
&tegra_sdhci_device1, &tegra_sdhci_device1,
&tegra_sdhci_device4, &tegra_sdhci_device4,
&wifi_rfkill_device, &wifi_rfkill_device,
&leds_gpio,
}; };
static void paz00_i2c_init(void) static void paz00_i2c_init(void)
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
/* WIFI */ /* WIFI */
#define TEGRA_WIFI_PWRN TEGRA_GPIO_PK5 #define TEGRA_WIFI_PWRN TEGRA_GPIO_PK5
#define TEGRA_WIFI_RST TEGRA_GPIO_PD1 #define TEGRA_WIFI_RST TEGRA_GPIO_PD1
#define TEGRA_WIFI_LED TEGRA_GPIO_PD0
void paz00_pinmux_init(void); void paz00_pinmux_init(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment