net: airoha: Add Airoha Ethernet driver
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 7 Apr 2025 20:01:46 +0000 (22:01 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 16 Apr 2025 22:51:45 +0000 (16:51 -0600)
commit74fcb6a7a7e9a89d27acd7e41b3223276b6be4a7
treecdba117e8f3ffc08b25c457cb9982f6931f1f1ed
parent60cbbbb11250743856a89bb8d1c743d859c650de
net: airoha: Add Airoha Ethernet driver

Add airoha Ethernet driver for Airoha AN7581 SoC. This is a majorly
rewritten and simplified version of the Linux airoha_eth.c driver.

It's has been modified to support a single RX/TX ring to reflect U-Boot
implementation with recv and send API.

The struct and the define are kept as similar as possible to upstream
one to not diverge too much.

The AN7581 SoC include an Ethernet Switch based on the Mediatek MT753x
but doesn't require any modification aside from setting the CPU port and
applying the Flood configuration hence it can be handled entirely in the
Ethernet driver.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/airoha_eth.c [new file with mode: 0644]