summaryrefslogtreecommitdiff
path: root/board/phytec
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2019-02-13 22:46:57 +0100
committerStefano Babic <sbabic@denx.de>2019-04-13 20:30:08 +0200
commit379255f1ee12c2ddbeaba745a36e1803a5b01fcd (patch)
tree237f0c68c21df3bc3e2e359a6d24f367880c920c /board/phytec
parente5b345f30cc717706cd45cb18291cb607c3b1d4d (diff)
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 <lukma@denx.de>
Diffstat (limited to 'board/phytec')
-rw-r--r--board/phytec/pcm052/pcm052.c4
1 files changed, 4 insertions, 0 deletions
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 <asm/arch/ddrmc-vf610.h>
#include <asm/arch/crm_regs.h>
#include <asm/arch/clock.h>
+#include <led.h>
#include <environment.h>
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: