Commit 4af634b1 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

softpll: remove unused functionality (resync DDMTD counters), start ptrackets when MPLL starts up

parent e8c2a21e
......@@ -190,7 +190,10 @@ static inline void sequencing_fsm(struct softpll_state *s, int tag_value, int ta
case SEQ_WAIT_MAIN:
{
if (s->mpll.ld.locked)
{
start_ptrackers(s);
s->seq_state = SEQ_READY;
}
break;
}
......
......@@ -138,20 +138,3 @@ void spll_enable_tagger(int channel, int enable)
// TRACE("%s: ch %d, OCER 0x%x, RCER 0x%x\n", __FUNCTION__, channel, SPLL->OCER, SPLL->RCER);
}
void spll_resync_dmtd_counter(int channel)
{
if (channel >= spll_n_chan_ref) /* Output channel? */
SPLL->CRR_OUT = 1 << (channel - spll_n_chan_ref);
else
SPLL->CRR_IN = 1 << channel;
}
int spll_check_dmtd_resync(int channel)
{
if (channel >= spll_n_chan_ref) /* Output channel? */
return (SPLL->CRR_OUT & (1 << (channel - spll_n_chan_ref))) ? 1 : 0;
else
return (SPLL->CRR_IN & (1 << channel)) ? 1 : 0;
}
......@@ -73,7 +73,5 @@ void lowpass_init(spll_lowpass_t *lp, int alpha);
int lowpass_update(spll_lowpass_t *lp, int x);
void spll_enable_tagger(int channel, int enable);
void spll_resync_dmtd_counter(int channel);
int spll_check_dmtd_resync(int channel);
#endif // __SPLL_COMMON_H
......@@ -35,7 +35,6 @@ void ptracker_start(struct spll_ptracker_state *s)
s->sample_n = 0;
s->preserve_sign = 0;
spll_resync_dmtd_counter(s->id_b);
spll_enable_tagger(s->id_a, 1);
spll_enable_tagger(s->id_b, 1);
}
......
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