# SPDX-License-Identifier: GPL-2.0-only
menu "Gmac Drivers"

config SUNXI55I_GMAC
	tristate "Allwinner A523 GMAC support"
	depends on OF
	select SUNXI55I_GMAC_MDIO
	select CRC32
	help
	  Support for Allwinner A523 GMAC ethernet driver.

	  To compile this driver as a module, choose M here.  The module
	  will be called sunxi-gmac.ko.

config SUNXI55I_GMAC_MDIO
	tristate "Allwinner A523 GMAC MDIO support"
	select MDIO_BUS
	select MDIO_DEVICE
	select PHYLIB
	select MII
	help
	  This driver supports the A523 GMAC MDIO interface in the network

config SUNXI55I_GMAC_METADATA
	bool "Allwinner A523 GMAC metadata support"
	depends on SUNXI55I_GMAC
	help
	  Support Allwinner A523 GMAC to transmit and receive metadata

# todo (not backported from bsp yet)
#config SUNXI55I_EPHY
#	tristate "Drivers for A523 Allwinner EPHY"
#	depends on SUNXI55I_GMAC
#	help
#	  Support Allwinner A523 EPHY

endmenu
