This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to Disable USB support in am335x

How to Disable USB support in am335x linux 3.2

  • Hi Shammi,

    You can either use make menuconfig and deselect all USB driver related features in your kernel, see: processors.wiki.ti.com/.../UsbgeneralpageLinux-v3p1

    Or in your omap2plus_defconfig change all USB configs to n. That is in arch/arm/configs change the following:
    CONFIG_USB=y
    CONFIG_USB_DEBUG=y
    CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
    CONFIG_USB_MON=y
    CONFIG_USB_WDM=y
    CONFIG_USB_STORAGE=y
    CONFIG_USB_DWC3=m
    CONFIG_USB_TEST=y
    CONFIG_NOP_USB_XCEIV=y
    CONFIG_OMAP_USB2=y
    CONFIG_TI_PIPE3=y
    CONFIG_AM335X_PHY_USB=y
    CONFIG_USB_GADGET=y
    CONFIG_USB_GADGET_DEBUG=y
    CONFIG_USB_GADGET_DEBUG_FILES=y
    CONFIG_USB_GADGET_DEBUG_FS=y
    CONFIG_USB_ZERO=m

    To:
    CONFIG_USB=n
    CONFIG_USB_DEBUG=n
    CONFIG_USB_ANNOUNCE_NEW_DEVICES=n
    CONFIG_USB_MON=n
    CONFIG_USB_WDM=n
    CONFIG_USB_STORAGE=n
    CONFIG_USB_DWC3=n
    CONFIG_USB_TEST=n
    CONFIG_NOP_USB_XCEIVn
    CONFIG_OMAP_USB2=n
    CONFIG_TI_PIPE3=n
    CONFIG_AM335X_PHY_USB=n
    CONFIG_USB_GADGET=n
    CONFIG_USB_GADGET_DEBUG=n
    CONFIG_USB_GADGET_DEBUG_FILES=n
    CONFIG_USB_GADGET_DEBUG_FS=n
    CONFIG_USB_ZERO=n

    Best Regards,
    Yordan
  • Changing kernel config option
    CONFIG_USB_SUPPORT=y
    to
    # CONFIG_USB_SUPPORT is not set
    will disable all USB related options, therefor disable USB support.