Commit d769d02c authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

softpll/ext: report unlocked when 10MHz input is disconnected

parent f9b32181
...@@ -61,7 +61,8 @@ void external_start(struct spll_external_state *s) ...@@ -61,7 +61,8 @@ void external_start(struct spll_external_state *s)
int external_locked(volatile struct spll_external_state *s) int external_locked(volatile struct spll_external_state *s)
{ {
if (!s->helper->ld.locked || !s->main->ld.locked) if (!s->helper->ld.locked || !s->main->ld.locked ||
!(SPLL->ECCR & SPLL_ECCR_EXT_REF_PRESENT))
return 0; return 0;
switch(s->align_state) { switch(s->align_state) {
......
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