Lines Matching refs:PMC

462     PMC->CTRL = (PMC->CTRL | PMC_CTRL_SELCLOCK_MASK) & (~PMC_CTRL_LPMODE_MASK);  in POWER_PowerInit()
465 if (PMC->TIMEOUTEVENTS != 0UL) in POWER_PowerInit()
472 PMC->WAKEUPIOCTRL &= ~PMC_WAKEUPIOCTRL_WAKEUPIO_ENABLE_CTRL_MASK; in POWER_PowerInit()
475PMC->LDOFLASHNV = (PMC->LDOFLASHNV & (~PMC_LDOFLASHNV_VADJ_MASK)) | PMC_LDOFLASHNV_VADJ(V_LDO_1P85… in POWER_PowerInit()
478PMC->LDOEFUSEPROG = (PMC->LDOEFUSEPROG & (~PMC_LDOEFUSEPROG_VADJ_MASK)) | PMC_LDOEFUSEPROG_VADJ(V_… in POWER_PowerInit()
481PMC->LDOCORE0 = (PMC->LDOCORE0 & (~PMC_LDOCORE0_LPREGREFSEL_MASK)) | PMC_LDOCORE0_LPREGREFSEL(V_LD… in POWER_PowerInit()
484 PMC->SRAMCTRL = (PMC->SRAMCTRL & (~PMC_SRAMCTRL_SMB_MASK)) | PMC_SRAMCTRL_SMB(3); in POWER_PowerInit()
487 PMC->REFFASTWKUP = PMC->REFFASTWKUP | PMC_REFFASTWKUP_LPWKUP_MASK | PMC_REFFASTWKUP_HWWKUP_MASK; in POWER_PowerInit()
511 PMC->CMD = PMC_CMD_DCDCENABLE_MASK; in POWER_SetCorePowerSource()
514 while ((PMC->STATUSPWR & PMC_STATUSPWR_DCDCPWROK_MASK) == 0UL) in POWER_SetCorePowerSource()
519 PMC->CMD = PMC_CMD_LDOCORELOWPWRDISABLE_MASK; in POWER_SetCorePowerSource()
522 PMC->CMD = PMC_CMD_LDOCOREHIGHPWRDISABLE_MASK; in POWER_SetCorePowerSource()
525 … pmc_reg_data = PMC->STATUS & (PMC_STATUS_FSMDCDCENABLE_MASK | PMC_STATUS_FSMLDOCOREHPENABLE_MASK | in POWER_SetCorePowerSource()
538 PMC->CMD = PMC_CMD_LDOCOREHIGHPWRENABLE_MASK; in POWER_SetCorePowerSource()
546 while ((PMC->STATUSPWR & PMC_STATUSPWR_LDOCOREPWROK_MASK) == 0UL) in POWER_SetCorePowerSource()
551 PMC->CMD = PMC_CMD_DCDCDISABLE_MASK; in POWER_SetCorePowerSource()
554 PMC->CMD = PMC_CMD_LDOCORELOWPWRDISABLE_MASK; in POWER_SetCorePowerSource()
557 … pmc_reg_data = PMC->STATUS & (PMC_STATUS_FSMDCDCENABLE_MASK | PMC_STATUS_FSMLDOCOREHPENABLE_MASK | in POWER_SetCorePowerSource()
570 PMC->CMD = PMC_CMD_LDOCORELOWPWRENABLE_MASK; in POWER_SetCorePowerSource()
573 PMC->CMD = PMC_CMD_LDOCOREHIGHPWRDISABLE_MASK; in POWER_SetCorePowerSource()
576 PMC->CMD = PMC_CMD_DCDCDISABLE_MASK; in POWER_SetCorePowerSource()
579 … pmc_reg_data = PMC->STATUS & (PMC_STATUS_FSMDCDCENABLE_MASK | PMC_STATUS_FSMLDOCOREHPENABLE_MASK | in POWER_SetCorePowerSource()
592 PMC->CMD = PMC_CMD_LDOCORELOWPWRDISABLE_MASK; in POWER_SetCorePowerSource()
595 PMC->CMD = PMC_CMD_LDOCOREHIGHPWRDISABLE_MASK; in POWER_SetCorePowerSource()
598 PMC->CMD = PMC_CMD_DCDCDISABLE_MASK; in POWER_SetCorePowerSource()
601 … pmc_reg_data = PMC->STATUS & (PMC_STATUS_FSMDCDCENABLE_MASK | PMC_STATUS_FSMLDOCOREHPENABLE_MASK | in POWER_SetCorePowerSource()
628 reg_status = PMC->STATUS; in POWER_GetCorePowerSource()
629 reg_statuspwr = PMC->STATUSPWR; in POWER_GetCorePowerSource()
672 PMC->CMD = PMC_CMD_DCDCENABLE_MASK; in POWER_CorePowerSourceControl()
675 while ((PMC->STATUSPWR & PMC_STATUSPWR_DCDCPWROK_MASK) == 0UL) in POWER_CorePowerSourceControl()
680 if ((PMC->STATUS & PMC_STATUS_FSMDCDCENABLE_MASK) == 0UL) in POWER_CorePowerSourceControl()
689 PMC->CMD = PMC_CMD_DCDCDISABLE_MASK; in POWER_CorePowerSourceControl()
692 if ((PMC->STATUS & PMC_STATUS_FSMDCDCENABLE_MASK) != 0UL) in POWER_CorePowerSourceControl()
706 PMC->CMD = PMC_CMD_LDOCOREHIGHPWRENABLE_MASK; in POWER_CorePowerSourceControl()
714 while ((PMC->STATUSPWR & PMC_STATUSPWR_LDOCOREPWROK_MASK) == 0UL) in POWER_CorePowerSourceControl()
719 if ((PMC->STATUS & PMC_STATUS_FSMLDOCOREHPENABLE_MASK) == 0UL) in POWER_CorePowerSourceControl()
728 PMC->CMD = PMC_CMD_LDOCOREHIGHPWRDISABLE_MASK; in POWER_CorePowerSourceControl()
731 if ((PMC->STATUS & PMC_STATUS_FSMLDOCOREHPENABLE_MASK) != 0UL) in POWER_CorePowerSourceControl()
745 PMC->CMD = PMC_CMD_LDOCORELOWPWRENABLE_MASK; in POWER_CorePowerSourceControl()
748 …if ((PMC->STATUS & (PMC_STATUS_FSMLDOCORELPENABLE_MASK | PMC_STATUS_FSMLDOCOREEXPTMRENABLE_MASK)) … in POWER_CorePowerSourceControl()
758 PMC->CMD = PMC_CMD_LDOCORELOWPWRDISABLE_MASK; in POWER_CorePowerSourceControl()
761 …if ((PMC->STATUS & (PMC_STATUS_FSMLDOCORELPENABLE_MASK | PMC_STATUS_FSMLDOCOREEXPTMRENABLE_MASK)) … in POWER_CorePowerSourceControl()
786 uint32_t sram_ctrl_0 = PMC->SRAMCTRL0; in POWER_GetSRAMPowerMode()
787 uint32_t sram_ctrl_1 = PMC->SRAMCTRL1; in POWER_GetSRAMPowerMode()
1088 pmc_reset_ctrl = PMC->RESETCTRL; in POWER_EnterDeepSleep()
1312PMC->WAKEUPIOCTRL = POWER_WakeUpIOCtrl(wakeup_io_ctrl) & (~PMC_WAKEUPIOCTRL_WAKEUPIO_ENABLE_CTRL_M… in POWER_SetWakeUpPins()
1317PMC->WAKEUPIOCTRL = POWER_WakeUpIOCtrl(wakeup_io_ctrl) | PMC_WAKEUPIOCTRL_WAKEUPIO_ENABLE_CTRL_MAS… in POWER_SetWakeUpPins()
1321 PMC->WAKEUPIOCTRL |= PMC_WAKEUPIOCTRL_WAKEUPIO_RSTN_MASK; in POWER_SetWakeUpPins()
1332 boot_mode_reg = (PMC->STATUS & PMC_STATUS_BOOTMODE_MASK) >> PMC_STATUS_BOOTMODE_SHIFT; in POWER_GetWakeUpCause()
1354 wakeupio_cause_reg = PMC->WAKEIOCAUSE; in POWER_GetWakeUpCause()
1392 reset_cause_reg = PMC->AOREG1; in POWER_GetWakeUpCause()
1525 PMC->BODCORE = (PMC->BODCORE & ~PMC_BODCORE_HYST_MASK & ~PMC_BODCORE_TRIGLVL_MASK) | in POWER_SetVoltageForFreq()
1530 PMC->BODCORE = (PMC->BODCORE & ~PMC_BODCORE_HYST_MASK & ~PMC_BODCORE_TRIGLVL_MASK) | in POWER_SetVoltageForFreq()
1539 PMC->BODCORE = (PMC->BODCORE & ~PMC_BODCORE_HYST_MASK & ~PMC_BODCORE_TRIGLVL_MASK) | in POWER_SetVoltageForFreq()
1544 PMC->BODCORE = (PMC->BODCORE & ~PMC_BODCORE_HYST_MASK & ~PMC_BODCORE_TRIGLVL_MASK) | in POWER_SetVoltageForFreq()
1549 PMC->BODCORE = (PMC->BODCORE & ~PMC_BODCORE_HYST_MASK & ~PMC_BODCORE_TRIGLVL_MASK) | in POWER_SetVoltageForFreq()
1575 reg_data = PMC->STATUSPWR; /* Dummy Read */ in POWER_WaitLDOCoreInit()
1599 reg_data = PMC->STATUSPWR; /* Dummy Read */ in POWER_SRAMPowerUpDelay()
1655 PMC->CTRL = (PMC->CTRL & (~PMC_CTRL_LPMODE_MASK)) | PMC_CTRL_LPMODE(low_power_mode); in POWER_SetLowPowerMode()
1658 PMC->SRAMRETCTRL = p_lowpower_cfg->SRAMRETCTRL; in POWER_SetLowPowerMode()
1661 PMC->LDOPMU = (PMC->LDOPMU & (~PMC_LDOPMU_VADJ_PWD_MASK) & (~PMC_LDOPMU_VADJ_BOOST_PWD_MASK)) | in POWER_SetLowPowerMode()
1667 PMC->LDOMEM = (PMC->LDOMEM & (~PMC_LDOMEM_VADJ_PWD_MASK) & (~PMC_LDOMEM_VADJ_BOOST_PWD_MASK)) | in POWER_SetLowPowerMode()
1701 PMC->PDSLEEPCFG0 = p_lowpower_cfg->PDCTRL[0]; in POWER_SetLowPowerMode()
1702 PMC->PDSLEEPCFG1 = p_lowpower_cfg->PDCTRL[1]; in POWER_SetLowPowerMode()
1715 PMC->RESETCTRL = PMC->RESETCTRL & (~PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK); in POWER_SetLowPowerMode()
1718 reg_data = PMC->BODCORE; in POWER_SetLowPowerMode()
1720PMC->BODCORE = (reg_data & (~PMC_BODCORE_TRIGLVL_MASK)) | PMC_BODCORE_TRIGLVL(kPOWER_BodCoreLevel0… in POWER_SetLowPowerMode()
1767 … reg_data = PMC->CTRL & (~PMC_CTRL_SELCLOCK_MASK) & (~PMC_CTRL_DEEPSLEEPCORESUPPLY_MASK) & in POWER_SetLowPowerMode()
1772 PMC->CTRL = reg_data & (~PMC_CTRL_SELCORESUPPLYWK_MASK); in POWER_SetLowPowerMode()
1777 PMC->CTRL = reg_data | PMC_CTRL_SELCORESUPPLYWK_MASK; in POWER_SetLowPowerMode()
1784 PMC->CTRL = (PMC->CTRL & (~PMC_CTRL_LPMODE_MASK)) | PMC_CTRL_SELCLOCK_MASK | in POWER_SetLowPowerMode()
1788PMC->BODCORE = (PMC->BODCORE & (~PMC_BODCORE_TRIGLVL_MASK)) | PMC_BODCORE_TRIGLVL(bod_core_trglvl); in POWER_SetLowPowerMode()
1836 PMC->PDSLEEPCFG0 = in POWER_SetLowPowerMode()
1840 PMC->PDSLEEPCFG1 = p_lowpower_cfg->PDCTRL[1]; in POWER_SetLowPowerMode()
1843 PMC->RESETCTRL = PMC->RESETCTRL & (~PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK); in POWER_SetLowPowerMode()
1867 PMC->MISCCTRL = PMC->MISCCTRL | PMC_MISCCTRL_VREF_ISO_MASK; in POWER_SetLowPowerMode()
1901 PMC->CTRL = (PMC->CTRL & (~PMC_CTRL_SELCLOCK_MASK)) | PMC_CTRL_SELCORESUPPLYWK_MASK; in POWER_SetLowPowerMode()
1950 PMC->CTRL = (PMC->CTRL & (~PMC_CTRL_LPMODE_MASK)) | PMC_CTRL_SELCLOCK_MASK | in POWER_SetLowPowerMode()
1992 PMC->MISCCTRL = PMC->MISCCTRL & (~PMC_MISCCTRL_VREF_ISO_MASK); in POWER_SetLowPowerMode()
2014PMC->WAKEUPIOCTRL = p_lowpower_cfg->WAKEUPIOSRC | PMC_WAKEUPIOCTRL_WAKEUPIO_ENABLE_CTRL_MASK; in POWER_SetLowPowerMode()
2017 PMC->WAKEUPIOCTRL |= PMC_WAKEUPIOCTRL_WAKEUPIO_RSTN_MASK; in POWER_SetLowPowerMode()
2020 PMC->PDSLEEPCFG0 = in POWER_SetLowPowerMode()
2023 PMC->PDSLEEPCFG1 = p_lowpower_cfg->PDCTRL[1]; in POWER_SetLowPowerMode()
2036 PMC->RESETCAUSE = 0xFFFFFFFFUL; in POWER_SetLowPowerMode()
2039 PMC->RESETCTRL |= PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK; in POWER_SetLowPowerMode()
2042 PMC->CTRL = PMC->CTRL & (~PMC_CTRL_SELCLOCK_MASK); in POWER_SetLowPowerMode()
2049 PMC->CTRL = (PMC->CTRL & (~PMC_CTRL_LPMODE_MASK)) | PMC_CTRL_SELCLOCK_MASK | in POWER_SetLowPowerMode()
2495 PMC->DCDC0 = dcdcTrimValue0; in POWER_SetSystemPowerProfile()
2496 PMC->DCDC1 = dcdcTrimValue1; in POWER_SetSystemPowerProfile()
2502 PMC->DCDC0 = 0x0220ACF1UL >> 1; in POWER_SetSystemPowerProfile()
2503 PMC->DCDC1 = 0x01D05C78UL; in POWER_SetSystemPowerProfile()
2519 PMC->DCDC0 = dcdcTrimValue0; in POWER_SetSystemPowerProfile()
2520 PMC->DCDC1 = dcdcTrimValue1; in POWER_SetSystemPowerProfile()
2526 PMC->DCDC0 = 0x0228ACF9UL >> 1; in POWER_SetSystemPowerProfile()
2527 PMC->DCDC1 = 0x01E05C68UL; in POWER_SetSystemPowerProfile()
2543 PMC->DCDC0 = dcdcTrimValue0; in POWER_SetSystemPowerProfile()
2544 PMC->DCDC1 = dcdcTrimValue1; in POWER_SetSystemPowerProfile()
2550 PMC->DCDC0 = 0x0210CCFDUL >> 1; in POWER_SetSystemPowerProfile()
2551 PMC->DCDC1 = 0x01C05C98UL; in POWER_SetSystemPowerProfile()
2855PMC->LDOPMU = (PMC->LDOPMU & (~PMC_LDOPMU_VADJ_MASK) & (~PMC_LDOPMU_VADJ_BOOST_MASK)) | PMC_LDOPMU… in POWER_SetSystemVoltage()
2859 PMC->DCDC0 = (PMC->DCDC0 & (~PMC_DCDC0_VOUT_MASK)) | PMC_DCDC0_VOUT(lv_dcdc); in POWER_SetSystemVoltage()
2889PMC->LDOCORE0 = (PMC->LDOCORE0 & (~PMC_LDOCORE0_REGREFTRIM_MASK)) | PMC_LDOCORE0_REGREFTRIM(lv_ldo… in POWER_SetSystemVoltage()
2902 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_X0_LS_SHIFT))) | in POWER_SRAMSetRegister()
2909 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_00_LS_SHIFT))) | in POWER_SRAMSetRegister()
2916 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_01_LS_SHIFT))) | in POWER_SRAMSetRegister()
2923 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_02_LS_SHIFT))) | in POWER_SRAMSetRegister()
2930 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_03_LS_SHIFT))) | in POWER_SRAMSetRegister()
2937 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_10_LS_SHIFT))) | in POWER_SRAMSetRegister()
2944 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_20_LS_SHIFT))) | in POWER_SRAMSetRegister()
2951 PMC->SRAMCTRL0 = (PMC->SRAMCTRL0 & (~(0xFUL << PMC_SRAMCTRL0_RAM_30_LS_SHIFT))) | in POWER_SRAMSetRegister()
2958 PMC->SRAMCTRL1 = (PMC->SRAMCTRL1 & (~(0xFUL << PMC_SRAMCTRL1_RAM_40_LS_SHIFT))) | in POWER_SRAMSetRegister()
2965 PMC->SRAMCTRL1 = (PMC->SRAMCTRL1 & (~(0xFUL << PMC_SRAMCTRL1_RAM_41_LS_SHIFT))) | in POWER_SRAMSetRegister()
2972 PMC->SRAMCTRL1 = (PMC->SRAMCTRL1 & (~(0xFUL << PMC_SRAMCTRL1_RAM_42_LS_SHIFT))) | in POWER_SRAMSetRegister()
2979 PMC->SRAMCTRL1 = (PMC->SRAMCTRL1 & (~(0xFUL << PMC_SRAMCTRL1_RAM_43_LS_SHIFT))) | in POWER_SRAMSetRegister()
2986PMC->SRAMCTRL1 = (PMC->SRAMCTRL1 & (~(0xFUL << PMC_SRAMCTRL1_RAM_FLASHLPCACHE_LS_SHIFT))) | in POWER_SRAMSetRegister()
2993PMC->SRAMCTRL1 = (PMC->SRAMCTRL1 & (~(0xFUL << PMC_SRAMCTRL1_RAM_FLEXSPILPCACHE_LS_SHIFT))) | in POWER_SRAMSetRegister()