zephyr/drivers/hwinfo
Casper Egholm Jørgensen 4beb51c52f drivers: src: hwinfo: Report reset cause for lockup_sysresetreq
Fix  incomplete reset cause to be reported for NXP MIMXRT1062-evkb.

In the event of a reset due to core lockup
or software reset request on a 1062 board,
the current NXP hwinfo driver reports an incomplete
reset cause (only Ipp reset pin).

This is happening because the 1062 uses a combined CPU lockup
and system reset request register bit that should be checked,
whereas the current driver only checks for the existence
of a lockup-only status bit.

This commit adds a check on the flag
FSL_FEATURE_SRC_HAS_SRSR_LOCKUP_SYSRESETREQ
already present in MIMXRT1062_features.h,
to report such a reset cause should it occur.

Signed-off-by: Casper Egholm Jørgensen <cjo@trackman.com>
2023-06-26 16:14:14 +02:00
..
CMakeLists.txt
Kconfig
hwinfo_andes.c
hwinfo_esp32.c
hwinfo_gecko.c
hwinfo_handlers.c
hwinfo_imxrt.c
hwinfo_litex.c
hwinfo_mcux_rcm.c
hwinfo_mcux_sim.c
hwinfo_mcux_src.c
hwinfo_mcux_src_rev2.c
hwinfo_mcux_syscon.c
hwinfo_nrf.c
hwinfo_psoc6.c
hwinfo_rpi_pico.c
hwinfo_sam.c
hwinfo_sam0.c
hwinfo_sam4l.c
hwinfo_sam_rstc.c
hwinfo_shell.c
hwinfo_stm32.c
hwinfo_weak_impl.c