1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/usdev_synopsys_dwc2: enable EFM32GG11B support

This commit is contained in:
Gunar Schorcht 2023-08-15 16:13:01 +02:00
parent 59daab0ba7
commit b34f48c233

View File

@ -667,13 +667,13 @@ static void _wake_periph(const dwc2_usb_otg_fshs_config_t *conf)
#elif defined(MCU_EFM32)
pm_block(EFM32_PM_MODE_EM2);
/* switch USB core clock source either to USHFRCO or HFCLK */
#if defined(CPU_FAM_EFM32GG12B)
#if defined(CPU_FAM_EFM32GG12B) || defined(CPU_FAM_EFM32GG11B)
CMU_ClockSelectSet(cmuClock_USB, cmuSelect_USHFRCO);
#elif defined(CPU_FAM_EFM32GG) || defined(CPU_FAM_EFM32LG)
CMU_ClockSelectSet(cmuClock_USB, cmuSelect_HFCLK);
#else
#error "EFM32 family not yet supported"
#endif /* defined(CPU_FAM_EFM32GG12B) */
#endif /* defined(CPU_FAM_EFM32GG12B) || defined(CPU_FAM_EFM32GG11B) */
#elif defined(MCU_ESP32)
pm_block(ESP_PM_LIGHT_SLEEP);
#elif defined(MCU_GD32V)
@ -784,7 +784,7 @@ static void _usbdev_init(usbdev_t *dev)
pm_block(EFM32_PM_MODE_EM3);
pm_block(EFM32_PM_MODE_EM2);
#if defined(CPU_FAM_EFM32GG12B)
#if defined(CPU_FAM_EFM32GG12B) || defined(CPU_FAM_EFM32GG11B)
/* select USHFRCO as USB clock and set the tuning to 48 MHz */
CMU_ClockSelectSet(cmuClock_USB, cmuSelect_USHFRCO);
CMU_USHFRCOBandSet(cmuUSHFRCOFreq_48M0Hz);