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

config SUNXI55I_GMAC200
	tristate "Allwinner A523 GMAC-200 driver"
	depends on OF && (ARCH_SUNXI || COMPILE_TEST)
	select STMMAC_ETH
	select STMMAC_PLATFORM
	select SUNXI55I_STMMAC

	help
	  Support for Allwinner A523 GMAC-200/GMAC-300 ethernet controllers.

	  This selects Allwinner A523 SoC glue layer support for the
	  stmmac device driver. This driver is used for
	  GMAC-200/GMAC-300 ethernet controller.

if SUNXI55I_GMAC200
config SUNXI55I_STMMAC
	tristate "Allwinner A523 GMAC-200 STMMAC support"
	depends on OF && (ARCH_SUNXI || COMPILE_TEST)
	help
	  Support stmmac device driver for Allwinner A523 GMAC-200/GMAC-300.

config SUNXI55I_STMMAC_UIO
	tristate "Allwinner A523 GMAC-200 UIO ethernet controller"
	default n
	select UIO
	help
	  Say M here if you want to use the sunxi-uio.ko for DPDK on A523.

endif

endmenu
