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:
Kumar Gala 2019-01-31 13:20:44 -06:00 committed by Kumar Gala
commit 0370dbee4a
2 changed files with 3 additions and 3 deletions

View file

@ -294,7 +294,7 @@ int usb_dc_attach(void)
}
#else
regval |= USBHS_DEVCTRL_SPDCONF_NORMAL;
#endif /* CONFIG_USBHS_MAX_SPEED */
#endif /* DT_USBHS_MAXIMUM_SPEED */
USBHS->USBHS_DEVCTRL = regval;
/* Enable the USB clock */

View file

@ -55,7 +55,7 @@
#include <logging/log.h>
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"
#endif
@ -329,7 +329,7 @@ static u32_t usb_dc_stm32_get_maximum_speed(void)
"USB controller will default to its maximum HW "
"capability");
}
#endif /* CONFIG_USB_MAX_SPEED */
#endif /* DT_USB_MAXIMUM_SPEED */
return speed;
}