Skip to content
Commit 01ddccdf authored by Khaoula Bidani's avatar Khaoula Bidani Committed by Benjamin Cabé
Browse files

drivers: usb: device: simplify code of maximum-speed



Add defines to avoid magic values in the dtsi.
Replace usb_dc_stm32_get_maximum_speed() with device tree property.
- Use DT_INST_STRING_UPPER_TOKEN(0, maximum_speed) to set the USB speed.
- Remove PCD_SPEED_FULL initialization.

Signed-off-by: default avatarKhaoula Bidani <khaoula.bidani-ext@st.com>
parent e359cc66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment