]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: define a global ptp_qoriq structure pointer
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 18 Sep 2020 09:07:59 +0000 (17:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:32:48 +0000 (14:32 -0700)
commitc06c4628c04c400fd9d931e90ff93048e96dc90c
treecc083e6f76a57fd8ef266943f3f01921744ea314
parent2f64623a50734a258e18bf706e7fa20fa2a9750c
dpaa2-eth: define a global ptp_qoriq structure pointer

Define a global ptp_qoriq structure pointer, and export to use.
The ptp clock operations will be used in dpaa2-eth driver.
For example, supporting one step timestamping needs to write
current time to hardware frame annotation before sending and
then hardware inserts the delay time on frame during sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h