aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 53d03e85750a..395638da837c 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -578,6 +578,40 @@ static struct platform_device hdmi_lcdc_device = {
578 }, 578 },
579}; 579};
580 580
581/* LEDS */
582static struct gpio_led gpio_leds[] = {
583 {
584 .name = "LED3",
585 .gpio = 102,
586 .default_state = LEDS_GPIO_DEFSTATE_ON,
587 }, {
588 .name = "LED4",
589 .gpio = 111,
590 .default_state = LEDS_GPIO_DEFSTATE_ON,
591 }, {
592 .name = "LED5",
593 .gpio = 110,
594 .default_state = LEDS_GPIO_DEFSTATE_ON,
595 }, {
596 .name = "LED6",
597 .gpio = 177,
598 .default_state = LEDS_GPIO_DEFSTATE_ON,
599 },
600};
601
602static struct gpio_led_platform_data leds_gpio_info = {
603 .leds = gpio_leds,
604 .num_leds = ARRAY_SIZE(gpio_leds),
605};
606
607static struct platform_device leds_gpio_device = {
608 .name = "leds-gpio",
609 .id = -1,
610 .dev = {
611 .platform_data = &leds_gpio_info,
612 },
613};
614
581/* GPIO KEY */ 615/* GPIO KEY */
582#define GPIO_KEY(c, g, d, ...) \ 616#define GPIO_KEY(c, g, d, ...) \
583 { .code = c, .gpio = g, .desc = d, .active_low = 1, __VA_ARGS__ } 617 { .code = c, .gpio = g, .desc = d, .active_low = 1, __VA_ARGS__ }
@@ -1069,6 +1103,7 @@ static struct platform_device *eva_devices[] __initdata = {
1069 &lcdc0_device, 1103 &lcdc0_device,
1070 &pwm_device, 1104 &pwm_device,
1071 &pwm_backlight_device, 1105 &pwm_backlight_device,
1106 &leds_gpio_device,
1072 &gpio_keys_device, 1107 &gpio_keys_device,
1073 &sh_eth_device, 1108 &sh_eth_device,
1074 &vcc_sdhi0, 1109 &vcc_sdhi0,