Cotume board based on beaglebone black with marvell switch 88e6341 U-Boot

Hi,

We have a new board based on the AM335X Beaglebone black.

I am using the Beagle U-Boot and Kernel and it looks that everything is working except Networking.

The difference is that in our board the AM3352 is connected via MII to a Marvell 5 ports switch (88e6341).

What modifications should I do in the U-Boot source code (or also in the Kernel) in order to support that architecture?

Thanks

Avner

88E63416-Port AVB GE Switch, 4 GE PHYs + 1 RGMII/MII/RMII + 1 2.5G
Serdes/SGMIIYes
88E61556-Port GE Switch, 6 SerDes or 5 SerDes + 1 GMIINo
88E63527-Port AVB GE Switch, 5 GE PHYs + 1 Serdes + 1 RGMII/MII/RMII +
1 GMII/RGMII/MII/RMIIYes

First i'd try just enabling u-boot's: mv88e6352.c driver:

https://github.com/trini/u-boot/blob/master/drivers/net/phy/mv88e6352.c

Second, enable mavrell's kernel phy driver:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/phy/marvell.c?h=v4.17-rc7

Regards,