aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/spitz.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/spitz.c')
-rw-r--r--arch/arm/mach-pxa/spitz.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index 290008296e1b..993a132ff978 100644
--- a/arch/arm/mach-pxa/spitz.c
+++ b/arch/arm/mach-pxa/spitz.c
@@ -20,6 +20,7 @@
20#include <linux/fs.h> 20#include <linux/fs.h>
21#include <linux/interrupt.h> 21#include <linux/interrupt.h>
22#include <linux/gpio.h> 22#include <linux/gpio.h>
23#include <linux/leds.h>
23#include <linux/mmc/host.h> 24#include <linux/mmc/host.h>
24#include <linux/pm.h> 25#include <linux/pm.h>
25#include <linux/backlight.h> 26#include <linux/backlight.h>
@@ -255,9 +256,30 @@ static struct platform_device spitzkbd_device = {
255/* 256/*
256 * Spitz LEDs 257 * Spitz LEDs
257 */ 258 */
259static struct gpio_led spitz_gpio_leds[] = {
260 {
261 .name = "spitz:amber:charge",
262 .default_trigger = "sharpsl-charge",
263 .gpio = SPITZ_GPIO_LED_ORANGE,
264 },
265 {
266 .name = "spitz:green:hddactivity",
267 .default_trigger = "ide-disk",
268 .gpio = SPITZ_GPIO_LED_GREEN,
269 },
270};
271
272static struct gpio_led_platform_data spitz_gpio_leds_info = {
273 .leds = spitz_gpio_leds,
274 .num_leds = ARRAY_SIZE(spitz_gpio_leds),
275};
276
258static struct platform_device spitzled_device = { 277static struct platform_device spitzled_device = {
259 .name = "spitz-led", 278 .name = "leds-gpio",
260 .id = -1, 279 .id = -1,
280 .dev = {
281 .platform_data = &spitz_gpio_leds_info,
282 },
261}; 283};
262 284
263#if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE) 285#if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)