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
1af0725b
Commit
1af0725b
authored
Apr 19, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: follow up wrpc-sw-v5 changes in the softpll API
parent
657874c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+3
-5
wrpc-spll.c
arch-wrpc/wrpc-spll.c
+1
-1
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
1af0725b
...
...
@@ -133,7 +133,7 @@ int wrc_ptp_set_mode(int mode)
wrp
->
wrConfig
=
WR_M_ONLY
;
ppi
->
role
=
PPSI_ROLE_MASTER
;
*
class_ptr
=
PP_CLASS_WR_GM_LOCKED
;
spll_init
(
SPLL_MODE_GRAND_MASTER
,
0
,
1
);
spll_init
(
SPLL_MODE_GRAND_MASTER
,
0
,
SPLL_FLAG_ALIGN_PPS
);
shw_pps_gen_unmask_output
(
1
);
lock_timeout
=
LOCK_TIMEOUT_GM
;
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
=
PP_CLASS_WR_GM_LOCKED
;
...
...
@@ -144,7 +144,7 @@ int wrc_ptp_set_mode(int mode)
wrp
->
wrConfig
=
WR_M_ONLY
;
ppi
->
role
=
PPSI_ROLE_MASTER
;
*
class_ptr
=
PP_CLASS_DEFAULT
;
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
1
);
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
SPLL_FLAG_ALIGN_PPS
);
shw_pps_gen_unmask_output
(
1
);
lock_timeout
=
LOCK_TIMEOUT_FM
;
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
=
PP_CLASS_DEFAULT
;
...
...
@@ -155,7 +155,7 @@ int wrc_ptp_set_mode(int mode)
wrp
->
wrConfig
=
WR_S_ONLY
;
ppi
->
role
=
PPSI_ROLE_SLAVE
;
*
class_ptr
=
PP_CLASS_SLAVE_ONLY
;
spll_init
(
SPLL_MODE_SLAVE
,
0
,
1
);
//spll_init(SPLL_MODE_SLAVE, 0, SPLL_FLAG_ALIGN_PPS
);
shw_pps_gen_unmask_output
(
0
);
break
;
}
...
...
@@ -215,7 +215,6 @@ int wrc_ptp_start()
{
struct
pp_instance
*
ppi
=
&
ppi_static
;
pp_printf
(
"PTP start
\n
"
);
pp_init_globals
(
&
ppg_static
,
&
__pp_default_rt_opts
);
/* Call the state machine. Being it in "Initializing" state, make
...
...
@@ -235,7 +234,6 @@ int wrc_ptp_stop()
struct
pp_instance
*
ppi
=
&
ppi_static
;
struct
wr_dsport
*
wrp
=
WR_DSPOR
(
ppi
);
pp_printf
(
"PTP stop
\n
"
);
wrp
->
ops
->
enable_timing_output
(
ppi
,
0
);
/* Moving fiber: forget about this parent (FIXME: shouldn't be here) */
wrp
->
parentWrConfig
=
wrp
->
parentWrModeOn
=
0
;
...
...
arch-wrpc/wrpc-spll.c
View file @
1af0725b
...
...
@@ -17,7 +17,7 @@ extern uint32_t cal_phase_transition;
int
wrpc_spll_locking_enable
(
struct
pp_instance
*
ppi
)
{
spll_init
(
SPLL_MODE_SLAVE
,
0
,
1
);
spll_init
(
SPLL_MODE_SLAVE
,
0
,
SPLL_FLAG_ALIGN_PPS
);
spll_enable_ptracker
(
0
,
1
);
rxts_calibration_start
();
return
WR_SPLL_OK
;
...
...
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