octeontx2-af: Use ptp input clock info from firmware data
authorSubbaraya Sundeep <sbhatta@marvell.com>
Tue, 28 Sep 2021 11:31:00 +0000 (17:01 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 12:50:37 +0000 (13:50 +0100)
commite266f66393963964c867aabee67820222109771c
tree62daa62780d06d2ac857887cfea552588911e91b
parentd1489208681dfe432609fdaa49b160219c6e221c
octeontx2-af: Use ptp input clock info from firmware data

The input clock frequency of PTP block is figured
out from hardware reset block currently. The firmware
data already has this info in sclk. Hence simplify
ptp driver to use sclk from firmware data.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/ptp.c
drivers/net/ethernet/marvell/octeontx2/af/ptp.h
drivers/net/ethernet/marvell/octeontx2/af/rvu.c