From 3e59ba557fcb5197695d4f8fd43524d5ee6fb9b9 Mon Sep 17 00:00:00 2001 From: Paul Parsons Date: Wed, 22 Jun 2011 19:31:49 +0000 Subject: [PATCH] --- yaml --- r: 295889 b: refs/heads/master c: 91cb8ee33ffb19ae94220f79e34d1918c57a915e h: refs/heads/master i: 295887: e93522b2150d55d47b16da7d96de868bd91cf207 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/hx4700.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index eba5a3eeae4c..c896d2becf77 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 11407e5713ad85f416705a1ba0daf490ffaeda42 +refs/heads/master: 91cb8ee33ffb19ae94220f79e34d1918c57a915e diff --git a/trunk/arch/arm/mach-pxa/hx4700.c b/trunk/arch/arm/mach-pxa/hx4700.c index de877a9d3e4c..f038da1e4196 100644 --- a/trunk/arch/arm/mach-pxa/hx4700.c +++ b/trunk/arch/arm/mach-pxa/hx4700.c @@ -244,6 +244,21 @@ static u16 asic3_gpio_config[] = { ASIC3_GPIOD15_nPIOW, }; +static struct asic3_led asic3_leds[ASIC3_NUM_LEDS] = { + [0] = { + .name = "hx4700:amber", + .default_trigger = "ds2760-battery.0-charging-blink-full-solid", + }, + [1] = { + .name = "hx4700:green", + .default_trigger = "unused", + }, + [2] = { + .name = "hx4700:blue", + .default_trigger = "hx4700-radio", + }, +}; + static struct resource asic3_resources[] = { /* GPIO part */ [0] = { @@ -274,6 +289,7 @@ static struct asic3_platform_data asic3_platform_data = { .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), .irq_base = IRQ_BOARD_START, .gpio_base = HX4700_ASIC3_GPIO_BASE, + .leds = asic3_leds, }; static struct platform_device asic3 = {