Skip to content

Commit 9f6b66f

Browse files
tmon-nordicfabiobaltieri
authored andcommitted
drivers: udc_dwc2: Enter hibernation during suspend
Save power when the bus is suspended by entering hibernation if hibernation support is enabled and controller supports hibernation. Signed-off-by: Tomasz Moń <[email protected]>
1 parent 42f2e1c commit 9f6b66f

File tree

2 files changed

+382
-9
lines changed

2 files changed

+382
-9
lines changed

drivers/usb/udc/Kconfig.dwc2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ config UDC_DWC2_DMA
1717
help
1818
Enable Buffer DMA if DWC2 USB controller supports Internal DMA.
1919

20+
config UDC_DWC2_HIBERNATION
21+
bool "DWC2 USB Hibernation support"
22+
default y
23+
depends on UDC_DWC2
24+
help
25+
Enable Hibernation if DWC2 USB controller supports hibernation.
26+
2027
config UDC_DWC2_STACK_SIZE
2128
int "UDC DWC2 driver internal thread stack size"
2229
depends on UDC_DWC2

0 commit comments

Comments
 (0)