Define the MAC trunking page offset and its register layout to implement bonding in the next patches.
Signed-off-by: Florian Fainelli <f.faine...@gmail.com> --- drivers/net/dsa/b53/b53_regs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/dsa/b53/b53_regs.h b/drivers/net/dsa/b53/b53_regs.h index 2a9f421680aa..d02e4f7dda10 100644 --- a/drivers/net/dsa/b53/b53_regs.h +++ b/drivers/net/dsa/b53/b53_regs.h @@ -44,6 +44,9 @@ /* Port VLAN Page */ #define B53_PVLAN_PAGE 0x31 +/* Trunking Page */ +#define B53_TRUNK_PAGE 0x32 + /* VLAN Registers */ #define B53_VLAN_PAGE 0x34 @@ -360,6 +363,21 @@ #define B53_JOIN_ALL_VLAN_EN 0x50 /************************************************************************* + * Trunking Registers + *************************************************************************/ + +/* MAC Trunking Control Register (8 bit) */ +#define B53_MAC_TRUNK_CTRL 0x00 +#define TRK_HASH_IDX_DA_SA 0 +#define TRK_HASH_IDX_DA 1 +#define TRK_HASH_IDX_SA 2 +#define TRK_HASH_IDX_MASK 0x3 +#define MAC_BASE_TRNK_EN BIT(3) + +/* MAC Trunking Group Register (16 bit) */ +#define B53_MAC_TRUNK_GROUP(x) (0x10 + (x) * 2) + +/************************************************************************* * 802.1Q Page Registers *************************************************************************/ -- 2.11.0