driver: hwinfo: nxp_rcm correct implementation of get_supported_reset_cause

The function should return all possible combinations for reset cause.

Signed-off-by: Adib Taraben <theadib@gmail.com>
This commit is contained in:
Adib Taraben 2025-04-27 21:10:09 +02:00 committed by Benjamin Cabé
parent 45746c172e
commit 1613b5aade

View File

@ -120,12 +120,9 @@ int z_impl_hwinfo_clear_reset_cause(void)
#if (defined(FSL_FEATURE_RCM_HAS_PARAM) && FSL_FEATURE_RCM_HAS_PARAM)
int z_impl_hwinfo_get_supported_reset_cause(uint32_t *supported)
{
uint32_t sources;
*supported = hwinfo_mcux_rcm_xlate_reset_sources(UINT32_MAX);
sources = RCM_GetResetSourceImplementedStatus(RCM);
*supported = hwinfo_mcux_rcm_xlate_reset_sources(sources);
LOG_DBG("sources = 0x%08x, supported = 0x%08x", sources, *supported);
LOG_DBG("supported = 0x%08x", *supported);
return 0;
}