Skip to content

Commit aabb2bb

Browse files
yangbolu1991davem330
authored andcommitted
net: mscc: ocelot: enable PTP programmable pin
Enable PTP programmable pin. Signed-off-by: Yangbo Lu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cc2d87b commit aabb2bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/mscc/ocelot_board.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,15 @@ static struct ptp_clock_info ocelot_ptp_clock_info = {
372372
.max_adj = 0x7fffffff,
373373
.n_alarm = 0,
374374
.n_ext_ts = 0,
375-
.n_per_out = 0,
376-
.n_pins = 0,
375+
.n_per_out = OCELOT_PTP_PINS_NUM,
376+
.n_pins = OCELOT_PTP_PINS_NUM,
377377
.pps = 0,
378378
.gettime64 = ocelot_ptp_gettime64,
379379
.settime64 = ocelot_ptp_settime64,
380380
.adjtime = ocelot_ptp_adjtime,
381381
.adjfine = ocelot_ptp_adjfine,
382+
.verify = ocelot_ptp_verify,
383+
.enable = ocelot_ptp_enable,
382384
};
383385

384386
static int mscc_ocelot_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)