+define KernelPackage/usb-ifxhcd
+ TITLE:=IFXHCD usb driver
+ SUBMENU:=$(USB_MENU)
+ DEPENDS+=@(TARGET_lantiq_vr9||TARGET_lantiq_ar9) +kmod-usb-core
+ifeq ($(CONFIG_TARGET_lantiq_ar9),)
+ KCONFIG:=CONFIG_USB_HOST_IFX \
+ CONFIG_USB_HOST_IFX_B=y \
+ CONFIG_IFX_VR9=y \
+ CONFIG_IFX_AR9=n \
+ CONFIG_USB_HOST_IFX_FORCE_USB11=n \
+ CONFIG_USB_HOST_IFX_WITH_HS_ELECT_TST=n \
+ CONFIG_USB_HOST_IFX_WITH_ISO=n \
+ CONFIG_USB_HOST_IFX_UNALIGNED_ADJ=y
+else
+ KCONFIG:=CONFIG_USB_HOST_IFX \
+ CONFIG_USB_HOST_IFX_B=y \
+ CONFIG_IFX_AR9=y \
+ CONFIG_IFX_VR9=n \
+ CONFIG_USB_HOST_IFX_FORCE_USB11=n \
+ CONFIG_USB_HOST_IFX_WITH_HS_ELECT_TST=n \
+ CONFIG_USB_HOST_IFX_WITH_ISO=n \
+ CONFIG_USB_HOST_IFX_UNALIGNED_ADJ=y
+endif
+ FILES:=$(LINUX_DIR)/drivers/usb/ifxhcd/ifxusb_host.ko
+ AUTOLOAD:=$(call AutoLoad,50,ifxusb_host)
+endef
+
+define KernelPackage/usb-ifxhcd/description
+ Kernel support for Synopsis USB on XWAY
+endef
+
+$(eval $(call KernelPackage,usb-ifxhcd))
+