[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41018700-c51c-61ed-762d-01c08e7f13f5@gmail.com>
Date: Fri, 7 May 2021 22:58:55 +0300
From: Claudiu Manoil <claudiu.manoil@...il.com>
To: Yangbo Lu <yangbo.lu@....com>, netdev@...r.kernel.org
Cc: "David S . Miller" <davem@...emloft.net>,
Richard Cochran <richardcochran@...il.com>,
Claudiu Manoil <claudiu.manoil@....com>,
Jakub Kicinski <kuba@...nel.org>
Subject: Re: [net-next 4/6] enetc_ptp: support ptp virtual clock
On 07.05.2021 11:57, Yangbo Lu wrote:
> Add support for ptp virtual clock.
>
> Signed-off-by: Yangbo Lu <yangbo.lu@....com>
> ---
> drivers/net/ethernet/freescale/enetc/enetc_ptp.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/net/ethernet/freescale/enetc/enetc_ptp.c b/drivers/net/ethernet/freescale/enetc/enetc_ptp.c
> index bc594892507a..52de736df800 100644
> --- a/drivers/net/ethernet/freescale/enetc/enetc_ptp.c
> +++ b/drivers/net/ethernet/freescale/enetc/enetc_ptp.c
> @@ -10,6 +10,16 @@
> int enetc_phc_index = -1;
> EXPORT_SYMBOL(enetc_phc_index);
>
> +struct ptp_vclock_cc ptp_qoriq_vclock_cc = {
^ static
> + .cc.read = ptp_qoriq_clock_read,
> + .cc.mask = CYCLECOUNTER_MASK(64),
> + .cc.shift = 28,
> + .cc.mult = (1 << 28),
> + .refresh_interval = (HZ * 60),
> + .mult_num = (1 << 6),
> + .mult_dem = 15625,
> +};
> +
Powered by blists - more mailing lists