[PATCH v2 net-next 0/2] timestamping support for gianfar
Manfred Rudigier
Manfred.Rudigier at omicron.at
Fri Apr 9 19:09:25 EST 2010
On 2010-04-07 Manfred Rudigier wrote:
> this patch series adds support for hardware time stamping to gianfar. It uses
> the new SO_TIMESTAMPING infrastructure to deliver raw hardware timestamps to
> user space applications.
>
> Freescale CPUs with an eTSEC are able to time stamp all incoming network packets
> and can also time stamp transmit packets when instructed. The time stamps are
> generated by the eTSEC timer clock module which is running either from an
> external oscillator or internal clock.
>
> The submitted patches do not initialize the timer clock module since the
> oscillator frequency might be different from board to board. Thus the user
> must configure the timer clock module by hand at the moment - otherwise no
> time stamps will be reported. Below is a simple example code which
> shows how to configure the timer clock module on the P2020DS/RDB. It can be
> used to quickly try out the patches.
>
> Testing was done with the time stamping program from Patrick Ohly which can
> be found in the kernel sources under Documentation/networking/timestamping.
> I have verified the functionality on the MPC8313RDB, P2020DS and P2020RDB
> board with the latest net-2.6 kernel. Send and receive time stamps could be
> retrieved on all eTSEC ports.
Hello,
I've modified the patches according to your comments so far.
Version 2 changes:
- Only two instead of four patches so every patch adds some useful functionality
- hwts_rx_en and hwts_tx_en are no bitfields any more
Manfred
More information about the Linuxppc-dev
mailing list