mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-01 11:36:43 +00:00
435bdd5755
At the current stage, the USB HID and storage drivers are prinicpally working but not stable. If interrupts are not processed fast enough, devices will get sporadically disconnected. The USB host-controller driver is not part of the normal Linux kernel. For this reason, we need to download it separately. There exists a 'prepare_rpi' rule in the 'dde_linux/Makefile' to automate this process.
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
|
|
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
|
|
|
|
include $(REP_DIR)/lib/mk/usb.inc
|
|
include $(REP_DIR)/lib/mk/arm/usb.inc
|
|
|
|
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 += $(CONTRIB_DIR)/drivers/usb/host/dwc_otg/dwc_common_port \
|
|
$(CONTRIB_DIR)/drivers/usb/host/dwc_otg/dwc_otg
|
|
SRC_CC += platform.cc
|
|
|
|
vpath platform.cc $(LIB_DIR)/arm/platform_rpi
|
|
vpath %.c $(CONTRIB_DIR)/drivers/net/usb
|