diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2012-07-23 20:55:38 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2012-07-23 20:55:38 +0400 |
commit | b89231acce88b127f4fdc47cc8b92dbf7772fe5f (patch) | |
tree | c515dc208591646a3ab8afd3e0e69be646201bbb | |
parent | 6ae93325a4f1d5399a01f8f48340b3c35c6ef4af (diff) | |
parent | 85b18afe1de0ab375101e33827167b2a7a11a5b2 (diff) |
Merge branch 'tracking-samslt-led' into merge-linux-linaro
-rw-r--r-- | arch/arm/mach-exynos/mach-origen.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index ae82c5f69591..8b19d8126b40 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -9,6 +9,7 @@ */ #include <linux/serial_core.h> +#include <linux/leds.h> #include <linux/gpio.h> #include <linux/mmc/host.h> #include <linux/platform_device.h> @@ -498,6 +499,34 @@ static void __init origen_ohci_init(void) exynos4_ohci_set_platdata(pdata); } +static struct gpio_led origen_gpio_leds[] = { + { + .name = "origen::status1", + .default_trigger = "heartbeat", + .gpio = EXYNOS4_GPX1(3), + .active_low = 1, + }, + { + .name = "origen::status2", + .default_trigger = "mmc0", + .gpio = EXYNOS4_GPX1(4), + .active_low = 1, + }, +}; + +static struct gpio_led_platform_data origen_gpio_led_info = { + .leds = origen_gpio_leds, + .num_leds = ARRAY_SIZE(origen_gpio_leds), +}; + +static struct platform_device origen_leds_gpio = { + .name = "leds-gpio", + .id = -1, + .dev = { + .platform_data = &origen_gpio_led_info, + }, +}; + static struct gpio_keys_button origen_gpio_keys_table[] = { { .code = KEY_MENU, @@ -679,6 +708,7 @@ static struct platform_device *origen_devices[] __initdata = { &exynos4_device_ohci, &origen_device_gpiokeys, &origen_lcd_hv070wsa, + &origen_leds_gpio, &origen_device_bluetooth, &exynos4_device_tmu, }; |