Skip to content

Commit 5287be4

Browse files
yangbolu1991davem330
authored andcommitted
net: dsa: felix: 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 aabb2bb commit 5287be4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/dsa/ocelot/felix.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,15 @@ static struct ptp_clock_info ocelot_ptp_clock_info = {
501501
.max_adj = 0x7fffffff,
502502
.n_alarm = 0,
503503
.n_ext_ts = 0,
504-
.n_per_out = 0,
505-
.n_pins = 0,
504+
.n_per_out = OCELOT_PTP_PINS_NUM,
505+
.n_pins = OCELOT_PTP_PINS_NUM,
506506
.pps = 0,
507507
.gettime64 = ocelot_ptp_gettime64,
508508
.settime64 = ocelot_ptp_settime64,
509509
.adjtime = ocelot_ptp_adjtime,
510510
.adjfine = ocelot_ptp_adjfine,
511+
.verify = ocelot_ptp_verify,
512+
.enable = ocelot_ptp_enable,
511513
};
512514

513515
/* Hardware initialization done here so that we can allocate structures with

0 commit comments

Comments
 (0)