Signed-off-by: Andrey Smirnov <andrew.smir...@gmail.com> --- arch/arm/boards/at91sam9x5ek/init.c | 27 --------------------------- arch/arm/configs/at91sam9x5ek_defconfig | 1 + 2 files changed, 1 insertion(+), 27 deletions(-)
diff --git a/arch/arm/boards/at91sam9x5ek/init.c b/arch/arm/boards/at91sam9x5ek/init.c index 068897a..85f20a9 100644 --- a/arch/arm/boards/at91sam9x5ek/init.c +++ b/arch/arm/boards/at91sam9x5ek/init.c @@ -260,32 +260,6 @@ static void ek_add_device_usb(void) static void ek_add_device_usb(void) {} #endif -struct gpio_led leds[] = { - { - .gpio = AT91_PIN_PB18, - .active_low = 1, - .led = { - .name = "d1", - }, - }, { - .gpio = AT91_PIN_PD21, - .led = { - .name = "d2", - }, - }, -}; - -static void __init ek_add_led(void) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(leds); i++) { - at91_set_gpio_output(leds[i].gpio, leds[i].active_low); - led_gpio_register(&leds[i]); - } - led_set_trigger(LED_TRIGGER_HEARTBEAT, &leds[1].led); -} - static void ek_add_device_w1(void) { at91_set_gpio_input(w1_pdata.pin, 0); @@ -303,7 +277,6 @@ static int at91sam9x5ek_devices_init(void) ek_add_device_spi(); ek_add_device_mci(); ek_add_device_usb(); - ek_add_led(); ek_add_device_i2c(); ek_add_device_lcdc(); diff --git a/arch/arm/configs/at91sam9x5ek_defconfig b/arch/arm/configs/at91sam9x5ek_defconfig index 0691145..dd42755 100644 --- a/arch/arm/configs/at91sam9x5ek_defconfig +++ b/arch/arm/configs/at91sam9x5ek_defconfig @@ -90,3 +90,4 @@ CONFIG_FS_TFTP=y CONFIG_FS_FAT=y CONFIG_FS_FAT_WRITE=y CONFIG_FS_FAT_LFN=y +CONFIG_LED_GPIO_OF=y -- 2.9.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox