#
# softwinner SUNXI USB2.0 Dual Role Controller Driver.
#

#---------------------------------------------
#-
#- config USB2.0 Dual Role Controller.
#-
#---------------------------------------------
menuconfig USB_SW_SUNXI_USB
    boolean "SUNXI USB2.0 Dual Role Controller support"
    depends on (ARCH_SUN4I || ARCH_SUN5I || ARCH_SUN7I) && USB_MUSB_SUNXI=n
    help
        SUNXI USB2.0 Dual Role Controller

config USB_SW_SUNXI_USB_MANAGER
    boolean "SUNXI USB2.0 Manager"
    depends on USB_SW_SUNXI_USB
    help
        manager all usb controller.

#---------------------------------------------
#-
#- usb0 mode select.
#-
#---------------------------------------------
choice

    prompt "USB0 Controller support"
    depends on (USB_SW_SUNXI_USB && USB_SW_SUNXI_USB_MANAGER)
    default USB_SW_SUNXI_USB0_OTG
    help
        usb0 Controller mode select. choice "device only", then usb0 can only use for device.
        choice "host only", then usb0 can only use for host. choice "OTG", then usb0 can only
        use device and host.

        For "device only" and "OTG" modes, you need CONFIG_USB_SW_SUNXI_UDC0, "SoftWinner
        SUNXI USB Peripheral Controller", enabled under USB gadget config.

config USB_SW_SUNXI_USB0_HOST_ONLY
    boolean "host only support"
    select USB_SW_SUNXI_HCD0
    help
        usb0 can only use for host.

config USB_SW_SUNXI_USB0_OTG
    boolean "otg support"
    select USB_SW_SUNXI_HCD0
    select USB_SW_SUNXI_UDC0
    help
        usb0 can only use for device and host.

config USB_SW_SUNXI_USB0_DEVICE_ONLY
    boolean "device only support"
    select USB_SW_SUNXI_UDC0
    help
        usb0 can only use for device.

config USB_SW_SUNXI_USB0_NULL
    boolean "usb manager not support"
    help
        usb0 do not monitor hardware, then driver insmod should by application.



endchoice

config USB_SW_SUNXI_USB_DEBUG
    tristate "SUNXI USB driver debug message"
    depends on USB_SW_SUNXI_USB
    help
        SUNXI USB driver debug message.
