summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/ocelot/felix.c
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2020-04-20 10:46:51 +0800
committerDavid S. Miller <davem@davemloft.net>2020-04-21 15:38:34 -0700
commit5287be405ca2263a9c524a6b0a7869c59760f4e6 (patch)
tree85f67d18b3f50b388671603df0556fe0a4d8ac68 /drivers/net/dsa/ocelot/felix.c
parentaabb2bb07c963c67b8072aafcca3677e2b235be0 (diff)
downloadlinux-5287be405ca2263a9c524a6b0a7869c59760f4e6.tar.gz
linux-5287be405ca2263a9c524a6b0a7869c59760f4e6.tar.bz2
linux-5287be405ca2263a9c524a6b0a7869c59760f4e6.zip
net: dsa: felix: enable PTP programmable pin
Enable PTP programmable pin. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/ocelot/felix.c')
-rw-r--r--drivers/net/dsa/ocelot/felix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c
index 44015a24b087..9173b95551d1 100644
--- a/drivers/net/dsa/ocelot/felix.c
+++ b/drivers/net/dsa/ocelot/felix.c
@@ -501,13 +501,15 @@ static struct ptp_clock_info ocelot_ptp_clock_info = {
.max_adj = 0x7fffffff,
.n_alarm = 0,
.n_ext_ts = 0,
- .n_per_out = 0,
- .n_pins = 0,
+ .n_per_out = OCELOT_PTP_PINS_NUM,
+ .n_pins = OCELOT_PTP_PINS_NUM,
.pps = 0,
.gettime64 = ocelot_ptp_gettime64,
.settime64 = ocelot_ptp_settime64,
.adjtime = ocelot_ptp_adjtime,
.adjfine = ocelot_ptp_adjfine,
+ .verify = ocelot_ptp_verify,
+ .enable = ocelot_ptp_enable,
};
/* Hardware initialization done here so that we can allocate structures with