Skip to contentSkip to conversation

omap3 beagle: led triggers

PATCH New David Brownell 1 participant 1 message Aug 29, 2008

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

PATCH 1/1 omap3 beagle: led triggers

From: David Brownell <[email protected]>

Assign default roles to two of Beagle's programmable LEDs:

- usr0 has a heartbeat to show basic activity
- usr1 shows MMC activity

A third led is controlled by the TWL4030 LED_B signal, but the TWL driver doesn't yet support leds...

arch/arm/mach-omap2/board-omap3beagle.c +3 -3
@@ -139,15 +139,15 @@ static struct omap_lcd_config omap3_beag
 	.ctrl_name	= "internal",
 };
 
-struct gpio_led gpio_leds[] = {
+static struct gpio_led gpio_leds[] = {
 	{
 		.name			= "beagleboard::usr0",
-		.default_trigger	= "none",
+		.default_trigger	= "heartbeat",
 		.gpio			= 150,
 	},
 	{
 		.name			= "beagleboard::usr1",
-		.default_trigger	= "none",
+		.default_trigger	= "mmc0",
 		.gpio			= 149,
 	},
 };