]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-at91/board-ek.c
[ARM] 4761/1: [AT91] Board-support for NEW_LEDs
[linux-2.6-omap-h63xx.git] / arch / arm / mach-at91 / board-ek.c
index 53a5ef9e72eeec7844007282896002f0e0f8552e..0574e50a30dd096bbb5f012ac522895518b8a880 100644 (file)
@@ -141,6 +141,25 @@ static struct platform_device ek_flash = {
        .num_resources  = 1,
 };
 
+static struct gpio_led ek_leds[] = {
+       {       /* "user led 1", DS2 */
+               .name                   = "green",
+               .gpio                   = AT91_PIN_PB0,
+               .active_low             = 1,
+               .default_trigger        = "mmc0",
+       },
+       {       /* "user led 2", DS4 */
+               .name                   = "yellow",
+               .gpio                   = AT91_PIN_PB1,
+               .active_low             = 1,
+               .default_trigger        = "heartbeat",
+       },
+       {       /* "user led 3", DS6 */
+               .name                   = "red",
+               .gpio                   = AT91_PIN_PB2,
+               .active_low             = 1,
+       }
+};
 
 static void __init ek_board_init(void)
 {
@@ -167,6 +186,8 @@ static void __init ek_board_init(void)
 #endif
        /* NOR Flash */
        platform_device_register(&ek_flash);
+       /* LEDs */
+       at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds));
        /* VGA */
 //     ek_add_device_video();
 }