Commit cabb9faa authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

softpll: initialize registers pointer in spll_very_init() to fix a freeze in the…

softpll: initialize registers pointer in spll_very_init() to fix a freeze in the simulation firmware
parent 18d0abfc
......@@ -282,6 +282,7 @@ void _irq_entry(void)
void spll_very_init()
{
SPLL = (volatile struct SPLL_WB *)BASE_SOFTPLL;
PPSG = (volatile struct PPSG_WB *)BASE_PPS_GEN;
PPSG->CR = PPSG_CR_CNT_EN | PPSG_CR_CNT_RST | PPSG_CR_PWIDTH_W(PPS_WIDTH);
}
......
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