Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#
# CONFIG_USB Dual Role (OTG-ready) Controller Drivers
# for silicon based on Mentor Graphics INVENTRA designs
#

# (CONFIG_M)HDRC = (Multipoint) Highspeed Dual-Role Controller
config CONFIG_USB_MUSB_HDRC
	tristate 'Inventra Highspeed Dual Role Controller (TI, CONFIG_ADI, AW, ...)'
	depends on (CONFIG_USB || CONFIG_USB_GADGET)
	depends on CONFIG_HAS_IOMEM
	help
	  Say Y here if your system has a dual role high speed CONFIG_USB
	  controller based on the Mentor Graphics silicon IP.  Then
	  configure options to match your silicon and the board
	  it's being used with, including the CONFIG_USB peripheral role,
	  or the CONFIG_USB host role, or both.

	  Texas Instruments families using this IP include DaVinci
	  (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.

	  Analog Devices parts using this IP include Blackfin CONFIG_BF54x,
	  CONFIG_BF525 and CONFIG_BF527.

	  Allwinner SoCs using this IP include A10, A13, A20, ...

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

	  To compile this driver as a module, choose CONFIG_M here; the
	  module will be called "musb-hdrc".

if CONFIG_USB_MUSB_HDRC

choice
	bool "MUSB Mode Selection"
	default CONFIG_USB_MUSB_DUAL_ROLE if (CONFIG_USB && CONFIG_USB_GADGET)
	default CONFIG_USB_MUSB_HOST if (CONFIG_USB && !CONFIG_USB_GADGET)
	default CONFIG_USB_MUSB_GADGET if (!CONFIG_USB && CONFIG_USB_GADGET)

config CONFIG_USB_MUSB_HOST
	bool "Host only mode"
	depends on CONFIG_USB=y || CONFIG_USB=CONFIG_USB_MUSB_HDRC
	help
	  Select this when you want to use MUSB in host mode only,
	  thereby the gadget feature will be regressed.

config CONFIG_USB_MUSB_GADGET
	bool "Gadget only mode"
	depends on CONFIG_USB_GADGET=y || CONFIG_USB_GADGET=CONFIG_USB_MUSB_HDRC
	depends on CONFIG_HAS_DMA
	help
	  Select this when you want to use MUSB in gadget mode only,
	  thereby the host feature will be regressed.

config CONFIG_USB_MUSB_DUAL_ROLE
	bool "Dual Role mode"
	depends on ((CONFIG_USB=y || CONFIG_USB=CONFIG_USB_MUSB_HDRC) && (CONFIG_USB_GADGET=y || CONFIG_USB_GADGET=CONFIG_USB_MUSB_HDRC))
	depends on CONFIG_HAS_DMA
	help
	  This is the default mode of working of MUSB controller where
	  both host and gadget features are enabled.

endchoice

comment "Platform Glue Layer"

config CONFIG_USB_MUSB_SUNXI
	tristate "Allwinner (sunxi)"
	depends on CONFIG_ARCH_SUNXI
	depends on CONFIG_NOP_USB_XCEIV
	depends on CONFIG_PHY_SUN4I_USB
	depends on CONFIG_EXTCON
	depends on CONFIG_GENERIC_PHY
	select CONFIG_SUNXI_SRAM

config CONFIG_USB_MUSB_DAVINCI
	tristate "DaVinci"
	depends on CONFIG_ARCH_DAVINCI_DMx
	depends on CONFIG_NOP_USB_XCEIV
	depends on CONFIG_BROKEN

config CONFIG_USB_MUSB_DA8XX
	tristate "DA8xx/OMAP-L1x"
	depends on CONFIG_ARCH_DAVINCI_DA8XX
	depends on CONFIG_NOP_USB_XCEIV
	select CONFIG_PHY_DA8XX_USB

config CONFIG_USB_MUSB_TUSB6010
	tristate "TUSB6010"
	depends on CONFIG_HAS_IOMEM
	depends on (CONFIG_ARCH_OMAP2PLUS || CONFIG_COMPILE_TEST) && !CONFIG_BLACKFIN
	depends on CONFIG_NOP_USB_XCEIV = CONFIG_USB_MUSB_HDRC # both built-in or both modules

config CONFIG_USB_MUSB_OMAP2PLUS
	tristate "OMAP2430 and onwards"
	depends on CONFIG_ARCH_OMAP2PLUS && CONFIG_USB
	depends on CONFIG_OMAP_CONTROL_PHY || !CONFIG_OMAP_CONTROL_PHY
	select CONFIG_GENERIC_PHY

config CONFIG_USB_MUSB_AM35X
	tristate "AM35x"
	depends on CONFIG_ARCH_OMAP
	depends on CONFIG_NOP_USB_XCEIV

config CONFIG_USB_MUSB_DSPS
	tristate "TI DSPS platforms"
	select CONFIG_USB_MUSB_AM335X_CHILD
	depends on CONFIG_ARCH_OMAP2PLUS || CONFIG_COMPILE_TEST
	depends on CONFIG_OF_IRQ

config CONFIG_USB_MUSB_BLACKFIN
	tristate "Blackfin"
	depends on (CONFIG_BF54x && !CONFIG_BF544) || (CONFIG_BF52x && ! CONFIG_BF522 && !CONFIG_BF523)
	depends on CONFIG_NOP_USB_XCEIV

config CONFIG_USB_MUSB_UX500
	tristate "Ux500 platforms"
	depends on CONFIG_ARCH_U8500 || CONFIG_COMPILE_TEST

config CONFIG_USB_MUSB_JZ4740
	tristate "JZ4740"
	depends on CONFIG_NOP_USB_XCEIV
	depends on CONFIG_MACH_JZ4740 || CONFIG_COMPILE_TEST
	depends on CONFIG_USB_MUSB_GADGET
	depends on CONFIG_USB_OTG_BLACKLIST_HUB

config CONFIG_USB_MUSB_AM335X_CHILD
	tristate

comment "MUSB DMA mode"

config CONFIG_MUSB_PIO_ONLY
	bool 'Disable DMA (always use PIO)'
	help
	  All data is copied between memory and FIFO by the CPU.
	  DMA controllers are ignored.

	  Do not choose this unless DMA support for your SOC or board
	  is unavailable (or unstable).  When DMA is enabled at compile time,
	  you can still disable it at run time using the "use_dma=n" module
	  parameter.

if !CONFIG_MUSB_PIO_ONLY

config CONFIG_USB_UX500_DMA
	bool 'ST Ericsson Ux500'
	depends on CONFIG_USB_MUSB_UX500
	help
	  Enable DMA transfers on UX500 platforms.

config CONFIG_USB_INVENTRA_DMA
	bool 'Inventra'
	depends on CONFIG_USB_MUSB_OMAP2PLUS || CONFIG_USB_MUSB_BLACKFIN
	help
	  Enable DMA transfers using Mentor's engine.

config CONFIG_USB_TI_CPPI_DMA
	bool 'TI CPPI (Davinci)'
	depends on CONFIG_USB_MUSB_DAVINCI
	help
	  Enable DMA transfers when TI CPPI DMA is available.

config CONFIG_USB_TI_CPPI41_DMA
	bool 'TI CPPI 4.1 (AM335x)'
	depends on CONFIG_ARCH_OMAP && CONFIG_DMADEVICES
	select CONFIG_TI_CPPI41

config CONFIG_USB_TUSB_OMAP_DMA
	bool 'TUSB 6010'
	depends on CONFIG_USB_MUSB_TUSB6010 = CONFIG_USB_MUSB_HDRC # both built-in or both modules
	depends on CONFIG_ARCH_OMAP
	help
	  Enable DMA transfers on TUSB 6010 when OMAP DMA is available.

endif # !CONFIG_MUSB_PIO_ONLY

endif # CONFIG_USB_MUSB_HDRC