From: Robin Becker Date: Sat, 12 Mar 2011 15:32:45 +0000 (+0000) Subject: arm: mach-kirkwood: add led in sheevaplug-setup.c X-Git-Tag: v2.6.39-rc2~40^2~5^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7780c803bd103895a9c1c9a3c91db5b45c66e367;p=karo-tx-linux.git arm: mach-kirkwood: add led in sheevaplug-setup.c This patch adds a second, red, led for the standard sheevaplug. The sheeva_esata mpp config is left unchanged. Tested on a standard sheevaplug Signed-off-by: Robin Becker Acked-by: Peter Korsgaard Signed-off-by: Nicolas Pitre --- diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c index 0a95063f6d32..17de0bf53c08 100644 --- a/arch/arm/mach-kirkwood/sheevaplug-setup.c +++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c @@ -57,6 +57,12 @@ static struct mvsdio_platform_data sheeva_esata_mvsdio_data = { }; static struct gpio_led sheevaplug_led_pins[] = { + { + .name = "plug:red:misc", + .default_trigger = "none", + .gpio = 46, + .active_low = 1, + }, { .name = "plug:green:health", .default_trigger = "default-on", @@ -80,6 +86,7 @@ static struct platform_device sheevaplug_leds = { static unsigned int sheevaplug_mpp_config[] __initdata = { MPP29_GPIO, /* USB Power Enable */ + MPP46_GPIO, /* LED Red */ MPP49_GPIO, /* LED */ 0 };