menu "Telephony options"
	depends on MV_INCLUDE_TDM

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

choice
	prompt "TDM Unit"
	depends on MV_PHONE
	default MV_TDM_SUPPORT

config MV_TDM_SUPPORT
	bool "Support legacy TDM(2 channels)"

config MV_COMM_UNIT_SUPPORT
	depends on ARCH_FEROCEON_KW2 || ARCH_ARMADA_XP
	bool "Support CommUnit(up to 32 channels)"

endchoice

choice
	prompt "SLIC Vendor"
	depends on MV_PHONE
	default ZARLINK_SLIC_SUPPORT

#config SILABS_SLIC_SUPPORT
#	bool "Support Silicon Labs devices"

config ZARLINK_SLIC_SUPPORT
	bool "Support Zarlink/Legirity devices"

endchoice

choice
	prompt "SLIC Device"
	depends on MV_PHONE && SILABS_SLIC_SUPPORT

config SILABS_SLIC_3215
	bool "Support Silicon Labs 3215 device"

config SILABS_SLIC_3217
	bool "Support Silicon Labs 3217 device"

endchoice

choice
	prompt "SLIC Device"
	depends on MV_PHONE && ZARLINK_SLIC_SUPPORT
	default ZARLINK_SLIC_VE880

config ZARLINK_SLIC_VE880
	bool "Support Zarlink VE880 SLIC family"

config ZARLINK_SLIC_VE792
	bool "Support Zarlink VE792 SLIC family"

endchoice

choice
	prompt "PCM Clock Frequency"
	depends on MV_PHONE
	default MV_TDM_PCM_CLK_8MHZ
	---help---
	This menu selects the PCM clock frequency generated by the TDM master.
	SLIC should be configured accordingly in order to maintain bus coherency.

config MV_TDM_PCM_CLK_8MHZ
	bool "Support 8MHz PCM clock"

config MV_TDM_PCM_CLK_4MHZ
	bool "Support 4MHz PCM clock"

config MV_TDM_PCM_CLK_2MHZ
	bool "Support 2MHz PCM clock"

endchoice

config MV_PHONE_USE_IRQ_PROCESSING
	bool "Support Rx/Tx processing in interrupt context"
	depends on MV_PHONE
	default n
	---help---
	Choosing this option supports Rx/Tx voice processing in interrupt context, otherwise
	processing is performed in tasklet context.

config MV_TDM_USE_EXTERNAL_PCLK_SOURCE
	bool "Support PCLK from external source"
	depends on MV_PHONE
	default n
	---help---
	Choosing this option enables TDM unit to use PCLK supplied by external source.

config MV_PHONE_USE_SLIC_LIBS
	bool "Use binary SLIC drivers"
	depends on MV_PHONE
	default y
	---help---
	Unselect this option only if you have source code of SLIC drivers.
	If unsure, say "y"

endmenu
