Commit 6f4ec509 authored by Alessandro Rubini's avatar Alessandro Rubini

softpll-unify: use defined PPS_WIDTH, not hardwired 10ms

The commit is part of the effort in unifying softpll with wrpc-sw,
and later remove the duplicated code here in wr-switch-sw.

Besides, the very short pps width was something we had to fix anyways.
Now it's 10ms as agreed (same as wrpc-sw).  This changes the generated
binary.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 3af81f14
......@@ -323,8 +323,7 @@ void spll_init(int mode, int slave_ref_channel, int align_pps)
SPLL->DEGLITCH_THR = 1000;
PPSG->ESCR = 0;
PPSG->CR = PPSG_CR_CNT_EN | PPSG_CR_CNT_RST
| PPSG_CR_PWIDTH_W(10 * 1000 * 1000 / 16 /* 10ms */);
PPSG->CR = PPSG_CR_CNT_EN | PPSG_CR_CNT_RST | PPSG_CR_PWIDTH_W(PPS_WIDTH);
if(mode == SPLL_MODE_GRAND_MASTER)
{
......
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