Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
58d7be56
Commit
58d7be56
authored
Aug 31, 2020
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement pre- and post-pll_lock spec7 function call
parent
4ea2853b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+10
-0
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
58d7be56
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment