summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2018-07-27 17:37:09 +0300
committerTom Rini <trini@konsulko.com>2018-08-10 17:27:32 +0300
commit17585e2dc33c23b3ea37daf485ced880c8fea3f8 (patch)
treeae4705a14fb2f48d7d2cc5d4ae05ffd506c3a393 /common
parent1f5118b4d38d9caaab4c451f974542297bd1e2a7 (diff)
downloadu-boot-17585e2dc33c23b3ea37daf485ced880c8fea3f8.tar.xz
sandbox: led: use new function to configure default state
Initialize the led with the default state defined in device tree in board_init and solve issue with test for led default state. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 64f257409c..9402c0ef21 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -690,7 +690,8 @@ static init_fnc_t init_sequence_r[] = {
#ifdef CONFIG_DM
initr_dm,
#endif
-#if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || defined(CONFIG_RISCV)
+#if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || defined(CONFIG_RISCV) || \
+ defined(CONFIG_SANDBOX)
board_init, /* Setup chipselects */
#endif
/*