net: ti: am65-cpsw: Add support for multi port independent MAC mode
authorVignesh Raghavendra <vigneshr@ti.com>
Fri, 24 Dec 2021 07:25:30 +0000 (12:55 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 15 Jan 2022 15:38:26 +0000 (10:38 -0500)
commit38922b1f4acc0ae80c58a3baae9134b02defece7
treebf9357d2fe686affbf0af70fe20560155023e326
parente58d9284850fa78d364d264087fe744717963675
net: ti: am65-cpsw: Add support for multi port independent MAC mode

On certain TI SoC, like AM64x there is a CPSW3G which supports 2
external independent MAC ports for single CPSW instance.
It is not possible for Ethernet driver to register more than one port
for given instance.

This patch modifies top level CPSW NUSS as UCLASS_MISC and binds
UCLASS_ETH to individual ports so as to support bring up more than one
Ethernet interface in U-Boot.

Note that there is no isolation in the since, CPSW NUSS is in promisc
mode and forwards all packets to host.

Since top level driver is now UCLASS_MISC, board files would need to
instantiate this driver explicitly.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/net/ti/Kconfig
drivers/net/ti/am65-cpsw-nuss.c