Skip to content

Commit e8e1307

Browse files
kylehendrydevkuba-moo
authored andcommitted
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>
1 parent c251304 commit e8e1307

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/net/dsa/b53/b53_mmap.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ static const struct b53_phy_info bcm6318_ephy_info = {
4949
.ephy_offset = bcm6318_ephy_offsets,
5050
};
5151

52+
static const u32 bcm6368_ephy_offsets[] = {2, 3, 4, 5};
53+
54+
static const struct b53_phy_info bcm6368_ephy_info = {
55+
.ephy_enable_mask = BIT(0),
56+
.ephy_port_mask = GENMASK((ARRAY_SIZE(bcm6368_ephy_offsets) - 1), 0),
57+
.ephy_bias_bit = 0,
58+
.ephy_offset = bcm6368_ephy_offsets,
59+
};
60+
5261
static const u32 bcm63268_ephy_offsets[] = {4, 9, 14};
5362

5463
static const struct b53_phy_info bcm63268_ephy_info = {
@@ -347,6 +356,8 @@ static int b53_mmap_probe(struct platform_device *pdev)
347356
pdata->chip_id == BCM6328_DEVICE_ID ||
348357
pdata->chip_id == BCM6362_DEVICE_ID)
349358
priv->phy_info = &bcm6318_ephy_info;
359+
else if (pdata->chip_id == BCM6368_DEVICE_ID)
360+
priv->phy_info = &bcm6368_ephy_info;
350361
else if (pdata->chip_id == BCM63268_DEVICE_ID)
351362
priv->phy_info = &bcm63268_ephy_info;
352363
}

0 commit comments

Comments
 (0)