[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6839c4e9-123d-227a-630d-fae8a2df6483@gmail.com>
Date: Tue, 9 Nov 2021 10:04:19 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Martin Kaistra <martin.kaistra@...utronix.de>,
Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>
Cc: Richard Cochran <richardcochran@...il.com>,
Kurt Kanzenbach <kurt@...utronix.de>,
Vladimir Oltean <olteanv@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
John Stultz <john.stultz@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Stephen Boyd <sboyd@...nel.org>,
Russell King <linux@...linux.org.uk>,
Marc Kleine-Budde <mkl@...gutronix.de>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH v2 1/7] net: dsa: b53: Add BroadSync HD register
definitions
On 11/9/21 1:50 AM, Martin Kaistra wrote:
> From: Kurt Kanzenbach <kurt@...utronix.de>
>
> Add register definitions for the BroadSync HD features of
> BCM53128. These will be used to enable PTP support.
>
> Signed-off-by: Kurt Kanzenbach <kurt@...utronix.de>
> Signed-off-by: Martin Kaistra <martin.kaistra@...utronix.de>
> ---
[snip]
> +/*************************************************************************
> + * ARL Control Registers
> + *************************************************************************/
> +
> +/* Multiport Control Register (16 bit) */
> +#define B53_MPORT_CTRL 0x0e
> +#define MPORT_CTRL_DIS_FORWARD 0
> +#define MPORT_CTRL_CMP_ETYPE 1
> +#define MPORT_CTRL_CMP_ADDR 2
> +#define MPORT_CTRL_CMP_ADDR_ETYPE 3
> +#define MPORT_CTRL_SHIFT(x) ((x) << 1)
> +#define MPORT_CTRL_MASK 0x2
The mask should be 0x3 since this is a 2-bit wide field.
--
Florian
Powered by blists - more mailing lists