projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc2d87b
)
net: mscc: ocelot: enable PTP programmable pin
author
Yangbo Lu
<yangbo.lu@nxp.com>
Mon, 20 Apr 2020 02:46:50 +0000
(10:46 +0800)
committer
David 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/ethernet/mscc/ocelot_board.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mscc/ocelot_board.c
b/drivers/net/ethernet/mscc/ocelot_board.c
index ee016f7ed934db1574c9aabe328a563dd09d6bcd..67a8d61c926a666258a97ad2aa427ee4eac47fc6 100644
(file)
--- a/
drivers/net/ethernet/mscc/ocelot_board.c
+++ b/
drivers/net/ethernet/mscc/ocelot_board.c
@@
-372,13
+372,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,
};
static int mscc_ocelot_probe(struct platform_device *pdev)