diff --git a/pkg/tinyusb/hw/hw_stm32_otg.c b/pkg/tinyusb/hw/hw_stm32_otg.c index 3f1916088e..115ea26e63 100644 --- a/pkg/tinyusb/hw/hw_stm32_otg.c +++ b/pkg/tinyusb/hw/hw_stm32_otg.c @@ -37,6 +37,11 @@ static int tinyusb_hw_init_dev(const dwc2_usb_otg_fshs_config_t *conf) PWR->CR2 |= PWR_CR2_USV; #endif /* PWR_CR2_USV */ +#if defined(PWR_SVMCR_USV) + /* on U5: Validate USB Supply */ + PWR->SVMCR |= PWR_SVMCR_USV; +#endif /* PWR_SVMCR_USV */ + /* Enable the clock to the peripheral */ periph_clk_en(conf->ahb, conf->rcc_mask);