ctb: change in phase done in degrees (phase reset due to change in frequency)

This commit is contained in:
2019-11-21 15:08:38 +01:00
parent d976c9fcf9
commit f8df11886a
7 changed files with 16 additions and 20 deletions

View File

@ -1154,11 +1154,11 @@ int setClockDivider(enum CLKINDEX ind, int val) {
clkPhase[SYSTEM_C3] = 0;
}
// set the phase in degreesif custom set
// set the phase in degrees (reset by pll)
{
int i = 0;
for (i = 0; i < NUM_CLOCKS; ++i) {
FILE_LOG(logINFO, ("\tPhase reset by PLL\n\tCorrecting %s clock (%d) phase to %d degrees\n", clock_names[i], i, oldPhases[i]));
FILE_LOG(logINFO, ("\tCorrecting %s clock (%d) phase to %d degrees\n", clock_names[i], i, oldPhases[i]));
setPhase(i, oldPhases[i], 1);
}
}