diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2021-06-30 16:11:53 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-01 13:08:18 -0700 |
commit | 73f37068d540eba5f93ba3a0019bf479d35ebd76 (patch) | |
tree | c690dbcde555185b5f7f2634ea8d83edf114bf7d /tools/iio | |
parent | 5d43f951b1ac797450bb4d230fdc960b739bea04 (diff) |
ptp: support ptp physical/virtual clocks conversion
Support ptp physical/virtual clocks conversion via sysfs.
There will be a new attribute n_vclocks under ptp physical
clock sysfs.
- In default, the value is 0 meaning only ptp physical clock
is in use.
- Setting the value can create corresponding number of ptp
virtual clocks to use. But current physical clock is guaranteed
to stay free running.
- Setting the value back to 0 can delete virtual clocks and back
use physical clock again.
Another new attribute max_vclocks control the maximum number of
ptp vclocks.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/iio')
0 files changed, 0 insertions, 0 deletions