Skip to content

Commit

Permalink
HACK/ath79: trim down USB support to AR934x-only
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Salvaterra <[email protected]>
  • Loading branch information
rsalvaterra committed Nov 23, 2023
1 parent b32b668 commit 5f6d428
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions package/kernel/linux/modules/usb.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,11 @@ $(eval $(call KernelPackage,usb-phy-nop))

define KernelPackage/phy-ath79-usb
TITLE:=Support for ATH79 USB PHY
KCONFIG:=CONFIG_PHY_AR7100_USB \
CONFIG_PHY_AR7200_USB
KCONFIG:=CONFIG_PHY_AR7200_USB
DEPENDS:=@TARGET_ath79
HIDDEN:=1
FILES:=$(LINUX_DIR)/drivers/phy/phy-ar7100-usb.ko \
$(LINUX_DIR)/drivers/phy/phy-ar7200-usb.ko
AUTOLOAD:=$(call AutoLoad,21,phy-ar7100-usb phy-ar7200-usb,1)
FILES:=$(LINUX_DIR)/drivers/phy/phy-ar7200-usb.ko
AUTOLOAD:=$(call AutoLoad,21,phy-ar7200-usb,1)
$(call AddDepends/usb)
endef

Expand Down Expand Up @@ -371,8 +369,7 @@ define KernelPackage/usb2
CONFIG_USB_EHCI_MXC=y \
CONFIG_USB_OCTEON_EHCI=y \
CONFIG_USB_EHCI_HCD_ORION=y \
CONFIG_USB_EHCI_HCD_AT91=y \
CONFIG_USB_EHCI_FSL
CONFIG_USB_EHCI_HCD_AT91=y
FILES:= \
$(LINUX_DIR)/drivers/usb/host/ehci-platform.ko
ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-orion.ko),)
Expand All @@ -381,9 +378,6 @@ define KernelPackage/usb2
ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-atmel.ko),)
FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-atmel.ko
endif
ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/ehci-fsl.ko),)
FILES+=$(LINUX_DIR)/drivers/usb/host/ehci-fsl.ko
endif
ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/host/fsl-mph-dr-of.ko),)
FILES+=$(LINUX_DIR)/drivers/usb/host/fsl-mph-dr-of.ko
endif
Expand Down

0 comments on commit 5f6d428

Please sign in to comment.