Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
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
White Rabbit Switch - Software
Commits
e472fac3
Commit
e472fac3
authored
Feb 25, 2019
by
baujc
Committed by
Adam Wujek
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new parameters in PPSi for the control of the PPS output
parent
9e682679
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
1 deletion
+59
-1
Kconfig
Kconfig
+42
-0
assembly_ppsi_conf.sh
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
+17
-1
No files found.
Kconfig
View file @
e472fac3
...
...
@@ -533,6 +533,48 @@ config TIME_BC
endchoice
menu "PPS generation"
config PPSGEN_PTP_FALLBACK
bool "PTP fallback"
default N
help
This option enables the PPS generation if a slave instance
programmed to use an extension protocol (WR, L1Sync, ...) is falling back
to PTP communication only.
config PPSGEN_PTP_THRESHOLD_MS
int "PTP threshold (ms)"
default 500
range 1 1000
help
This option defines the threshold corresponding to the offset from the
master used to start the generation of the PPS. It is either used by a PTP slave
instance or a instance using a protocol extension but going into the fallback PTP mode
and with the PTP fallback option active.
A 0 value means that the PPS will be not generated for the considerated cases.
When the PPS is generated, it can be also disabled when the offset from master becomes greater
than the threshold value + 20%
config PPSGEN_GM_DELAY_TO_GEN_PPS_SEC
int "Grand Master delay for PPS (sec)"
default 0
range 0 1000
help
This option allows a boundary/ordinary clock to generate PPS when it becomes Grand Master (GM) by BMCA. Becoming GM
by BMCA might be a transitory situation during a network discovery. The PPS must be activated only when all this
transitory phase is terminated. This option then allows to define a delay in seconds to respect before
generating the PPS when a GM by BMCA is detected.
A 0 value desactivate this feature.
config PPSGEN_FORCE
bool "Force PPS for testing purpose"
default N
help
This option enables the PPS generation for all cases. It should only be used for testing purpose.
endmenu
choice
prompt "PTP Port Assignment"
default PTP_PORT_PARAMS
...
...
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
View file @
e472fac3
...
...
@@ -361,7 +361,7 @@ function build_inst_ppsi_keys() {
}
globals_indexes
=
'clock-class clock-accuracy clock-allan-variance domain-number priority1 priority2 time-source externalPortConfigurationEnabled slaveOnly'
globals_indexes
=
'clock-class clock-accuracy clock-allan-variance domain-number priority1 priority2 time-source externalPortConfigurationEnabled slaveOnly
ptpPpsThresholdMs ptpFallbackPpsGen gmDelayToGenPpsSec forcePpsGen
'
globals_not_yet_supported
=
'time-source'
# PHYSICAL PORT PARAMETERS
...
...
@@ -468,6 +468,22 @@ else
globals[slaveOnly]
=
"n"
fi
if
[
-n
"
$CONFIG_PPSGEN_PTP_THRESHOLD_MS
"
]
;
then
globals[ptpPpsThresholdMs]
=
"
$CONFIG_PPSGEN_PTP_THRESHOLD_MS
"
fi
if
[
-n
"
$CONFIG_PPSGEN_PTP_FALLBACK
"
]
;
then
globals[ptpFallbackPpsGen]
=
"
$CONFIG_PPSGEN_PTP_FALLBACK
"
fi
if
[
-n
"
$CONFIG_PPSGEN_GM_DELAY_TO_GEN_PPS_SEC
"
]
;
then
globals[gmDelayToGenPpsSec]
=
"
$CONFIG_PPSGEN_GM_DELAY_TO_GEN_PPS_SEC
"
fi
if
[
-n
"
$CONFIG_PPSGEN_FORCE
"
]
;
then
globals[forcePpsGen]
=
"
$CONFIG_PPSGEN_FORCE
"
fi
for
i_port
in
{
01..18
}
;
do
# scan all the physical ports
port_vn
=
"port
${
i_port
}
"
...
...
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