From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Sun, 20 Jan 2019 14:34:23 +0100 Subject: [U-Boot] [PATCH v2 19/21] pcm052: board: Add code to setup LED default states In-Reply-To: <20190120133425.17526-1-lukma@denx.de> References: <20190120133425.17526-1-lukma@denx.de> Message-ID: <20190120133425.17526-20-lukma@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de As one has moved to DM based LEDs, this code is required to setup the default state. Signed-off-by: Lukasz Majewski --- Changes in v2: None board/phytec/pcm052/pcm052.c | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.11.0