]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: move ocelot ptp clock code out of ocelot.c
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 20 Apr 2020 02:46:45 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:33 +0000 (15:38 -0700)
commitf1fa683b96214c582493d108a9375e25be5980c6
treed6ef5c1580d97a2f1900bfa109d296058670708f
parent0bfda774c9e0b3a4e0a10af9aa05295b8c72d7ea
net: mscc: ocelot: move ocelot ptp clock code out of ocelot.c

The Ocelot PTP clock driver had been embedded into ocelot.c driver.
It had supported basic gettime64/settime64/adjtime/adjfine functions
by now which were used by both Ocelot switch and Felix switch.

This patch is to move current ptp clock code out of ocelot.c driver
maintaining as a single ocelot_ptp.c.
For futher new features implementation, the common code could be put
in ocelot_ptp.c and the switch specific code should be in specific
switch driver. The interrupt implementation in SoC is different
between Ocelot and Felix.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/Makefile
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot.h
drivers/net/ethernet/mscc/ocelot_board.c
drivers/net/ethernet/mscc/ocelot_ptp.c [new file with mode: 0644]
drivers/net/ethernet/mscc/ocelot_ptp.h [deleted file]
include/soc/mscc/ocelot.h
include/soc/mscc/ocelot_ptp.h [new file with mode: 0644]