Commit 58d7be56 authored by Peter Jansweijer's avatar Peter Jansweijer

implement pre- and post-pll_lock spec7 function call

parent 4ea2853b
......@@ -127,6 +127,11 @@ int wrc_ptp_set_mode(int mode)
wrc_ptp_stop();
#if defined(CONFIG_TARGET_SPEC7)
// proper clock sources must be selected before pll lock!
spec7_set_pll_wr_mode(mode);
#endif
switch (mode) {
case WRC_MODE_GM:
case WRC_MODE_ABSCAL: /* absolute calibration, gm-lookalike */
......@@ -177,6 +182,11 @@ int wrc_ptp_set_mode(int mode)
}
pp_printf("\n");
#if defined(CONFIG_TARGET_SPEC7)
// Once Lock established do final SPEC7 specific synchronization
post_pll_lock(mode);
#endif
/* If we can't lock to the atomic/gps, we say it in the class */
if (error && mode == WRC_MODE_GM)
*class_ptr = PP_CLASS_WR_GM_UNLOCKED;
......
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