Lines Matching refs:pChipcHw
73 …if ((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MODE_MASK) != chipcHw_REG_PLL_PREDI… in chipcHw_getClockFrequency()
78 ((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_getClockFrequency()
89 ((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_getClockFrequency()
95 ((pChipcHw->PLLPreDivider2 & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_getClockFrequency()
100 pPLLReg = &pChipcHw->DDRClock; in chipcHw_getClockFrequency()
104 pPLLReg = &pChipcHw->ARMClock; in chipcHw_getClockFrequency()
108 pPLLReg = &pChipcHw->ESWClock; in chipcHw_getClockFrequency()
112 pPLLReg = &pChipcHw->VPMClock; in chipcHw_getClockFrequency()
116 pPLLReg = &pChipcHw->ESW125Clock; in chipcHw_getClockFrequency()
120 pPLLReg = &pChipcHw->UARTClock; in chipcHw_getClockFrequency()
124 pPLLReg = &pChipcHw->SDIO0Clock; in chipcHw_getClockFrequency()
128 pPLLReg = &pChipcHw->SDIO1Clock; in chipcHw_getClockFrequency()
132 pPLLReg = &pChipcHw->SPIClock; in chipcHw_getClockFrequency()
136 pPLLReg = &pChipcHw->ETMClock; in chipcHw_getClockFrequency()
140 pPLLReg = &pChipcHw->USBClock; in chipcHw_getClockFrequency()
144 pPLLReg = &pChipcHw->LCDClock; in chipcHw_getClockFrequency()
148 pPLLReg = &pChipcHw->APMClock; in chipcHw_getClockFrequency()
152 pClockCtrl = &pChipcHw->ACLKClock; in chipcHw_getClockFrequency()
153 pDependentClock = &pChipcHw->ARMClock; in chipcHw_getClockFrequency()
158 pClockCtrl = &pChipcHw->OTPClock; in chipcHw_getClockFrequency()
161 pClockCtrl = &pChipcHw->I2CClock; in chipcHw_getClockFrequency()
164 pClockCtrl = &pChipcHw->I2S0Clock; in chipcHw_getClockFrequency()
167 pClockCtrl = &pChipcHw->RTBUSClock; in chipcHw_getClockFrequency()
168 pDependentClock = &pChipcHw->ACLKClock; in chipcHw_getClockFrequency()
172 pClockCtrl = &pChipcHw->APM100Clock; in chipcHw_getClockFrequency()
173 pDependentClock = &pChipcHw->APMClock; in chipcHw_getClockFrequency()
178 pClockCtrl = &pChipcHw->TSCClock; in chipcHw_getClockFrequency()
181 pClockCtrl = &pChipcHw->LEDClock; in chipcHw_getClockFrequency()
184 pClockCtrl = &pChipcHw->I2S1Clock; in chipcHw_getClockFrequency()
195 …return chipcHw_divide (vcoHz, (((pChipcHw->PLLDivider & 0xFF000000) >> 24) ? ((pChipcHw->PLLDivide… in chipcHw_getClockFrequency()
198 …if ((pPLLReg == &pChipcHw->LCDClock) && (chipcHw_getChipRevisionNumber() != chipcHw_REV_NUMBER_A0)… in chipcHw_getClockFrequency()
226 if (pDependentClock == (uint32_t *) &pChipcHw->ACLKClock) { in chipcHw_getClockFrequency()
275 …if ((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MODE_MASK) != chipcHw_REG_PLL_PREDI… in chipcHw_setClockFrequency()
280 ((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_setClockFrequency()
292 (((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_setClockFrequency()
297 ((pChipcHw->PLLPreDivider & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_setClockFrequency()
301 ((pChipcHw->PLLPreDivider2 & chipcHw_REG_PLL_PREDIVIDER_NDIV_MASK) >> in chipcHw_setClockFrequency()
310 …pChipcHw->DDRClock = (pChipcHw->DDRClock & ~chipcHw_REG_PLL_CLOCK_TO_BUS_RATIO_MASK) | ((((freq / … in chipcHw_setClockFrequency()
314 pPLLReg = &pChipcHw->DDRClock; in chipcHw_setClockFrequency()
319 pPLLReg = &pChipcHw->ARMClock; in chipcHw_setClockFrequency()
324 pPLLReg = &pChipcHw->ESWClock; in chipcHw_setClockFrequency()
332 …pChipcHw->VPMClock = (pChipcHw->VPMClock & ~chipcHw_REG_PLL_CLOCK_TO_BUS_RATIO_MASK) | ((chipcHw_d… in chipcHw_setClockFrequency()
336 pPLLReg = &pChipcHw->VPMClock; in chipcHw_setClockFrequency()
341 pPLLReg = &pChipcHw->ESW125Clock; in chipcHw_setClockFrequency()
346 pPLLReg = &pChipcHw->UARTClock; in chipcHw_setClockFrequency()
351 pPLLReg = &pChipcHw->SDIO0Clock; in chipcHw_setClockFrequency()
356 pPLLReg = &pChipcHw->SDIO1Clock; in chipcHw_setClockFrequency()
361 pPLLReg = &pChipcHw->SPIClock; in chipcHw_setClockFrequency()
366 pPLLReg = &pChipcHw->ETMClock; in chipcHw_setClockFrequency()
371 pPLLReg = &pChipcHw->USBClock; in chipcHw_setClockFrequency()
376 pPLLReg = &pChipcHw->LCDClock; in chipcHw_setClockFrequency()
381 pPLLReg = &pChipcHw->APMClock; in chipcHw_setClockFrequency()
386 pClockCtrl = &pChipcHw->ACLKClock; in chipcHw_setClockFrequency()
387 pDependentClock = &pChipcHw->ARMClock; in chipcHw_setClockFrequency()
393 pClockCtrl = &pChipcHw->OTPClock; in chipcHw_setClockFrequency()
396 pClockCtrl = &pChipcHw->I2CClock; in chipcHw_setClockFrequency()
399 pClockCtrl = &pChipcHw->I2S0Clock; in chipcHw_setClockFrequency()
402 pClockCtrl = &pChipcHw->RTBUSClock; in chipcHw_setClockFrequency()
403 pDependentClock = &pChipcHw->ACLKClock; in chipcHw_setClockFrequency()
407 pClockCtrl = &pChipcHw->APM100Clock; in chipcHw_setClockFrequency()
408 pDependentClock = &pChipcHw->APMClock; in chipcHw_setClockFrequency()
414 pClockCtrl = &pChipcHw->TSCClock; in chipcHw_setClockFrequency()
417 pClockCtrl = &pChipcHw->LEDClock; in chipcHw_setClockFrequency()
420 pClockCtrl = &pChipcHw->I2S1Clock; in chipcHw_setClockFrequency()
429 if (pPLLReg == &pChipcHw->DDRClock) { in chipcHw_setClockFrequency()
431 …reg32_write(&pChipcHw->PLLDivider, (pChipcHw->PLLDivider & 0x00FFFFFF) | ((chipcHw_REG_PLL_DIVIDER… in chipcHw_setClockFrequency()
433 …freq = chipcHw_divide(vcoHz, (((pChipcHw->PLLDivider & 0xFF000000) >> 24) ? ((pChipcHw->PLLDivider… in chipcHw_setClockFrequency()
436 …if ((pPLLReg == &pChipcHw->LCDClock) && (chipcHw_getChipRevisionNumber() != chipcHw_REV_NUMBER_A0)… in chipcHw_setClockFrequency()
469 if (pDependentClock == (uint32_t *) &pChipcHw->ACLKClock) { in chipcHw_setClockFrequency()
518 …phaseControl = (pChipcHw->VPMClock & chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK) >> chipcHw_REG_PLL_… in vpmPhaseAlignA0()
525 phaseValue = pChipcHw->VPMClock; in vpmPhaseAlignA0()
530 …reg32_write(&pChipcHw->VPMClock, (pChipcHw->VPMClock & (~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK)… in vpmPhaseAlignA0()
534 pChipcHw->VPMClock ^= chipcHw_REG_PLL_CLOCK_PHASE_UPDATE_ENABLE; in vpmPhaseAlignA0()
536 phaseValue = pChipcHw->VPMClock; in vpmPhaseAlignA0()
560 …reg32_write(&pChipcHw->VPMClock, (pChipcHw->VPMClock & (~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK)… in vpmPhaseAlignA0()
564 pChipcHw->VPMClock ^= chipcHw_REG_PLL_CLOCK_PHASE_UPDATE_ENABLE; in vpmPhaseAlignA0()
565 phaseValue = pChipcHw->VPMClock; in vpmPhaseAlignA0()
584 …reg32_write(&pChipcHw->VPMClock, (pChipcHw->VPMClock & (~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK)… in vpmPhaseAlignA0()
588 pChipcHw->VPMClock ^= chipcHw_REG_PLL_CLOCK_PHASE_UPDATE_ENABLE; in vpmPhaseAlignA0()
589 phaseValue = pChipcHw->VPMClock; in vpmPhaseAlignA0()
608 …reg32_write(&pChipcHw->VPMClock, (pChipcHw->VPMClock & (~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK)… in vpmPhaseAlignA0()
612 pChipcHw->VPMClock ^= chipcHw_REG_PLL_CLOCK_PHASE_UPDATE_ENABLE; in vpmPhaseAlignA0()
613 phaseValue = pChipcHw->VPMClock; in vpmPhaseAlignA0()
634 …reg32_write(&pChipcHw->VPMClock, (pChipcHw->VPMClock & (~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK)… in vpmPhaseAlignA0()
638 pChipcHw->VPMClock ^= in vpmPhaseAlignA0()
641 phaseValue = pChipcHw->VPMClock; in vpmPhaseAlignA0()
664 phaseControl = (((pChipcHw->VPMClock >> chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_SHIFT) - 1) & 0x3F); in vpmPhaseAlignA0()
668 …pChipcHw->VPMClock = (pChipcHw->VPMClock & ~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK) | (phaseCont… in vpmPhaseAlignA0()
670 pChipcHw->VPMClock ^= chipcHw_REG_PLL_CLOCK_PHASE_UPDATE_ENABLE; in vpmPhaseAlignA0()
700 pChipcHw->Spare1 &= ~chipcHw_REG_SPARE1_VPM_BUS_ACCESS_ENABLE; in chipcHw_vpmPhaseAlign()
718 pChipcHw->Spare1 |= chipcHw_REG_SPARE1_VPM_BUS_ACCESS_ENABLE; in chipcHw_vpmPhaseAlign()
723 …reg32_write(&pChipcHw->VPMClock, (pChipcHw->VPMClock & (~chipcHw_REG_PLL_CLOCK_PHASE_CONTROL_MASK)… in chipcHw_vpmPhaseAlign()
727 pChipcHw->VPMClock ^= chipcHw_REG_PLL_CLOCK_PHASE_UPDATE_ENABLE; in chipcHw_vpmPhaseAlign()
734 pChipcHw->Spare1 &= ~chipcHw_REG_SPARE1_VPM_BUS_ACCESS_ENABLE; in chipcHw_vpmPhaseAlign()