diff options
author | Kyle Hendry <kylehendrydev@gmail.com> | 2025-07-23 20:52:45 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-25 14:07:34 -0700 |
commit | e8e13073dff7052b144d002bae2cfe9ddfa27e2a (patch) | |
tree | ffee7cb1ba1e1a0adafe5dbb11c39269e2df4421 | |
parent | c251304ab021ff21c77e83e0babcb9eb76f8787a (diff) |
net: dsa: b53: mmap: Add register layout for bcm6368
Add ephy register info for bcm6368.
Signed-off-by: Kyle Hendry <kylehendrydev@gmail.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20250724035300.20497-7-kylehendrydev@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/dsa/b53/b53_mmap.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/dsa/b53/b53_mmap.c b/drivers/net/dsa/b53/b53_mmap.c index 51303f075a1f..8f5914e2a790 100644 --- a/drivers/net/dsa/b53/b53_mmap.c +++ b/drivers/net/dsa/b53/b53_mmap.c @@ -49,6 +49,15 @@ static const struct b53_phy_info bcm6318_ephy_info = { .ephy_offset = bcm6318_ephy_offsets, }; +static const u32 bcm6368_ephy_offsets[] = {2, 3, 4, 5}; + +static const struct b53_phy_info bcm6368_ephy_info = { + .ephy_enable_mask = BIT(0), + .ephy_port_mask = GENMASK((ARRAY_SIZE(bcm6368_ephy_offsets) - 1), 0), + .ephy_bias_bit = 0, + .ephy_offset = bcm6368_ephy_offsets, +}; + static const u32 bcm63268_ephy_offsets[] = {4, 9, 14}; static const struct b53_phy_info bcm63268_ephy_info = { @@ -347,6 +356,8 @@ static int b53_mmap_probe(struct platform_device *pdev) pdata->chip_id == BCM6328_DEVICE_ID || pdata->chip_id == BCM6362_DEVICE_ID) priv->phy_info = &bcm6318_ephy_info; + else if (pdata->chip_id == BCM6368_DEVICE_ID) + priv->phy_info = &bcm6368_ephy_info; else if (pdata->chip_id == BCM63268_DEVICE_ID) priv->phy_info = &bcm63268_ephy_info; } |