35adb6e2c4
For historical reasons, the maximum speed of the Atmel SAM USB controller is done by comparing the maximum-speed property string from the DT using strncmp at runtime. Now that the DT_ENUM_IDX macro exists, we can use it to get the maximum-speed property at build time and without string comparison. Unsupported speed can also be reported at build time. Note that the default speed in case the optional maximum-speed property isn't present in the DT is changed from full-speed to high-speed to match the property description. This is a no-op in practice as this properties is defined at the soc level. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
usb_dc_dw.c | ||
usb_dc_kinetis.c | ||
usb_dc_mcux_ehci.c | ||
usb_dc_native_posix.c | ||
usb_dc_native_posix_adapt.c | ||
usb_dc_native_posix_adapt.h | ||
usb_dc_nrfx.c | ||
usb_dc_sam.c | ||
usb_dc_sam0.c | ||
usb_dc_stm32.c | ||
usb_dw_registers.h |