Lines Matching refs:freq

88     uint32_t freq;  in CLOCK_GetPeriphClkFreq()  local
97 freq = CLOCK_GetPllFreq(kCLOCK_PllUsb1); in CLOCK_GetPeriphClkFreq()
102 freq = CLOCK_GetOscFreq(); in CLOCK_GetPeriphClkFreq()
106 freq = CLOCK_GetPllFreq(kCLOCK_PllSys); in CLOCK_GetPeriphClkFreq()
111 freq = 0U; in CLOCK_GetPeriphClkFreq()
115freq /= (((CCM->CBCDR & CCM_CBCDR_PERIPH_CLK2_PODF_MASK) >> CCM_CBCDR_PERIPH_CLK2_PODF_SHIFT) + 1U… in CLOCK_GetPeriphClkFreq()
124 freq = CLOCK_GetPllFreq(kCLOCK_PllSys); in CLOCK_GetPeriphClkFreq()
129 freq = CLOCK_GetUsb1PfdFreq(kCLOCK_Pfd3); in CLOCK_GetPeriphClkFreq()
134 freq = CLOCK_GetSysPfdFreq(kCLOCK_Pfd3); in CLOCK_GetPeriphClkFreq()
139 freq = 500000000U; in CLOCK_GetPeriphClkFreq()
143 freq = 0U; in CLOCK_GetPeriphClkFreq()
148 return freq; in CLOCK_GetPeriphClkFreq()
153 uint32_t freq; in CLOCK_GetPllUsb1SWFreq() local
159 freq = CLOCK_GetPllFreq(kCLOCK_PllUsb1); in CLOCK_GetPllUsb1SWFreq()
164 freq = 24000000UL; in CLOCK_GetPllUsb1SWFreq()
168 freq = 0UL; in CLOCK_GetPllUsb1SWFreq()
172 return freq; in CLOCK_GetPllUsb1SWFreq()
269 uint32_t freq; in CLOCK_GetSemcFreq() local
277 freq = CLOCK_GetUsb1PfdFreq(kCLOCK_Pfd1); in CLOCK_GetSemcFreq()
282 freq = CLOCK_GetSysPfdFreq(kCLOCK_Pfd2); in CLOCK_GetSemcFreq()
288 freq = CLOCK_GetPeriphClkFreq(); in CLOCK_GetSemcFreq()
291 freq /= (((CCM->CBCDR & CCM_CBCDR_SEMC_PODF_MASK) >> CCM_CBCDR_SEMC_PODF_SHIFT) + 1U); in CLOCK_GetSemcFreq()
293 return freq; in CLOCK_GetSemcFreq()
313 uint32_t freq; in CLOCK_GetPerClkFreq() local
318 freq = CLOCK_GetOscFreq(); in CLOCK_GetPerClkFreq()
323 freq = CLOCK_GetIpgFreq(); in CLOCK_GetPerClkFreq()
326 freq /= (((CCM->CSCMR1 & CCM_CSCMR1_PERCLK_PODF_MASK) >> CCM_CSCMR1_PERCLK_PODF_SHIFT) + 1U); in CLOCK_GetPerClkFreq()
328 return freq; in CLOCK_GetPerClkFreq()
342 uint32_t freq; in CLOCK_GetFreq() local
348 freq = CLOCK_GetAhbFreq(); in CLOCK_GetFreq()
352 freq = CLOCK_GetSemcFreq(); in CLOCK_GetFreq()
356 freq = CLOCK_GetIpgFreq(); in CLOCK_GetFreq()
360 freq = CLOCK_GetPerClkFreq(); in CLOCK_GetFreq()
364 freq = CLOCK_GetOscFreq(); in CLOCK_GetFreq()
367 freq = CLOCK_GetRtcFreq(); in CLOCK_GetFreq()
370 freq = CLOCK_GetPllFreq(kCLOCK_PllUsb1); in CLOCK_GetFreq()
373 freq = CLOCK_GetUsb1PfdFreq(kCLOCK_Pfd0); in CLOCK_GetFreq()
376 freq = CLOCK_GetUsb1PfdFreq(kCLOCK_Pfd1); in CLOCK_GetFreq()
379 freq = CLOCK_GetUsb1PfdFreq(kCLOCK_Pfd2); in CLOCK_GetFreq()
382 freq = CLOCK_GetUsb1PfdFreq(kCLOCK_Pfd3); in CLOCK_GetFreq()
385 freq = CLOCK_GetPllUsb1SWFreq(); in CLOCK_GetFreq()
388 freq = CLOCK_GetPllUsb1SWFreq() / 8UL; in CLOCK_GetFreq()
391 freq = CLOCK_GetPllUsb1SWFreq() / 6UL; in CLOCK_GetFreq()
395 freq = CLOCK_GetPllFreq(kCLOCK_PllSys); in CLOCK_GetFreq()
398 freq = CLOCK_GetSysPfdFreq(kCLOCK_Pfd0); in CLOCK_GetFreq()
401 freq = CLOCK_GetSysPfdFreq(kCLOCK_Pfd1); in CLOCK_GetFreq()
404 freq = CLOCK_GetSysPfdFreq(kCLOCK_Pfd2); in CLOCK_GetFreq()
407 freq = CLOCK_GetSysPfdFreq(kCLOCK_Pfd3); in CLOCK_GetFreq()
410 freq = CLOCK_GetPllFreq(kCLOCK_PllEnet); in CLOCK_GetFreq()
413 freq = CLOCK_GetPllFreq(kCLOCK_PllEnet25M); in CLOCK_GetFreq()
416 freq = CLOCK_GetPllFreq(kCLOCK_PllEnet500M); in CLOCK_GetFreq()
419 freq = CLOCK_GetPllFreq(kCLOCK_PllAudio); in CLOCK_GetFreq()
422 freq = 0U; in CLOCK_GetFreq()
426 return freq; in CLOCK_GetFreq()
440 uint32_t freq = 0UL; in CLOCK_GetClockRootFreq() local
452 freq = CLOCK_GetFreq(clockSourceName); in CLOCK_GetClockRootFreq()
456freq /= ((CCM_TUPLE_REG(CCM, clockRootPreDivTuple) & CCM_TUPLE_MASK(clockRootPreDivTuple)) >> in CLOCK_GetClockRootFreq()
461 freq /= ((CCM_TUPLE_REG(CCM, clockRootPostDivTuple) & CCM_TUPLE_MASK(clockRootPostDivTuple)) >> in CLOCK_GetClockRootFreq()
465 return freq; in CLOCK_GetClockRootFreq()
479 bool CLOCK_EnableUsbhs0Clock(clock_usb_src_t src, uint32_t freq) in CLOCK_EnableUsbhs0Clock() argument
504 bool CLOCK_EnableUsbhs0PhyPllClock(clock_usb_phy_src_t src, uint32_t freq) in CLOCK_EnableUsbhs0PhyPllClock() argument
758 uint32_t freq; in CLOCK_GetPllFreq() local
776 freq = CLOCK_GetPllBypassRefClk(CCM_ANALOG, pll); in CLOCK_GetPllFreq()
781 return freq; in CLOCK_GetPllFreq()
788 freqTmp = ((clock_64b_t)freq * ((clock_64b_t)(CCM_ANALOG->PLL_SYS_NUM))); in CLOCK_GetPllFreq()
793 freq *= 22U; in CLOCK_GetPllFreq()
797 freq *= 20U; in CLOCK_GetPllFreq()
800 freq += (uint32_t)freqTmp; in CLOCK_GetPllFreq()
804freq = (freq * (((CCM_ANALOG->PLL_USB1 & CCM_ANALOG_PLL_USB1_DIV_SELECT_MASK) != 0UL) ? 22U : 20U)… in CLOCK_GetPllFreq()
812 freqTmp = ((clock_64b_t)freq * ((clock_64b_t)(CCM_ANALOG->PLL_AUDIO_NUM))); in CLOCK_GetPllFreq()
815 freq = freq * divSelect + (uint32_t)freqTmp; in CLOCK_GetPllFreq()
836 freq = freq >> 2U; in CLOCK_GetPllFreq()
840 freq = freq >> 1U; in CLOCK_GetPllFreq()
844 freq = freq >> 0U; in CLOCK_GetPllFreq()
855 freq >>= 2U; in CLOCK_GetPllFreq()
859 freq >>= 1U; in CLOCK_GetPllFreq()
864 freq >>= 0U; in CLOCK_GetPllFreq()
876 freq = enetRefClkFreq[divSelect]; in CLOCK_GetPllFreq()
881 freq = 25000000UL; in CLOCK_GetPllFreq()
886 freq = 500000000UL; in CLOCK_GetPllFreq()
890 freq = 0U; in CLOCK_GetPllFreq()
894 return freq; in CLOCK_GetPllFreq()
1009 uint32_t freq = CLOCK_GetPllFreq(kCLOCK_PllSys); in CLOCK_GetSysPfdFreq() local
1010 uint64_t tmp64 = (uint64_t)freq * 18UL; in CLOCK_GetSysPfdFreq()
1015freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_528 & CCM_ANALOG_PFD_528_PFD0_FRAC_MASK) >> … in CLOCK_GetSysPfdFreq()
1019freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_528 & CCM_ANALOG_PFD_528_PFD1_FRAC_MASK) >> … in CLOCK_GetSysPfdFreq()
1023freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_528 & CCM_ANALOG_PFD_528_PFD2_FRAC_MASK) >> … in CLOCK_GetSysPfdFreq()
1027freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_528 & CCM_ANALOG_PFD_528_PFD3_FRAC_MASK) >> … in CLOCK_GetSysPfdFreq()
1031 freq = 0U; in CLOCK_GetSysPfdFreq()
1035 return freq; in CLOCK_GetSysPfdFreq()
1048 uint32_t freq = CLOCK_GetPllFreq(kCLOCK_PllUsb1); in CLOCK_GetUsb1PfdFreq() local
1049 uint64_t tmp64 = (uint64_t)freq * 18UL; in CLOCK_GetUsb1PfdFreq()
1054freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_480 & CCM_ANALOG_PFD_480_PFD0_FRAC_MASK) >> … in CLOCK_GetUsb1PfdFreq()
1058freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_480 & CCM_ANALOG_PFD_480_PFD1_FRAC_MASK) >> … in CLOCK_GetUsb1PfdFreq()
1062freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_480 & CCM_ANALOG_PFD_480_PFD2_FRAC_MASK) >> … in CLOCK_GetUsb1PfdFreq()
1066freq = (uint32_t)(tmp64 / (uint64_t)((CCM_ANALOG->PFD_480 & CCM_ANALOG_PFD_480_PFD3_FRAC_MASK) >> … in CLOCK_GetUsb1PfdFreq()
1070 freq = 0U; in CLOCK_GetUsb1PfdFreq()
1074 return freq; in CLOCK_GetUsb1PfdFreq()
1133 uint32_t freq = 0U; in CLOCK_GetClockOutCLKO1Freq() local
1143 freq = CLOCK_GetPllUsb1SWFreq() / 2UL; in CLOCK_GetClockOutCLKO1Freq()
1146 freq = CLOCK_GetPllFreq(kCLOCK_PllSys) / 2UL; in CLOCK_GetClockOutCLKO1Freq()
1149 freq = CLOCK_GetPllFreq(kCLOCK_PllEnet500M) / 2UL; in CLOCK_GetClockOutCLKO1Freq()
1152 freq = CLOCK_GetSemcFreq(); in CLOCK_GetClockOutCLKO1Freq()
1155 freq = CLOCK_GetAhbFreq(); in CLOCK_GetClockOutCLKO1Freq()
1158 freq = CLOCK_GetIpgFreq(); in CLOCK_GetClockOutCLKO1Freq()
1161 freq = CLOCK_GetPerClkFreq(); in CLOCK_GetClockOutCLKO1Freq()
1164 freq = CLOCK_GetPllFreq(kCLOCK_PllAudio); in CLOCK_GetClockOutCLKO1Freq()
1171 freq /= (((tmp32 & CCM_CCOSR_CLKO1_DIV_MASK) >> CCM_CCOSR_CLKO1_DIV_SHIFT) + 1U); in CLOCK_GetClockOutCLKO1Freq()
1175 freq = 0UL; in CLOCK_GetClockOutCLKO1Freq()
1178 return freq; in CLOCK_GetClockOutCLKO1Freq()
1188 uint32_t freq = 0U; in CLOCK_GetClockOutClkO2Freq() local
1198 freq = CLOCK_GetClockRootFreq(kCLOCK_Usdhc1ClkRoot); in CLOCK_GetClockOutClkO2Freq()
1201 freq = CLOCK_GetClockRootFreq(kCLOCK_Lpi2cClkRoot); in CLOCK_GetClockOutClkO2Freq()
1204 freq = CLOCK_GetOscFreq(); in CLOCK_GetClockOutClkO2Freq()
1207 freq = CLOCK_GetClockRootFreq(kCLOCK_LpspiClkRoot); in CLOCK_GetClockOutClkO2Freq()
1210 freq = CLOCK_GetClockRootFreq(kCLOCK_Usdhc2ClkRoot); in CLOCK_GetClockOutClkO2Freq()
1213 freq = CLOCK_GetClockRootFreq(kCLOCK_Sai1ClkRoot); in CLOCK_GetClockOutClkO2Freq()
1216 freq = CLOCK_GetClockRootFreq(kCLOCK_Sai2ClkRoot); in CLOCK_GetClockOutClkO2Freq()
1219 freq = CLOCK_GetClockRootFreq(kCLOCK_Sai3ClkRoot); in CLOCK_GetClockOutClkO2Freq()
1222 freq = CLOCK_GetClockRootFreq(kCLOCK_TraceClkRoot); in CLOCK_GetClockOutClkO2Freq()
1225 freq = CLOCK_GetClockRootFreq(kCLOCK_CanClkRoot); in CLOCK_GetClockOutClkO2Freq()
1228 freq = CLOCK_GetClockRootFreq(kCLOCK_FlexspiClkRoot); in CLOCK_GetClockOutClkO2Freq()
1231 freq = CLOCK_GetClockRootFreq(kCLOCK_UartClkRoot); in CLOCK_GetClockOutClkO2Freq()
1234 freq = CLOCK_GetClockRootFreq(kCLOCK_SpdifClkRoot); in CLOCK_GetClockOutClkO2Freq()
1241 freq /= (((tmp32 & CCM_CCOSR_CLKO2_DIV_MASK) >> CCM_CCOSR_CLKO2_DIV_SHIFT) + 1U); in CLOCK_GetClockOutClkO2Freq()
1245 freq = 0UL; in CLOCK_GetClockOutClkO2Freq()
1248 return freq; in CLOCK_GetClockOutClkO2Freq()