net: calxedagmac: Convert to DM_ETH
authorAndre Przywara <andre.przywara@arm.com>
Mon, 12 Apr 2021 00:04:52 +0000 (01:04 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 20 Apr 2021 11:31:12 +0000 (07:31 -0400)
commitdebb07bf107a9feb3cbf03db6b10abae466e4d41
treeb94324f15bc92fb00358557fbedc08dbcae2d8e8
parent109552d773e7aeb0f6417d8245fb0ecf01599ef3
net: calxedagmac: Convert to DM_ETH

To squash that nasty warning message and make better use of the newly
gained OF_CONTROL feature, let's convert the calxedagmac driver to the
"new" driver model.
The conversion is pretty straight forward, mostly just adjusting the
use of the involved data structures.
The only actual change is the required split of the receive routine into
a receive and free_pkt part.
Also this allows us to get rid of the hardcoded platform information and
explicit init calls.

This also uses the opportunity to wrap the code decoding the MMIO
register base address, to make it safe for using PHYS_64BIT later.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
arch/arm/Kconfig
board/highbank/highbank.c
configs/highbank_defconfig
drivers/net/Kconfig
drivers/net/calxedaxgmac.c
include/configs/highbank.h
include/netdev.h
scripts/config_whitelist.txt