Commit 91cb8ee3 authored by Paul Parsons's avatar Paul Parsons Committed by Haojian Zhuang

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: default avatarPaul Parsons <lost.distance@yahoo.com>
Acked-by: default avatarPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
parent 11407e57
...@@ -244,6 +244,21 @@ static u16 asic3_gpio_config[] = { ...@@ -244,6 +244,21 @@ static u16 asic3_gpio_config[] = {
ASIC3_GPIOD15_nPIOW, 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[] = { static struct resource asic3_resources[] = {
/* GPIO part */ /* GPIO part */
[0] = { [0] = {
...@@ -274,6 +289,7 @@ static struct asic3_platform_data asic3_platform_data = { ...@@ -274,6 +289,7 @@ static struct asic3_platform_data asic3_platform_data = {
.gpio_config_num = ARRAY_SIZE(asic3_gpio_config), .gpio_config_num = ARRAY_SIZE(asic3_gpio_config),
.irq_base = IRQ_BOARD_START, .irq_base = IRQ_BOARD_START,
.gpio_base = HX4700_ASIC3_GPIO_BASE, .gpio_base = HX4700_ASIC3_GPIO_BASE,
.leds = asic3_leds,
}; };
static struct platform_device asic3 = { static struct platform_device asic3 = {
......
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