if ARCH_MV88fxx81

menu "mv88fxx81 Options"
	depends on ARCH_MV88fxx81

choice
	prompt "system type (mv88f1181 / mv88f5181)"
	default ARCH_MV88f1181

config ARCH_MV88f1181
	bool "Support for mv88f1181"
	---help---
	  Choosing this option will generate a linux kernel for the mv88f1181

config ARCH_MV88f5181
	bool "Support for mv88f5181"
	---help---
	  Choosing this option will generate a linux kernel for the mv88f5181

endchoice

config  MV88F5182
	bool "Support for Orion-NAS"
	depends on ARCH_MV88f5181
	---help---

config  MV88F5082
        bool "Support for 5082"
        depends on MV88F5182
        ---help---

config  VOIP_RD2
	bool "Support for Orion voip RD2 boards"
	depends on ARCH_MV88f5181
	---help---
	  Choosing this option will generate image for the Viop RD2 board.

config  VOIP_RD2_5181L
	bool "Support for Orion voip RD2 boards with the MV88f5181L chipset"
	depends on VOIP_RD2
	---help---
	  Choosing this option will generate image for the Viop RD2 board with 5181L support.  

config  MV_88W8660
	bool "Support for Shark"
	depends on ARCH_MV88f5181
	---help---


config ARCH_SUPPORTS_BIG_ENDIAN
	bool
	default y

config MV_NAND
	bool "Marvell support for MTD NAND device"
	default n

config MV_NAND_BOOT
	bool "Booting from NAND device"
	depends on MV_NAND
	---help---
	  Choose this option if NAND MTD is the system boot device.  

config USE_DSP
	bool "use pld/ldrd/strd arm DSP instructions"
	default n

config MV_DMA_COPYUSER
	bool "Support DMA copy_to_user() and copy_from_user"
	depends on (ARCH_MV88f5181) && EXPERIMENTAL
	default n
	help
	  Say Y here if you want to use the DMA engine to perform
	  copy_to_user() and copy_from_user() functionality.

config MV_USE_XOR_ENGINE
        bool "Use the XOR engine to offload CPU tasks"   
	depends on MV88F5182 && EXPERIMENTAL 
        default n
        help
            Say Y of you want to use the XOR engine to offload some of the 
            CPU tasks.
config MV_RAID5_XOR_OFFLOAD
	bool "Use the XOR engine to perfom the xor calculation"
	depends on MV_USE_XOR_ENGINE
	default n
	help
	  Say Y here if you want to use the XOR engine to perform
	  the RAID4/5 xor calculation.

config MV_DMACOPY
	bool "Use the XOR engine to perfom memcpy"
	depends on MV_USE_XOR_ENGINE
	default n
	help
	  Say Y here if you want to use the XOR engine to perform
	  the memcpy and memmove.

config MV_DMAMEMZERO
	bool "Use the XOR engine to perfom memzero"
	depends on MV_USE_XOR_ENGINE
	default n
	help
	  Say Y here if you want to use the XOR engine to perform
	  the memzero.

config MV_USE_XOR_FOR_COPY_USER_BUFFERS
	bool "Use the XOR engine to perfom copy_to_user and copy_from_user functions"
	depends on MV_USE_XOR_ENGINE
	default n
	help
	  Say Y here if you want to accelerate the copy_to_user and copy_from_user functions
          using the XOR engine instead of the IDMA.

config ENABLE_XOR_INTERRUPTS
	bool "Activate the XOR in offloading mode"
	depends on MV_USE_XOR_ENGINE
	default n
	help
	  Say Y here if you want to use the activate the XOR engine in interrupts
          mode (offloading).
config USE_TWO_ENGINES
	bool "Use two XOR engines"
	depends on MV_USE_XOR_ENGINE
	default n
	help
	  Say Y here if you want to use the both of the XOR engines.

config  MV88fxx81_PROC
	bool "Support for MV-shell proc file system"
	depends on PROC_FS
	---help---	
	  Choosing this option will enable you to use the MV-shell through the Proc
	  File system.
	  The MV-shell is a debug utility which can be run from the shell.

config  MV_GENERIC_NAS_FS
	bool "Enable patches needed for Marvell's generic NAS file system"
        default n
	---help---	
	  Choosing this option will enable various kernel patches, those patches are needed
          when running Marvell's generic NAS file system.

config  UBOOT_STRUCT
	bool "Use UBoot Marvell tag structure"
	---help---
	  Choosing this option will cause the linux to extract the Tclk, Sysclk and
	  the uboot version from the Tag list passed by the uboot.

choice
	prompt "usb mode"
	depends on ARCH_MV88f5181 && !UBOOT_STRUCT
	default MV_USB_HOST

config MV_USB_HOST
	bool "Support for usb host"
	---help---
	Choosing this option will configure on chip USB Controller to work in Host mode

config MV_USB_DEVICE
	bool "Support for usb device"
	---help---
	Choosing this option will configure on chip USB Controller to work in Device mode

endchoice

config  MV_DBG_TRACE
	bool "Enable tracing utility"
	default n
	---help---
	  Choosing this debug option will cause some kernel modules to log operations into
	  a cyclic buffer and dump them on failures. Enabling this feature decreases performance.

menu "Networking options"

choice 
	prompt "Network driver"

config MV_EGIGA
	bool "egiga"

config MV_GATEWAY
	depends on !MV_88W8660
	bool "gateway"
	---help---
	  Choose this option to support the on-board QuarterDeck switch family. 
          To change default VLANs configuration, simple editing is needed to be done
          at the head of mv_gtw_main.c
	  
config MV_UNIMAC
	depends on MV_88W8660
	bool "unimac"
	---help---
	  Choose this option to support the on-board QuarterDeck switch family. 

endchoice

config  ETH_0_MACADDR
	string "Giga port MAC address"
	depends on MV_EGIGA || MV_UNIMAC
	default "000000000051"
	---help---
	  Set the Giga port MAC address.

config  EGIGA_PROC
	bool "egiga proc FS (for mvEgigaTool)"
	depends on MV_EGIGA
	---help---
	  Use mvEgigaTool proc FS.

config  EGIGA_STATIS
        bool "Collect egiga statistics"
        depends on ARCH_MV88f5181 && !MV_UNIMAC
        ---help---
          Collect egiga statistics. Can be displayed using mvEgigaTool.

config EGIGA_MULTI_Q
        bool "Multi Q Support"
        depends on ARCH_MV88f5181 && !MV_UNIMAC
        ---help---
          Use Multi Q.

config MV_GTW_QOS
	bool "ToS based QoS support"
	depends on MV_GATEWAY
	default y
	---help---
	  Priorities packets marked with predefined ToS in IP header comming from WAN interface. 

config MV_GTW_QOS_NET_IF
	string "WAN Network interface name"
	depends on MV_GTW_QOS
	default "eth0"

config MV_GTW_QOS_VOIP
	bool "VoIP QoS"
	depends on MV_GTW_QOS
	default y

config MV_GTW_QOS_VOIP_TOS
	string "VoIP ToS value"
	depends on MV_GTW_QOS_VOIP
	default "0xA0"

config MV_GTW_QOS_VIDEO
	bool "Video QoS (routing)"
	depends on MV_GTW_QOS
	default y

config MV_GTW_QOS_VIDEO_TOS
	string "Video ToS value"
	depends on MV_GTW_QOS_VIDEO
	default "0x11;0x22"

config  MV_GTW_IGMP
	bool "L2 IGMP Snooping support"
	depends on MV_GATEWAY
	default y
	---help---
	  Support L2 IGMP snooping at the switch level, i.e. directing L3 routed multicast 
	  stream to the specific L2 port which originally received an IGMP Join message, 
	  instead of fluding all VLAN ports.

config  MV_GTW_PROC
	bool "mv_gateway /proc API support (for mvGtwTool)"
	depends on MV_GATEWAY
	---help---
	  Use mvGtwTool proc FS.

endmenu

menu "cesa options"
	depends on MV88F5182 || VOIP_RD2_5181L

config  MV_CESA
	bool "Support for Marvell Cryptographic Engine and Security Acceleration"
	default y

config  MV_CESA_TWO_CHAN
	bool "Use 2 CESA channels"
	depends on MV_CESA
	default n
	---help---
	Choosing this option will enable CESA to use 2 channels. IDMA engines #0 and #1
	are busy. 
	If this option is not choosed CESA engine will use only 1 channel. 
	only IDMA engine #0 is busy.

config	MV_CESA_OCF
	bool "Support for Marvell CESA OCF driver"
	depends on MV_CESA && OCF_OCF
	---help---
	  Choosing this option will enable you to use the Marvell Cryptographic Engine and
	  Security Accelerator, under the OCF package.

config  MV_CESA_TOOL
	tristate "Support for Marvell CESA Tool"
	depends on MV_CESA
	---help---

config  MV_CESA_TEST
	bool "Support for Marvell CESA test driver"
	depends on MV_CESA_TOOL && !MV_CESA_OCF
	---help---
	  Choosing this option will enable you to use the Marvell Cryptographic Engine and
	  Security Accelerator, with the mv_cesa_tool in test mode.

endmenu

menu "Telephony options"
	depends on VOIP_RD2_5181L

config  MV_PHONE
	tristate "Support for Marvell telephony support (VoIP)"
	depends on VOIP_RD2_5181L && PHONE
	---help---
	  Choosing this option enables the Marvell telephony underlying 
	  support for various VoIP applications. 
	  Note, kernel Telephony subsystem must be chosen too.

choice 
	prompt "Sampling mode"
	depends on MV_PHONE

config MV_TDM_LINEAR_MODE
	bool "Linear (16-bit)"

config MV_TDM_ULAW_MODE
	bool "U-Law (8-bit)"

endchoice

endmenu

config  SCSI_MVSATA
	tristate "Support for Marvell Sata Adapters"
	depends on PCI && SCSI
	---help---
	  Choosing this option will enable you to use the Marvell Sata
	  adapters support with emulation as SCSI adapters.
	  Note that the kernel scsi subsystem must be chosen too.

menu "Sata options"
	depends on SCSI_MVSATA

config  MV_SATA_SUPPORT_ATAPI
        bool "Support ATAPI (CR-ROM/DVD-ROM) devices"
        default n

config  MV_SATA_ENABLE_1MB_IOS
        bool "Enable 1 MByte requests"
        default n
        help
          Set the maximum io request size to 1 MByte for HDD's the support LBA48 feature,
          say No if you want to keep the maximum limit on 128KBytes.
choice
	prompt "Debug level"
	default SATA_NO_DEBUG

config SATA_NO_DEBUG
	bool "No Debug"

config SATA_DEBUG_ON_ERROR
	bool "Debug on errors"
	help
	  print debug messages when EDMA/System/HDD errors occur.

config SATA_FULL_DEBUG
	bool "Full debug"

endchoice

endmenu

endmenu

endif
