Commit e03a8e66 authored by Jean-Claude BAU's avatar Jean-Claude BAU Committed by Adam Wujek

Add parameter slaveOnly

The parameter was already present in pps.conf but not yet managed by
kconfig and the ppsi.conf generator
parent 78458a66
...@@ -6,6 +6,15 @@ config PTP_OPT_EXT_PORT_CONFIG_ENABLED ...@@ -6,6 +6,15 @@ config PTP_OPT_EXT_PORT_CONFIG_ENABLED
This option is used by the high accuracy profile to force the port state. This option is used by the high accuracy profile to force the port state.
For more details please refer to the IEEE 1588-20019 (clause 17.6.2) For more details please refer to the IEEE 1588-20019 (clause 17.6.2)
config PTP_SLAVE_ONLY
depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED="n"
bool "slaveOnly"
default false
help
A slaveOnly Ordinary Clock utilizes the slaveOnly state machine
which does not enable transition to MASTER state.
For more details please refer to the IEEE 1588-20019 (clause 9.2.2.1)
menu "PORT 1" menu "PORT 1"
config PORT01_IFACE config PORT01_IFACE
......
...@@ -29,6 +29,15 @@ function print_header() { ...@@ -29,6 +29,15 @@ function print_header() {
echo -e "\thelp" >>$OUTPUT_FILE echo -e "\thelp" >>$OUTPUT_FILE
echo -e "\t This option is used by the high accuracy profile to force the port state." >>$OUTPUT_FILE echo -e "\t This option is used by the high accuracy profile to force the port state." >>$OUTPUT_FILE
echo -e "\t For more details please refer to the IEEE 1588-20019 (clause 17.6.2)" >>$OUTPUT_FILE echo -e "\t For more details please refer to the IEEE 1588-20019 (clause 17.6.2)" >>$OUTPUT_FILE
echo -e "\nconfig PTP_SLAVE_ONLY" >>$OUTPUT_FILE
echo -e "\tdepends on PTP_OPT_EXT_PORT_CONFIG_ENABLED=\"n\" " >>$OUTPUT_FILE
echo -e "\tbool \"slaveOnly\" " >>$OUTPUT_FILE
echo -e "\tdefault false" >>$OUTPUT_FILE
echo -e "\thelp" >>$OUTPUT_FILE
echo -e "\t A slaveOnly Ordinary Clock utilizes the slaveOnly state machine" >>$OUTPUT_FILE
echo -e "\t which does not enable transition to MASTER state." >>$OUTPUT_FILE
echo -e "\t For more details please refer to the IEEE 1588-20019 (clause 9.2.2.1)" >>$OUTPUT_FILE
} }
function print_footer() { function print_footer() {
......
...@@ -361,7 +361,7 @@ function build_inst_ppsi_keys() { ...@@ -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' globals_indexes='clock-class clock-accuracy clock-allan-variance domain-number priority1 priority2 time-source externalPortConfigurationEnabled slaveOnly'
globals_not_yet_supported='time-source' globals_not_yet_supported='time-source'
# PHYSICAL PORT PARAMETERS # PHYSICAL PORT PARAMETERS
...@@ -458,6 +458,14 @@ fi ...@@ -458,6 +458,14 @@ fi
if [ -n "$CONFIG_PTP_OPT_EXT_PORT_CONFIG_ENABLED" ]; then if [ -n "$CONFIG_PTP_OPT_EXT_PORT_CONFIG_ENABLED" ]; then
globals[externalPortConfigurationEnabled]="$CONFIG_PTP_OPT_EXT_PORT_CONFIG_ENABLED" globals[externalPortConfigurationEnabled]="$CONFIG_PTP_OPT_EXT_PORT_CONFIG_ENABLED"
else
globals[externalPortConfigurationEnabled]="n"
fi
if [ -n "$CONFIG_PTP_SLAVE_ONLY" ] && [ "${globals[externalPortConfigurationEnabled]}" = "n" ]; then
globals[slaveOnly]="$CONFIG_PTP_SLAVE_ONLY"
else
globals[slaveOnly]="n"
fi fi
for i_port in {01..18}; do # scan all the physical ports for i_port in {01..18}; do # scan all the physical ports
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment