Skip to content

Commit 5c3407a

Browse files
jbrun3tdavem330
authored andcommitted
net: phy: meson-gxl: add g12a support
The g12a SoC family uses the type of internal PHY that was used on the gxl family. The quirks of gxl family, like the LPA register corruption, appear to have been resolved on this new SoC generation. Signed-off-by: Jerome Brunet <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7090425 commit 5c3407a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/net/phy/meson-gxl.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,22 @@ static struct phy_driver meson_gxl_phy[] = {
237237
.config_intr = meson_gxl_config_intr,
238238
.suspend = genphy_suspend,
239239
.resume = genphy_resume,
240+
}, {
241+
PHY_ID_MATCH_EXACT(0x01803301),
242+
.name = "Meson G12A Internal PHY",
243+
.features = PHY_BASIC_FEATURES,
244+
.flags = PHY_IS_INTERNAL,
245+
.soft_reset = genphy_soft_reset,
246+
.ack_interrupt = meson_gxl_ack_interrupt,
247+
.config_intr = meson_gxl_config_intr,
248+
.suspend = genphy_suspend,
249+
.resume = genphy_resume,
240250
},
241251
};
242252

243253
static struct mdio_device_id __maybe_unused meson_gxl_tbl[] = {
244254
{ 0x01814400, 0xfffffff0 },
255+
{ PHY_ID_MATCH_VENDOR(0x01803301) },
245256
{ }
246257
};
247258

0 commit comments

Comments
 (0)