usb: usb_dc: Replace CONFIG_ symbols that should be DT_
1. Fix trailing comment for DT_USBHS_MAXIMUM_SPEED 2. Fix missed CONFIG_USB_HS_BASE_ADDRES that should be DT_USB_HS_BASE_ADDRESS Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ae38cc6af2
commit
0370dbee4a
2 changed files with 3 additions and 3 deletions
|
@ -294,7 +294,7 @@ int usb_dc_attach(void)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
regval |= USBHS_DEVCTRL_SPDCONF_NORMAL;
|
regval |= USBHS_DEVCTRL_SPDCONF_NORMAL;
|
||||||
#endif /* CONFIG_USBHS_MAX_SPEED */
|
#endif /* DT_USBHS_MAXIMUM_SPEED */
|
||||||
USBHS->USBHS_DEVCTRL = regval;
|
USBHS->USBHS_DEVCTRL = regval;
|
||||||
|
|
||||||
/* Enable the USB clock */
|
/* Enable the USB clock */
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_REGISTER(usb_dc_stm32);
|
LOG_MODULE_REGISTER(usb_dc_stm32);
|
||||||
|
|
||||||
#if defined(DT_USB_BASE_ADDRESS) && defined(CONFIG_USB_HS_BASE_ADDRES)
|
#if defined(DT_USB_BASE_ADDRESS) && defined(DT_USB_HS_BASE_ADDRESS)
|
||||||
#error "Only one interface should be enabled at a time, OTG FS or OTG HS"
|
#error "Only one interface should be enabled at a time, OTG FS or OTG HS"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ static u32_t usb_dc_stm32_get_maximum_speed(void)
|
||||||
"USB controller will default to its maximum HW "
|
"USB controller will default to its maximum HW "
|
||||||
"capability");
|
"capability");
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_USB_MAX_SPEED */
|
#endif /* DT_USB_MAXIMUM_SPEED */
|
||||||
|
|
||||||
return speed;
|
return speed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue