diff --git a/drivers/usbhost/Kconfig b/drivers/usbhost/Kconfig index 56ba022aca1..947098a885d 100644 --- a/drivers/usbhost/Kconfig +++ b/drivers/usbhost/Kconfig @@ -284,6 +284,27 @@ config HIDMOUSE_WTHRESH endif # MOUSE_WHEEL endif # USBHOST_HIDMOUSE +config USBHOST_RTL8187 + bool "RTL8187-based wireless LAN" + default n + depends on NET + +if USBHOST_RTL8187 + +config RTL8187B + bool "RTL8187B chip" + default y + +config RTL8187_VID + hex "RTL8187 VID" + default 0x0bda + +config RTL8187_PID + hex "RTL8187 PID" + default 0x8189 + +endif # USBHOST_RTL8187 + config USBHOST_TRACE bool "Enable USB HCD tracing for debug" default n diff --git a/drivers/usbhost/Make.defs b/drivers/usbhost/Make.defs index 8ef90ad427b..55a28a12944 100644 --- a/drivers/usbhost/Make.defs +++ b/drivers/usbhost/Make.defs @@ -60,9 +60,9 @@ CSRCS += usbhost_trace.c endif endif -# Include add-on USB host driver logic (see misc/drivers) +# Include add-on USB host driver logic if present and selected (see misc/drivers) -ifeq ($(CONFIG_NET),y) +ifeq ($(CONFIG_USBHOST_RTL8187),y) RTL8187_CSRC := ${shell if [ -f usbhost$(DELIM)rtl8187x.c ]; then echo "rtl8187x.c"; fi} CSRCS += $(RTL8187_CSRC) endif