2015-06-21 15:29:05 +00:00
|
|
|
SRC_C += \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_adp.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_attr.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_cfi.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_cil.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_cil_intr.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_driver.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_hcd.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_hcd_ddma.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_hcd_intr.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_hcd_linux.c \
|
|
|
|
usb/host/dwc_otg/dwc_otg/dwc_otg_hcd_queue.c
|
|
|
|
|
|
|
|
SRC_C += \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_cc.c \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_common_linux.c \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_crypto.c \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_dh.c \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_mem.c \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_modpow.c \
|
|
|
|
usb/host/dwc_otg/dwc_common_port/dwc_notifier.c
|
|
|
|
|
|
|
|
SRC_C += net/usb/usbnet.c net/usb/smsc95xx.c
|
|
|
|
|
2015-09-03 12:55:05 +00:00
|
|
|
include $(REP_DIR)/lib/mk/spec/arm_v6/usb.inc
|
2015-06-21 15:29:05 +00:00
|
|
|
|
|
|
|
CC_OPT += -DDWC_LINUX -DPLATFORM_INTERFACE
|
|
|
|
|
|
|
|
# needed for 'ehci-hcd.c', which we don't use on the rpi, but it is still
|
|
|
|
# part of the generic usb USB driver
|
|
|
|
CC_OPT += -DCONFIG_USB_EHCI_PCI=1
|
|
|
|
|
|
|
|
# for 'dwc_otg_hcd_linux.c' for enabling the FIQ, which we don't use anyway
|
|
|
|
CC_OPT += -DINTERRUPT_VC_USB=9
|
|
|
|
|
|
|
|
# for 'dwc_otg_driver.c' for preventing calls to set_irq_type
|
|
|
|
CC_OPT += -DIRQF_TRIGGER_LOW=1
|
|
|
|
|
|
|
|
INC_DIR += $(LX_CONTRIB_DIR)/drivers/usb/host/dwc_otg/dwc_common_port \
|
|
|
|
$(LX_CONTRIB_DIR)/drivers/usb/host/dwc_otg/dwc_otg
|
|
|
|
SRC_CC += platform.cc
|
|
|
|
|
2015-09-03 12:55:05 +00:00
|
|
|
vpath platform.cc $(LIB_DIR)/spec/rpi
|
2015-06-21 15:29:05 +00:00
|
|
|
vpath %.c $(LX_CONTRIB_DIR)/drivers/net/usb
|
|
|
|
|
|
|
|
# enable C++11 support
|
|
|
|
CC_CXX_OPT += -std=gnu++11
|
2017-02-14 14:48:14 +00:00
|
|
|
|
|
|
|
LIBS += rpi_usb
|