Skip to content

Commit

Permalink
drivers/usdev_synopsys_dwc2: enable EFM32GG11B support
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Sep 12, 2023
1 parent e0b70c6 commit 8c057c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usbdev_synopsys_dwc2/usbdev_synopsys_dwc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8c057c2

Please sign in to comment.