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
e733ca9d
Commit
e733ca9d
authored
Oct 22, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: fix clock class for master/grandmaster/slave
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
5f1e3cb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+3
-6
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
e733ca9d
...
...
@@ -94,31 +94,28 @@ int wrc_ptp_set_mode(int mode)
switch
(
mode
)
{
case
WRC_MODE_GM
:
/* FIXME multiport rtOpts.primarySource = TRUE; */
WR_DSPOR
(
ppi
)
->
wrConfig
=
WR_M_ONLY
;
ppi
->
master_only
=
TRUE
;
ppi
->
slave_only
=
FALSE
;
*
class_ptr
=
PP_
WRMASTER_CLOCK_CLASS
;
*
class_ptr
=
PP_
CLASS_WR_GM_LOCKED
;
spll_init
(
SPLL_MODE_GRAND_MASTER
,
0
,
1
);
lock_timeout
=
LOCK_TIMEOUT_GM
;
break
;
case
WRC_MODE_MASTER
:
/* FIXME multiport rtOpts.primarySource = FALSE; */
WR_DSPOR
(
ppi
)
->
wrConfig
=
WR_M_ONLY
;
ppi
->
master_only
=
TRUE
;
ppi
->
slave_only
=
FALSE
;
*
class_ptr
=
PP_
WRMASTER_CLOCK_CLASS
;
*
class_ptr
=
PP_
CLASS_WR_GM_UNLOCKED
;
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
1
);
lock_timeout
=
LOCK_TIMEOUT_FM
;
break
;
case
WRC_MODE_SLAVE
:
/* FIXME multiport rtOpts.primarySource = FALSE; */
WR_DSPOR
(
ppi
)
->
wrConfig
=
WR_S_ONLY
;
ppi
->
master_only
=
FALSE
;
ppi
->
slave_only
=
TRUE
;
*
class_ptr
=
PP_
WRMASTER_CLOCK_CLASS
;
*
class_ptr
=
PP_
CLASS_SLAVE_ONLY
;
spll_init
(
SPLL_MODE_SLAVE
,
0
,
1
);
break
;
}
...
...
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