Skip to content

Commit 02c32d4

Browse files
jfischer-nocarlescufi
authored andcommitted
usb: move USB_DEVICE_REMOTE_WAKEUP option to drivers
Kconfig USB_DEVICE_REMOTE_WAKEUP option depends only on USB device controller capability, but is not controlled by the USB device controller drivers configuration. Move USB_DEVICE_REMOTE_WAKEUP option to drivers and make it promptless. Signed-off-by: Johann Fischer <[email protected]>
1 parent 14c28c4 commit 02c32d4

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

drivers/usb/device/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ menuconfig USB_DEVICE_DRIVER
1010

1111
if USB_DEVICE_DRIVER
1212

13+
config USB_DEVICE_REMOTE_WAKEUP
14+
bool
15+
help
16+
USB device controller supports remote wakeup feature.
17+
1318
config USB_DW
1419
bool "Designware USB Device Controller Driver"
1520
help
@@ -67,6 +72,7 @@ config USB_NRFX
6772
depends on HAS_HW_NRF_USBD
6873
select NRFX_USBD
6974
select NRFX_POWER
75+
select USB_DEVICE_REMOTE_WAKEUP
7076
help
7177
nRF USB Device Controller Driver
7278

samples/subsys/usb/hid-mouse/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@
44
config USB_DEVICE_PID
55
default USB_PID_HID_MOUSE_SAMPLE
66

7-
config USB_DEVICE_REMOTE_WAKEUP
8-
default y if NRFX_USBD
9-
107
source "Kconfig.zephyr"

subsys/usb/Kconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ config USB_DEVICE_SOF
9999
bool "Enable Start of Frame processing in events"
100100
default y if (USB_DEVICE_AUDIO && NRFX_USBD)
101101

102-
config USB_DEVICE_REMOTE_WAKEUP
103-
bool "Enable support for remote wakeup"
104-
help
105-
This option requires USBD peripheral driver to also support remote wakeup.
106-
107102
config USB_DEVICE_BOS
108103
bool "Enable USB Binary Device Object Store (BOS)"
109104

0 commit comments

Comments
 (0)