]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: zynq: gem: Use hardware assisted system time stamping xilinx-v2014.2
authorPunnaiah Choudary Kalluri <punnaiah.choudary.kalluri@xilinx.com>
Mon, 19 May 2014 13:55:59 +0000 (19:25 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 29 May 2014 08:56:14 +0000 (10:56 +0200)
commit6530a9b36265deb4bcf25298ba4e1aba443f6bd4
tree9719c5c3908f62d854bedc8f4403dcc4ff474ffb
parent19de54c9c20d2762233d865ea0ca10c048dc601f
net: zynq: gem: Use hardware assisted system time stamping

Since the hardware frequency adjustment is complex,using software
method to do that.

In this mode, PTP packets are still time stamped by the NIC, but the clock
which is controlled by PTPd is the system time. For this to work, the time
stamps generated inside the NIC are transformed into system time before
feeding them into the normal PTPd machinery: each time a NIC time stamp is
extracted from the NIC, the NIC system time offset is measured and added to
the NIC time stamp to obtain the corresponding system time stamp.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_emacps.c