Skip to content

Commit d6ac46b

Browse files
mstasiaknordicrlubos
authored andcommitted
[nrf fromlist] drivers: hwinfo: nrf: extend supported reset reasons
Added missing supported reset reasons based on conditional guards. Upstream PR #: 93910 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 10fd454 commit d6ac46b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/hwinfo/hwinfo_nrf.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,15 @@ int z_impl_hwinfo_get_supported_reset_cause(uint32_t *supported)
207207
| RESET_SOFTWARE
208208
| RESET_CPU_LOCKUP
209209
| RESET_LOW_POWER_WAKE
210+
#if NRFX_RESET_REASON_HAS_VBUS
211+
| RESET_POR
212+
#endif
213+
#if NRFX_RESET_REASON_HAS_GRTC
214+
| RESET_CLOCK
215+
#endif
216+
#if defined(NRFX_RESET_REASON_TAMPC_MASK) || defined(NRFX_RESET_REASON_SECTAMPER_MASK)
217+
| RESET_SECURITY
218+
#endif
210219
| RESET_DEBUG);
211220

212221
return 0;

0 commit comments

Comments
 (0)