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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-04-04 16:45:56 +08:00 committed by Petro Karashchenko
parent 5e7d48f4b0
commit b2c8b5f674

View File

@ -410,7 +410,7 @@ struct boardioc_boot_info_s
}; };
#endif #endif
#ifdef CONFIG_BOARDCTL_RESET_CAUSE #if defined(CONFIG_BOARDCTL_RESET) || defined(CONFIG_BOARDCTL_RESET_CAUSE)
/* Describes the reason of last reset */ /* Describes the reason of last reset */
enum boardioc_reset_cause_e enum boardioc_reset_cause_e