net: phy: marvell10g: add MACTYPE definitions for 88E21xx
authorMarek Behún <kabel@kernel.org>
Wed, 7 Apr 2021 20:22:44 +0000 (22:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2021 20:15:33 +0000 (13:15 -0700)
Add all MACTYPE definitions for 88E211088E218088E2111 and 88E2181.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c

index 7d9a45437b6974bd398d9461c6946dad36dd506b..556c9b43860e8c81e09f02238d53544c6c9db12b 100644 (file)
 enum {
        MV_PMA_FW_VER0          = 0xc011,
        MV_PMA_FW_VER1          = 0xc012,
+       MV_PMA_21X0_PORT_CTRL   = 0xc04a,
+       MV_PMA_21X0_PORT_CTRL_SWRST                             = BIT(15),
+       MV_PMA_21X0_PORT_CTRL_MACTYPE_MASK                      = 0x7,
+       MV_PMA_21X0_PORT_CTRL_MACTYPE_USXGMII                   = 0x0,
+       MV_PMA_2180_PORT_CTRL_MACTYPE_DXGMII                    = 0x1,
+       MV_PMA_2180_PORT_CTRL_MACTYPE_QXGMII                    = 0x2,
+       MV_PMA_21X0_PORT_CTRL_MACTYPE_5GBASER                   = 0x4,
+       MV_PMA_21X0_PORT_CTRL_MACTYPE_5GBASER_NO_SGMII_AN       = 0x5,
+       MV_PMA_21X0_PORT_CTRL_MACTYPE_10GBASER_RATE_MATCH       = 0x6,
        MV_PMA_BOOT             = 0xc050,
        MV_PMA_BOOT_FATAL       = BIT(0),