From 5d44fd6a001f4b3edd8eb0d7435d9bf24aefeb38 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 17 May 2016 08:10:49 -0600 Subject: [PATCH] i.MX6: LEDs were not working because board_autoled_initialize() was not being called --- configs/sabre-6quad/README.txt | 6 +++++- configs/sabre-6quad/src/imx_boardinit.c | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configs/sabre-6quad/README.txt b/configs/sabre-6quad/README.txt index 2cc5bc5dee..84571090f7 100644 --- a/configs/sabre-6quad/README.txt +++ b/configs/sabre-6quad/README.txt @@ -56,7 +56,11 @@ With this change, the NSH serial console works: But there are still no timer interrupts. LEDs do not appear to be working. 2016-05-17: Timer interrupts now work. This turned out to be just a minor -bit setting error in the timer configuration. +bit setting error in the timer configuration. Timer appears to be too fast +be about a factor of three, however. + +LEDs were not working simply because board_autoled_initialize() was not being +called in the board startup logic. Platform Features ================= diff --git a/configs/sabre-6quad/src/imx_boardinit.c b/configs/sabre-6quad/src/imx_boardinit.c index e287ed2c86..7fa71f3238 100644 --- a/configs/sabre-6quad/src/imx_boardinit.c +++ b/configs/sabre-6quad/src/imx_boardinit.c @@ -80,6 +80,11 @@ void imx_board_initialize(void) { +#ifdef CONFIG_ARCH_LEDS + /* Configure on-board LEDs if LED support has been selected. */ + + board_autoled_initialize(); +#endif } /****************************************************************************