net: dsa: felix: enable PTP programmable pin
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 20 Apr 2020 02:46:51 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:38:34 +0000 (15:38 -0700)
Enable PTP programmable pin.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c

index 44015a24b087efbbc29dbadb07c66ca3c898348b..9173b95551d12ea961c136ec28141b066c72579c 100644 (file)
@@ -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