Lines Matching refs:sources
22 static uint32_t hwinfo_mcux_rcm_xlate_reset_sources(uint32_t sources) in hwinfo_mcux_rcm_xlate_reset_sources() argument
27 if (sources & kRCM_SourceWakeup) { in hwinfo_mcux_rcm_xlate_reset_sources()
32 if (sources & kRCM_SourceLvd) { in hwinfo_mcux_rcm_xlate_reset_sources()
37 if (sources & kRCM_SourceLoc) { in hwinfo_mcux_rcm_xlate_reset_sources()
43 if (sources & kRCM_SourceLol) { in hwinfo_mcux_rcm_xlate_reset_sources()
48 if (sources & kRCM_SourceWdog) { in hwinfo_mcux_rcm_xlate_reset_sources()
52 if (sources & kRCM_SourcePin) { in hwinfo_mcux_rcm_xlate_reset_sources()
56 if (sources & kRCM_SourcePor) { in hwinfo_mcux_rcm_xlate_reset_sources()
61 if (sources & kRCM_SourceJtag) { in hwinfo_mcux_rcm_xlate_reset_sources()
66 if (sources & kRCM_SourceLockup) { in hwinfo_mcux_rcm_xlate_reset_sources()
70 if (sources & kRCM_SourceSw) { in hwinfo_mcux_rcm_xlate_reset_sources()
75 if (sources & kRCM_SourceMdmap) { in hwinfo_mcux_rcm_xlate_reset_sources()
81 if (sources & kRCM_SourceEzpt) { in hwinfo_mcux_rcm_xlate_reset_sources()
91 uint32_t sources; in z_impl_hwinfo_get_reset_cause() local
94 sources = RCM_GetStickyResetSources(RCM) & kRCM_SourceAll; in z_impl_hwinfo_get_reset_cause()
96 sources = RCM_GetPreviousResetSources(RCM) & kRCM_SourceAll; in z_impl_hwinfo_get_reset_cause()
99 *cause = hwinfo_mcux_rcm_xlate_reset_sources(sources); in z_impl_hwinfo_get_reset_cause()
101 LOG_DBG("sources = 0x%08x, cause = 0x%08x", sources, *cause); in z_impl_hwinfo_get_reset_cause()
109 uint32_t sources; in z_impl_hwinfo_clear_reset_cause() local
111 sources = RCM_GetStickyResetSources(RCM) & kRCM_SourceAll; in z_impl_hwinfo_clear_reset_cause()
112 RCM_ClearStickyResetSources(RCM, sources); in z_impl_hwinfo_clear_reset_cause()
114 LOG_DBG("sources = 0x%08x", sources); in z_impl_hwinfo_clear_reset_cause()
123 uint32_t sources; in z_impl_hwinfo_get_supported_reset_cause() local
125 sources = RCM_GetResetSourceImplementedStatus(RCM); in z_impl_hwinfo_get_supported_reset_cause()
126 *supported = hwinfo_mcux_rcm_xlate_reset_sources(sources); in z_impl_hwinfo_get_supported_reset_cause()
128 LOG_DBG("sources = 0x%08x, supported = 0x%08x", sources, *supported); in z_impl_hwinfo_get_supported_reset_cause()