]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-ptp: reuse ptp_qoriq driver
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 14 Jun 2019 10:40:51 +0000 (18:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 20:43:06 +0000 (13:43 -0700)
commit5e9e61877e958fada460714becc65ae654c3bbb3
treecb87d41151d1fc193c211fa209ce5a88c989b636
parent184759b32db95cdfcea8f87af40ce1810e661481
dpaa2-ptp: reuse ptp_qoriq driver

Although dpaa2-ptp.c driver is a fsl_mc_driver which
is using MC APIs for register accessing, it's same IP
block with eTSEC/DPAA/ENETC 1588 timer.
This patch is to convert to reuse ptp_qoriq driver by
using register ioremap and dropping related MC APIs.
However the interrupts could only be handled by MC which
fires MSIs to ARM cores. So the interrupt enabling and
handling still rely on MC APIs.

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