diff options
-rw-r--r-- | arch/arm/mach-tegra/board-paz00-pinmux.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-paz00.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-paz00.h | 1 |
3 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-paz00-pinmux.c b/arch/arm/mach-tegra/board-paz00-pinmux.c index 70c57101b0b2..22257697d3ee 100644 --- a/arch/arm/mach-tegra/board-paz00-pinmux.c +++ b/arch/arm/mach-tegra/board-paz00-pinmux.c | |||
@@ -147,6 +147,7 @@ static struct tegra_gpio_table gpio_table[] = { | |||
147 | { .gpio = TEGRA_ULPI_RST, .enable = true }, | 147 | { .gpio = TEGRA_ULPI_RST, .enable = true }, |
148 | { .gpio = TEGRA_WIFI_PWRN, .enable = true }, | 148 | { .gpio = TEGRA_WIFI_PWRN, .enable = true }, |
149 | { .gpio = TEGRA_WIFI_RST, .enable = true }, | 149 | { .gpio = TEGRA_WIFI_RST, .enable = true }, |
150 | { .gpio = TEGRA_WIFI_LED, .enable = true }, | ||
150 | }; | 151 | }; |
151 | 152 | ||
152 | void paz00_pinmux_init(void) | 153 | void paz00_pinmux_init(void) |
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 = { | |||
91 | }, | 91 | }, |
92 | }; | 92 | }; |
93 | 93 | ||
94 | static struct gpio_led gpio_leds[] = { | ||
95 | { | ||
96 | .name = "wifi-led", | ||
97 | .default_trigger = "rfkill0", | ||
98 | .gpio = TEGRA_WIFI_LED, | ||
99 | }, | ||
100 | }; | ||
101 | |||
102 | static struct gpio_led_platform_data gpio_led_info = { | ||
103 | .leds = gpio_leds, | ||
104 | .num_leds = ARRAY_SIZE(gpio_leds), | ||
105 | }; | ||
106 | |||
107 | static struct platform_device leds_gpio = { | ||
108 | .name = "leds-gpio", | ||
109 | .id = -1, | ||
110 | .dev = { | ||
111 | .platform_data = &gpio_led_info, | ||
112 | }, | ||
113 | }; | ||
114 | |||
94 | static struct platform_device *paz00_devices[] __initdata = { | 115 | static struct platform_device *paz00_devices[] __initdata = { |
95 | &debug_uart, | 116 | &debug_uart, |
96 | &tegra_sdhci_device1, | 117 | &tegra_sdhci_device1, |
97 | &tegra_sdhci_device4, | 118 | &tegra_sdhci_device4, |
98 | &wifi_rfkill_device, | 119 | &wifi_rfkill_device, |
120 | &leds_gpio, | ||
99 | }; | 121 | }; |
100 | 122 | ||
101 | static void paz00_i2c_init(void) | 123 | static void paz00_i2c_init(void) |
diff --git a/arch/arm/mach-tegra/board-paz00.h b/arch/arm/mach-tegra/board-paz00.h index e780f30fcf12..86057c3fb9a0 100644 --- a/arch/arm/mach-tegra/board-paz00.h +++ b/arch/arm/mach-tegra/board-paz00.h | |||
@@ -28,6 +28,7 @@ | |||
28 | /* WIFI */ | 28 | /* WIFI */ |
29 | #define TEGRA_WIFI_PWRN TEGRA_GPIO_PK5 | 29 | #define TEGRA_WIFI_PWRN TEGRA_GPIO_PK5 |
30 | #define TEGRA_WIFI_RST TEGRA_GPIO_PD1 | 30 | #define TEGRA_WIFI_RST TEGRA_GPIO_PD1 |
31 | #define TEGRA_WIFI_LED TEGRA_GPIO_PD0 | ||
31 | 32 | ||
32 | void paz00_pinmux_init(void); | 33 | void paz00_pinmux_init(void); |
33 | 34 | ||