Skip to contentSkip to conversation

arm: mach-kirkwood: add led in sheevaplug-setup.c

PATCH In review Robin Becker 2 participants 2 messages Mar 12, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mach-kirkwood: add led in sheevaplug-setup.c

From: Robin Becker <[email protected]>

This patch adds a second, red, led for the standard sheevaplug. The sheeva_esata mpp config is left unchanged.

Tested on a standard sheevaplug

---
 arch/arm/mach-kirkwood/sheevaplug-setup.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
arch/arm/mach-kirkwood/sheevaplug-setup.c +7 -0
index d2eec35..247aa92 100644
@@ -58,6 +58,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",
 		.gpio			= 49,
@@ -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
 };
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Robin" == Robin Becker <[email protected]> writes:

Robin> From: Robin Becker <[email protected]>
Robin> This patch adds a second, red, led for the standard sheevaplug. Robin> The sheeva_esata mpp config is left unchanged.

Robin> Tested on a standard sheevaplug

Robin> Signed-off-by: Robin Becker <[email protected]>

I had a look at this 2nd LED just the other week and was going to send a patch to add it.

Signature · 1 line
Bye, Peter Korsgaard