Lines Matching +full:fail +full:- +full:fast

4  * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
12 #include <zephyr/dt-bindings/pinctrl/mchp-xec-pinctrl.h>
24 uint32_t r = pcr->PWR_RST_STS; in pcr_clock_regs()
30 r = pcr->OSC_ID; in pcr_clock_regs()
33 r = pcr->PROC_CLK_CTRL; in pcr_clock_regs()
36 r = pcr->SLOW_CLK_CTRL; in pcr_clock_regs()
43 uint32_t cken = vbr->CLK32_EN; in vbat_clock_regs()
50 LOG_INF("XTAL configured for single-ended using XTAL2 pin" in vbat_clock_regs()
65 LOG_INF("32KHz trim = 0x%08x", vbr->CKK32_TRIM); in vbat_clock_regs()
71 uint32_t pfrs = vbr->PFRS; in vbat_power_fail()
73 LOG_INF("MEC152x VBAT Power-Fail-Reset-Status = 0x%x", pfrs); in vbat_power_fail()
80 vbr->PFRS = 0xffffffffU; in vbat_power_fail()
116 uint32_t pcr_clk_src = pcr->CLK32K_SRC_VTR; in pcr_clock_regs()
117 uint32_t r = pcr->PWR_RST_STS; in pcr_clock_regs()
125 r = pcr->OSC_ID; in pcr_clock_regs()
128 r = pcr->PROC_CLK_CTRL; in pcr_clock_regs()
131 r = pcr->SLOW_CLK_CTRL; in pcr_clock_regs()
134 r = pcr->CNT32K_PER; in pcr_clock_regs()
137 r = pcr->CNT32K_PER_MIN; in pcr_clock_regs()
140 r = pcr->CNT32K_DV; in pcr_clock_regs()
143 r = pcr->CNT32K_DV_MAX; in pcr_clock_regs()
146 r = pcr->CNT32K_VALID; in pcr_clock_regs()
149 r = pcr->CNT32K_VALID_MIN; in pcr_clock_regs()
152 r = pcr->CNT32K_CTRL; in pcr_clock_regs()
155 r = pcr->CLK32K_MON_ISTS; in pcr_clock_regs()
162 uint32_t vb_clk_src = vbr->CLK32_SRC; in vbat_clock_regs()
170 uint32_t pfrs = vbr->PFRS; in vbat_power_fail()
172 LOG_INF("MEC172x VBAT Power-Fail-Reset-Status = 0x%x", pfrs); in vbat_power_fail()
180 vbr->PFRS = 0xffffffffU; in vbat_power_fail()
198 { .id = MCHP_XEC_PCR_CLK_PERIPH_FAST, .name = "Periph-fast" },
199 { .id = MCHP_XEC_PCR_CLK_PERIPH_SLOW, .name = "Periph-slow" },
219 r = gpio->CTRL[MCHP_XEC_PINCTRL_REG_IDX(0165)]; in main()