OSDN Git Service

ptp: rework gianfar_ptp as QorIQ common PTP driver
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 25 May 2018 04:40:34 +0000 (12:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 03:05:11 +0000 (23:05 -0400)
commitceefc71d4c055dab2bba2d2bfa6e7c2855154a24
treea69ac99896fa84fa5218542b83d6d7ab8297490b
parentb1d2e4e03f92734ff524f96c4b2287133de7a4a3
ptp: rework gianfar_ptp as QorIQ common PTP driver

gianfar_ptp was the PTP clock driver for 1588 timer
module of Freescale QorIQ eTSEC (Enhanced Three-Speed
Ethernet Controllers) platforms. Actually QorIQ DPAA
(Data Path Acceleration Architecture) platforms is
also using the same 1588 timer module in hardware.

This patch is to rework gianfar_ptp as QorIQ common
PTP driver to support both DPAA and eTSEC. Moved
gianfar_ptp.c to drivers/ptp/, renamed it as
ptp_qoriq.c, and renamed many variables. There were
not any function changes.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/Makefile
drivers/ptp/Kconfig
drivers/ptp/Makefile
drivers/ptp/ptp_qoriq.c [moved from drivers/net/ethernet/freescale/gianfar_ptp.c with 58% similarity]