Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
a5c0cc3f
Commit
a5c0cc3f
authored
Aug 19, 2019
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ljd: cleanup to allow WRPC compilation
parent
367b21af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spll_external.c
softpll/spll_external.c
+7
-7
No files found.
softpll/spll_external.c
View file @
a5c0cc3f
...
...
@@ -13,8 +13,6 @@
#include <wrc.h>
#include "softpll_ng.h"
#include "irq.h"
#include "gpio-wrs.h"
#include "syscon.h"
#define ALIGN_SAMPLE_PERIOD 100000
#define ALIGN_TARGET 0
...
...
@@ -99,8 +97,6 @@ static inline int get_pps_latency(int sel)
int
external_align_fsm
(
volatile
struct
spll_external_state
*
s
)
{
int
v
,
done_sth
=
0
;
uint32_t
f_ext
=
0
;
int
ljd_ad9516_stat
;
static
int
timeout
;
switch
(
s
->
align_state
)
{
...
...
@@ -112,7 +108,11 @@ int external_align_fsm(volatile struct spll_external_state *s)
SPLL
->
ECCR
|=
SPLL_ECCR_EXT_REF_PLLRST
;
s
->
align_state
=
ALIGN_STATE_WAIT_PLOCK
;
done_sth
++
;
}
else
if
(
ljd_present
)
{
}
#if defined(CONFIG_WR_SWITCH)
else
if
(
ljd_present
)
{
uint32_t
f_ext
;
int
ljd_ad9516_stat
;
/* reset ljd ad9516 */
SPLL
->
ECCR
|=
SPLL_ECCR_EXT_REF_PLLRST
;
timer_delay
(
10
);
...
...
@@ -125,8 +125,8 @@ int external_align_fsm(volatile struct spll_external_state *s)
pp_printf
(
"External AD9516 locked
\n
"
);
}
}
break
;
#endif
break
;
case
ALIGN_STATE_WAIT_PLOCK
:
SPLL
->
ECCR
&=
(
~
SPLL_ECCR_EXT_REF_PLLRST
);
...
...
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