Commit cef47c69 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

softpll: don't control 1-PPS output, PPSi does this now

parent 3ec2591e
......@@ -275,6 +275,7 @@ void _irq_entry()
void spll_very_init()
{
PPSG = (volatile struct PPSG_WB *)BASE_PPS_GEN;
PPSG->ESCR = 0;
PPSG->CR = PPSG_CR_CNT_EN | PPSG_CR_CNT_RST | PPSG_CR_PWIDTH_W(PPS_WIDTH);
}
......@@ -309,7 +310,6 @@ void spll_init(int mode, int slave_ref_channel, int align_pps)
SPLL->OCCR = 0;
SPLL->DEGLITCH_THR = 1000;
PPSG->ESCR = 0;
PPSG->CR |= PPSG_CR_CNT_EN;
if(mode == SPLL_MODE_DISABLED)
......@@ -332,9 +332,6 @@ void spll_init(int mode, int slave_ref_channel, int align_pps)
s->aux[i].seq_state = AUX_DISABLED;
}
if(mode == SPLL_MODE_FREE_RUNNING_MASTER)
PPSG->ESCR = PPSG_ESCR_TM_VALID;
for (i = 0; i < spll_n_chan_ref; i++)
ptracker_init(&s->ptrackers[i], i, PTRACKER_AVERAGE_SAMPLES);
......
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