imx: tpc70: led: Enable LED default state
authorLukasz Majewski <lukma@denx.de>
Thu, 10 Oct 2019 14:11:26 +0000 (16:11 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 13 Oct 2019 20:49:11 +0000 (22:49 +0200)
This change sets the default state of LEDs on TPC70.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c

index 144d2c58c4878a4a681ca125b913a29e9d77a5a8..7876a630689ff9129f28b0eac3b5d8c9a6c6d1d2 100644 (file)
@@ -28,6 +28,7 @@
 #include <netdev.h>
 #include <usb.h>
 #include <usb/ehci-ci.h>
+#include <led.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -291,6 +292,9 @@ int board_late_init(void)
        add_board_boot_modes(board_boot_modes);
 #endif
 
+       if (IS_ENABLED(CONFIG_LED))
+               led_default_state();
+
        env_set("boardname", "kp-tpc");
        env_set("boardsoc", "imx6q");
        return 0;