From b2c8b5f674f7110bf0dd50e31262a71a3633d426 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 4 Apr 2023 16:45:56 +0800 Subject: [PATCH] board: define boardioc_softreset_subreason_e in CONFIG_BOARDCTL_RESET so user could pass boardioc_softreset_subreason_e to board_reset too Signed-off-by: Xiang Xiao --- include/sys/boardctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sys/boardctl.h b/include/sys/boardctl.h index 7801e6c6a2..90e5431edd 100644 --- a/include/sys/boardctl.h +++ b/include/sys/boardctl.h @@ -410,7 +410,7 @@ struct boardioc_boot_info_s }; #endif -#ifdef CONFIG_BOARDCTL_RESET_CAUSE +#if defined(CONFIG_BOARDCTL_RESET) || defined(CONFIG_BOARDCTL_RESET_CAUSE) /* Describes the reason of last reset */ enum boardioc_reset_cause_e