usb: kconfig: nrf52840: Enable REMOTE_WAKEUP option only when needed

This patch removes the "hard" selection of the USB_DEVICE_REMOTE_WAKEUP
Kconfig option for USB devices made on the nRF52840 SoC. Now it's up to
the application to decide if it wants to enable the option. This change
makes it possible to pass the USB3CV Chapter 9 Tests for applications
that don't use the remote wakeup feature, since when a USB device only
reports that it supports this feature, and the mentioned option makes
it to do so, one of the test cases expects the USB device to actually
perform the remote wakeup. And when the feature is not reported as
supported, the test case is skipped.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2019-06-26 09:01:35 +02:00 committed by Carles Cufí
commit 036791364c
2 changed files with 3 additions and 1 deletions

View file

@ -64,7 +64,6 @@ menuconfig USB_NRF52840
select USB_DEVICE_DRIVER
select HAS_DTS_USB
select NRFX_USBD
select USB_DEVICE_REMOTE_WAKEUP
help
nRF52840 USB Device Controller Driver

View file

@ -7,4 +7,7 @@
config USB_DEVICE_PID
default USB_PID_HID_MOUSE_SAMPLE
config USB_DEVICE_REMOTE_WAKEUP
default SOC_NRF52840
source "Kconfig.zephyr"