#
#  Makefile for USB OTG Controller Drivers
#

# infrastructure

fusb_otg-objs := usb_otg.o udif_usb_otg.o udif_usb_otg_gpioint.o

ifneq ($(CONFIG_USB_FUSB_OTG_EXTCON), )
	fusb_otg-objs += usb_otg_extcon.o
endif

ifneq ($(CONFIG_USB_FUSB_DWC3_REGS), )
	fusb_otg-objs += usb_dwc3_regs.o
endif

ifeq ($(CONFIG_USB_DWC3_OF_CXD),)
	fusb_otg-objs += ../dwc3/dwc3-of-cxd.o ../dwc3/cxd-phy.o
endif

obj-$(CONFIG_USB_FUSB_OTG)	+= fusb_otg.o
