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

#---------------------------------------------
#-
#- config USB2.0 Dual Role Controller.
#-
#---------------------------------------------
menuconfig USB_SUNXI_USB
    tristate "SUNXI USB2.0 Dual Role Controller support"
    depends on ARCH_SUNXI
    help
        SUNXI USB2.0 Dual Role Controller

config USB_SUNXI_USB_GADGET_FORCE_SET_DESCRIPTOR
    boolean "Force Set SUNXI USB Gadget Descriptor"
    depends on ARCH_SUNXI
    help
        force set SUNXI USB gadget descriptor for project Moon:
        this will force set 0x00 to index for iManufacturer, iProduct, 
        and iSerialNumber.
        
        alse remove text information for iManufacturer, iProduct,
        and iSerialNumber. say Y if this build for project Moon.

config USB_SUNXI_USB_MANAGER
    tristate "SUNXI USB2.0 Manager"
    depends on USB_SUNXI_USB
    help
        manager all usb controller.

#---------------------------------------------
#-
#- usb0 mode slecet.
#-
#---------------------------------------------
choice

    prompt "USB0 Controller support"
    depends on (USB_SUNXI_USB && USB_SUNXI_USB_MANAGER)
    help
        usb0 Controller mode slecet. 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.

config USB_SUNXI_USB0_NULL
    boolean "usb manager not support"
    help
        usb0 do not monitor hardware, then drvier insmod shoud by application.

config USB_SUNXI_USB0_DEVICE_ONLY
    boolean "device only support"
    help
        usb0 can only use for device.

config USB_SUNXI_USB0_HOST_ONLY
    boolean "host only support"
    help
        usb0 can only use for host.

config USB_SUNXI_USB0_OTG
    boolean "otg support"
    help
        usb0 can only use for device and host.

config USB_SUNXI_USB0_OTG_WITHOUT_ID_PIN
    boolean "otg without ID pin support"
    depends on USB_SUNXI_USB0_OTG
    default n
    help
        usb0 can only switch device/host/null modes manually.
        beware ID pin's value will be ignored if this is enabled.
        If unsure, say N.

config USB_SUNXI_USB0_OTG_HOST_BULK_TRANSFER
    boolean "enable usb0 otg/host bulk transfer ability"
    depends on (USB_SUNXI_USB0_OTG || USB_SUNXI_USB0_HOST_ONLY)
    default y
    help
        usb0 have only 6 pair EndPoints for data transfer in host mode.
        following is the arrangement of EndPoints:
        1 pair for usb0 controller
        1 pair for bulk transfer
        4 pait for interrupt transfer
        this means you can only make 4 interrupt transfer at the same time.
        disable this will drop the bulk transfer ability for 1 more interrupt transfer.
        beware disable this will cause usb0 lose all bulk abilities like data transfer between usb drive etc.
        If unsure, say Y.

endchoice

config USB_SUNXI_USB_DEBUG
    tristate "SUNXI USB driver debug message"
    depends on USB_SUNXI_USB
    help
        SUNXI USB driver debug message.

config USB_SUNXI_HOST
    tristate "SUNXI USB HSOT driver"
    depends on USB_SUNXI_USB
    help
        SUNXI USB driver debug message.

