Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4986b4f0 authored by Richard Cochran's avatar Richard Cochran Committed by David S. Miller
Browse files

ptp: drivers: set the number of programmable pins.



This patch updates the many PTP Hardware Clock drivers with the
newly introduced field that advertises the number of programmable
pins. Some of these devices do have programmable pins, but the
implementation will have to wait for follow on patches.

Signed-off-by: default avatarRichard Cochran <richardcochran@gmail.com>
Acked-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 653104d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1040,6 +1040,7 @@ static struct ptp_clock_info bfin_ptp_caps = {
	.n_alarm	= 0,
	.n_ext_ts	= 0,
	.n_per_out	= 0,
	.n_pins		= 0,
	.pps		= 0,
	.adjfreq	= bfin_ptp_adjfreq,
	.adjtime	= bfin_ptp_adjtime,
+1 −0
Original line number Diff line number Diff line
@@ -6322,6 +6322,7 @@ static const struct ptp_clock_info tg3_ptp_caps = {
	.n_alarm	= 0,
	.n_ext_ts	= 0,
	.n_per_out	= 1,
	.n_pins		= 0,
	.pps		= 0,
	.adjfreq	= tg3_ptp_adjfreq,
	.adjtime	= tg3_ptp_adjtime,
+1 −0
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ void fec_ptp_init(struct platform_device *pdev)
	fep->ptp_caps.n_alarm = 0;
	fep->ptp_caps.n_ext_ts = 0;
	fep->ptp_caps.n_per_out = 0;
	fep->ptp_caps.n_pins = 0;
	fep->ptp_caps.pps = 0;
	fep->ptp_caps.adjfreq = fec_ptp_adjfreq;
	fep->ptp_caps.adjtime = fec_ptp_adjtime;
+1 −0
Original line number Diff line number Diff line
@@ -414,6 +414,7 @@ static struct ptp_clock_info ptp_gianfar_caps = {
	.n_alarm	= 0,
	.n_ext_ts	= N_EXT_TS,
	.n_per_out	= 0,
	.n_pins		= 0,
	.pps		= 1,
	.adjfreq	= ptp_gianfar_adjfreq,
	.adjtime	= ptp_gianfar_adjtime,
+1 −0
Original line number Diff line number Diff line
@@ -189,6 +189,7 @@ static const struct ptp_clock_info e1000e_ptp_clock_info = {
	.n_alarm	= 0,
	.n_ext_ts	= 0,
	.n_per_out	= 0,
	.n_pins		= 0,
	.pps		= 0,
	.adjfreq	= e1000e_phc_adjfreq,
	.adjtime	= e1000e_phc_adjtime,
Loading