Skip to content

Commit c09c6ab

Browse files
nika-nordicnordicjm
authored andcommitted
[nrf fromlist] drivers: hwinfo: nrf: fix missing reset reasons for nRF5340 Network
Incorrect symbols were used for detecting nRF5340 Network-specific reset reasons presence. Upstream PR #: 100526 Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent 11b28c9 commit c09c6ab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/hwinfo/hwinfo_nrf.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,22 @@ int z_impl_hwinfo_get_reset_cause(uint32_t *cause)
160160
flags |= RESET_CLOCK;
161161
}
162162
#endif
163-
#if NRFX_RESET_REASON_HAS_NETWORK
163+
#if NRFX_RESET_REASON_HAS_LSREQ
164164
if (reason & NRFX_RESET_REASON_LSREQ_MASK) {
165165
flags |= RESET_SOFTWARE;
166166
}
167+
#endif
168+
#if NRFX_RESET_REASON_HAS_LLOCKUP
167169
if (reason & NRFX_RESET_REASON_LLOCKUP_MASK) {
168170
flags |= RESET_CPU_LOCKUP;
169171
}
172+
#endif
173+
#if NRFX_RESET_REASON_HAS_LDOG
170174
if (reason & NRFX_RESET_REASON_LDOG_MASK) {
171175
flags |= RESET_WATCHDOG;
172176
}
177+
#endif
178+
#if NRFX_RESET_REASON_HAS_LCTRLAP
173179
if (reason & NRFX_RESET_REASON_LCTRLAP_MASK) {
174180
flags |= RESET_DEBUG;
175181
}

0 commit comments

Comments
 (0)