Commit 8e5c3e8d authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

moved from switch-sw: SPLL, slave mode fix

Tom's fix for helper PLL, in Slave mode it should use RX clock instead of REF clock.
parent 75b927a4
......@@ -340,8 +340,14 @@ void spll_init(int mode, int slave_ref_channel, int align_pps)
else
s->seq_state = SEQ_CLEAR_DACS;
int helper_ref;
if( mode == SPLL_MODE_SLAVE)
helper_ref = slave_ref_channel; // Slave mode: lock the helper to an uplink port
else
helper_ref = spll_n_chan_ref; // Master/GM mode: lock the helper to the local ref clock
helper_init(&s->helper, spll_n_chan_ref);
helper_init(&s->helper, helper_ref);
mpll_init(&s->mpll, slave_ref_channel, spll_n_chan_ref);
for (i = 0; i < spll_n_chan_out - 1; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment