]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: rswitch: Add support for split MII and SerDes
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 27 Oct 2025 16:45:35 +0000 (17:45 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 6 Nov 2025 19:08:37 +0000 (20:08 +0100)
commitaf76474fd4c9c557c60fe596263d864d8a3e7d6a
tree201001d7ace7e9a9ded9fe98c0c7d99c81ff91ae
parenta8a97474fdcbd5d9153580a6ba3dddf308c06fc3
net: rswitch: Add support for split MII and SerDes

This IP does support operating MII and SerDes via different ports.
Currently, the driver assumes that MII and SerDes are always bound
together on the same port, but this may not be the case. Implement
support for controlling MII and SerDes separately.

While the change is extensive, the gist of the change is to pass
pointer to the selected port registers to MII or SerDes functions,
depending on which port and operations should be done on that port.
Each combined ETHA instance contains both MII and SerDes register
pointers, which may not point to the same port, and passes those
registers to MII and SerDes functions respectively to control the
MII or SerDes of each port.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/rswitch.c