summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/hx4700.c
diff options
context:
space:
mode:
authorPaul Parsons2011-06-22 21:31:49 +0200
committerHaojian Zhuang2012-02-28 03:20:49 +0100
commit91cb8ee33ffb19ae94220f79e34d1918c57a915e (patch)
tree505e8a7466412a885f7047f3191a64c14a9df7a8 /arch/arm/mach-pxa/hx4700.c
parentpxa/hx4700: Correct StrataFlash block size discovery (diff)
downloadkernel-qcow2-linux-91cb8ee33ffb19ae94220f79e34d1918c57a915e.tar.gz
kernel-qcow2-linux-91cb8ee33ffb19ae94220f79e34d1918c57a915e.tar.xz
kernel-qcow2-linux-91cb8ee33ffb19ae94220f79e34d1918c57a915e.zip
pxa/hx4700: Add ASIC3 LED support
Add LED support for the HTC ASIC3. Underlying support is provided by the mfd/asic3 and leds/leds-asic3 drivers. An example configuration is provided by the pxa/hx4700 platform. Signed-off-by: Paul Parsons <lost.distance@yahoo.com> Acked-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/hx4700.c')
-rw-r--r--arch/arm/mach-pxa/hx4700.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index de877a9d3e4c..f038da1e4196 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/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 = {