In the current USB device support, the sizes of bulk endpoint are mostly configure through Kconfig and do not care if a device is high-speed capable. The information if a USB device controller supports high-speed comes from devicetree. Add a Kconfig option to map this information and configure bulk endpoint sizes accordingly. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
16 lines
349 B
Plaintext
16 lines
349 B
Plaintext
# Copyright (c) 2016 Wind River Systems, Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config USB_DEVICE_LOOPBACK
|
|
bool "USB Loopback Function Driver"
|
|
help
|
|
USB Loopback Function Driver
|
|
|
|
config LOOPBACK_BULK_EP_MPS
|
|
int
|
|
depends on USB_DEVICE_LOOPBACK
|
|
default 512 if USB_DC_HAS_HS_SUPPORT
|
|
default 64
|
|
help
|
|
Loopback Function bulk endpoint size
|