[rtems-libbsd commit] dwc_otg: Enable voltage detector
Sebastian Huber
sebh at rtems.org
Tue Oct 27 05:33:38 UTC 2020
Module: rtems-libbsd
Branch: master
Commit: 3ad2cea0c5112997274932ce973094a47259ef5e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3ad2cea0c5112997274932ce973094a47259ef5e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Apr 8 07:26:39 2020 +0200
dwc_otg: Enable voltage detector
Update #3910.
---
rtemsbsd/sys/dev/usb/controller/dwc_otg_stm32h7.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/rtemsbsd/sys/dev/usb/controller/dwc_otg_stm32h7.c b/rtemsbsd/sys/dev/usb/controller/dwc_otg_stm32h7.c
index 4303798..464c9ba 100644
--- a/rtemsbsd/sys/dev/usb/controller/dwc_otg_stm32h7.c
+++ b/rtemsbsd/sys/dev/usb/controller/dwc_otg_stm32h7.c
@@ -82,6 +82,7 @@ dwc_otg_platform_init(struct dwc_otg_softc *sc)
stm32h7_gpio_init(&dwc_otg_pin_id);
stm32h7_clk_enable(STM32H7_MODULE_USB2_OTG);
stm32h7_clk_low_power_disable(STM32H7_MODULE_USB2_OTG_ULPI);
+ HAL_PWREx_EnableUSBVoltageDetector();
}
#endif /* LIBBSP_ARM_STM32H7_BSP_H */
More information about the vc
mailing list