config USB_DWC_HDRC
	depends on (USB || USB_GADGET)
	select USB_OTG_UTILS
	tristate 'Synopsys DWC Dual Role Controller'
	help
	  Say Y here if your system has a dual role high speed USB
	  controller based on the Synopsys DWC silicon IP.  Then
	  configure options to match your silicon and the board
	  it's being used with, including the USB peripheral role,
	  or the USB host role, or both.

	  PowerPC familiies using this IP include 405, 460EX.

	  If you do not know what this is, please say N.

	  To compile this driver as a module, choose M here; the
	  module will be called "dwc_hdrc".

choice
	prompt "Driver Mode"
	depends on USB_DWC_HDRC
	help
	  Dual-Role devices can support both host and peripheral roles,
	  as well as a the special "OTG Device" role which can switch
	  between both roles as needed.

config USB_DWC_HOST_ONLY
	depends on USB
	bool "USB Host"
	help
	  Say Y here if your system supports the USB host role.
	  If it has a USB "A" (rectangular), "Mini-A" (uncommon),
	  or "Mini-AB" connector, it supports the host role.
	  (With a "Mini-AB" connector, you should enable USB OTG.)

config USB_DWC_DEVICE_ONLY
#	depends on USB_GADGET
	depends on USB
	bool "USB Peripheral (gadget stack)"
#	select USB_GADGET
	select USB_GADGET_DWC_HDRC
	help
	  Say Y here if your system supports the USB peripheral role.
	  If it has a USB "B" (squarish), "Mini-B", or "Mini-AB"
	  connector, it supports the peripheral role.
	  (With a "Mini-AB" connector, you should enable USB OTG.)

config USB_DWC_OTG
#	depends on USB && USB_GADGET && PM && EXPERIMENTAL
	depends on USB
	bool "Both host and peripheral:  USB OTG (On The Go) Device"
	select USB_OTG
#	select USB_GADGET
	select PM
	select USB_GADGET_DWC_HDRC
	help
	  The most notable feature of USB OTG is support for a
	  "Dual-Role" device, which can act as either a device
	  or a host.  The initial role choice can be changed
	  later, when two dual-role devices talk to each other.

endchoice

config USB_DWC_INTERNAL_DMA
	depends on USB_DWC_HDRC
	bool
	default y
	help
	  Enable DWC internal DMA mode.

config USB_DWC_CFI
        depends on USB_DWC_HDRC
        bool
        default n
        help
          Enable DWC Core Feature Interface.

config USB_DWC_DEBUG
	depends on USB_DWC_HDRC
	bool "DWC debugging messages"
	default n
	help
	  Enable debug information.

config USB_DWC_HS_ELECT_TST
        depends on USB_DWC_HDRC
        bool "DWC HS Electrical Testing Framework"
        default n
        help
          Enable High Speed Electrical Testing Framework.

config USB_DWC_HDRC_HCD
	depends on USB_DWC_HDRC && (USB_DWC_HOST_ONLY || USB_DWC_OTG)
	bool
	default y

