config GMAC_ETH
	tristate "GMAC Gigabit Ethernet support"
	select MII
	select PHYLIB
	select CRC32
	help
	  This driver supports GMAC gigabit ethernet.

if GMAC_ETH

###
# Options
menu "GMAC Options"

config GMAC_PHY_ADDRESS
	int "PHY Address"
	default "0"
	help
		Value Range: 0-3

		If -1 is set, PHY address is determined by platform
		data (plat_gmacphy_data).

config GMAC_CSR_CLOCK_RANGE
	int "CSR Clock Range (CSR)"
	default "3"
	range -1 5
	help
		AHB Clock [MHz]
		0: 60-100
		1: 100-150
		2: 20-35
		3: 35-60
		4: 150-250
		5: 250-300
		Value Range: 0 - 5
		default: 3

		If -1 is set, CSR is determined by platform data
		(plat_gmacenet_data).

config GMAC_ENABLE_TX_HW_CSUM
	bool "Enable Transmit Hardware Checksum"
	default y
	help
		y) Tx Hardware Checksum
		n) Tx Software Checksum

config GMAC_DA
	bool "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 GMAC_TIMER
	bool "Timer optimisation"
	default n
	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 GMAC_TIMER

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

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

endchoice

endmenu


###
# Flow Control Options
menu "GMAC Flow Control Options"

config GMAC_FC_PAUSE_TIME
	int "Flow Control Pause time"
	default "1664"
	help
		Value Range: 0-65535

config GMAC_RX_FIFO_ACTIVE
	int "Flow Control Active RxFIFO Threshold"
	default "2"
	help
		Value Range: 1-4
			1: Full minus 1 KB, that is, FULL-1KB
			2: Full minus 2 KB, that is, FULL-2KB
			3: Full minus 3 KB, that is, FULL-3KB
			4: Full minus 4 KB, that is, FULL-4KB

config GMAC_RX_FIFO_DEACTIVE
	int "Flow Control Deactive RxFIFO Threshold"
	default "3"
	help
		Value Range: 1-4
			1: Full minus 1 KB, that is, FULL-1KB
			2: Full minus 2 KB, that is, FULL-2KB
			3: Full minus 3 KB, that is, FULL-3KB
			4: Full minus 4 KB, that is, FULL-4KB

endmenu


###
# Descriptor Options
menu "GMAC Descriptor Options"

config GMAC_NR_RX_DESCRIPTORS
	int "Number of Rx Descriptors (256, 128, 64)"
	default "256"
	help
		Value Range: 256, 128, 64

config GMAC_NR_TX_DESCRIPTORS
	int "Number of Tx Descriptors (256, 128, 64)"
	default "256"
	help
		Value Range: 256, 128, 64

endmenu


###
# Debug Options
menu "GMAC Debug Options"

config GMAC_TRACE_FUNCTION
	bool "Enable Function Trace"
	default n

config GMAC_PRINT_REGISTER
	bool "Enable Print MAC/PHY Register"
	default n

config GMAC_DBG
	bool "Enable Debug Output"
	default n

endmenu


endif
