From 17585e2dc33c23b3ea37daf485ced880c8fea3f8 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Fri, 27 Jul 2018 16:37:09 +0200 Subject: 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 Signed-off-by: Patrick Delaunay --- common/board_r.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/board_r.c') 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 /* -- cgit v1.2.3