From: Lukasz Majewski Date: Wed, 13 Feb 2019 21:46:57 +0000 (+0100) Subject: pcm052: board: Add code to setup LED default states X-Git-Tag: v2019.07-rc1~21^2~120 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=379255f1ee12c2ddbeaba745a36e1803a5b01fcd;p=oweals%2Fu-boot.git pcm052: board: Add code to setup LED default states As one has moved to DM based LEDs, this code is required to setup the default state. Signed-off-by: Lukasz Majewski --- diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c index d4f170a503..721e25105a 100644 --- a/board/phytec/pcm052/pcm052.c +++ b/board/phytec/pcm052/pcm052.c @@ -13,6 +13,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -314,6 +315,9 @@ int board_late_init(void) struct src *psrc = (struct src *)SRC_BASE_ADDR; u32 reg; + if (IS_ENABLED(CONFIG_LED)) + led_default_state(); + /* * BK4r1 handle emergency/service SD card boot * Checking the SBMR1 register BOOTCFG1 byte: