config STMMAC_ETH
	tristate "STMicroelectronics 10/100/1000 Ethernet driver"
	select MII
	select PHYLIB
	select CRC32
	depends on NETDEVICES && HAS_IOMEM && (ARCH_GODNET || ARCH_GODARM)
	help
	  This is the driver for the Ethernet IPs are built around a
	  Synopsys IP Core and only tested on the STMicroelectronics
	  platforms.

if STMMAC_ETH

config STMMAC_DA
	bool "STMMAC DMA arbitration scheme"
	default n
	help
	  Selecting this option, rx has priority over Tx (only for Giga
	  Ethernet device).
	  By default, the DMA arbitration scheme is based on Round-robin
	  (rx:tx priority is 1:1).

config STMMAC_DUAL_MAC
	bool "STMMAC: dual mac support"
	default n if GODARM
	default Y if GODNET
        depends on STMMAC_ETH
	help
	  The Huawei Hi3521 soCs has only one Ethernet Controllers.
	  The Huawei Hi35XX SoCs may have two Ethernet Controllers. This option turns on
	  the second Ethernet device if required.

config STMMAC_TIMER
	bool "STMMAC Timer optimisation"
	default n
	depends on RTC_HCTOSYS_DEVICE
	help
	  Use an external timer for mitigating the number of network
	  interrupts. Currently, for SH architectures, it is possible
	  to use the TMU channel 2 and the SH-RTC device.

choice
        prompt "Select Timer device"
        depends on STMMAC_TIMER

config STMMAC_TMU_TIMER
        bool "TMU channel 2"
        depends on CPU_SH4
	help

config STMMAC_RTC_TIMER
        bool "Real time clock"
        depends on RTC_CLASS
	help

endchoice

config STMMAC_IOADDR
	hex "STMMAC IO address"
	default "0x101c0000" if (ARCH_GODNET || ARCH_GODARM)

config STMMAC_IOSIZE
	hex "STMMAC IO size"
	default "0x00020000"

config STMMAC_IRQNUM
	int "STMMAC irq number"
	default "119" if (ARCH_GODNET || ARCH_GODARM)

config STMMAC_SYS_IOADDR
	hex "STMMAC System Config IO address"
	default "0x20030000" if (ARCH_GODNET || ARCH_GODARM)

config STMMAC_SYS_IOSIZE
	hex "STMMAC System Config IO size"
	default "0x00000100"

config STMMAC_PHY0_ID
	hex "STMMAC MAC #0 PHY ID"
	default 1 if (ARCH_GODNET || ARCH_GODARM)

config STMMAC_PHY1_ID
	hex "STMMAC MAC #1 PHY ID"
	default 2 if ARCH_GODNET
	depends on STMMAC_DUAL_MAC

endif
