bsps/stm32h7: Fix typo causing crash on USB 2 initialization

There is certainly no USB 20 TG while there is a known USB 2 OTG tech. The
crash caused by this is well observed from media01.exe from libbsd compiled
for H7 and run on the board.
This commit is contained in:
Karel Gardas
2024-08-09 16:00:30 +02:00
committed by Kinsey Moore
parent 5eaf65953c
commit e8172c8651

View File

@@ -143,10 +143,10 @@ static const stm32h7_clk_info stm32h7_clk[] = {
#endif
[STM32H7_MODULE_USB1_OTG] = { &RCC->AHB1ENR, RCC_AHB1ENR_USB1OTGHSEN },
[STM32H7_MODULE_USB1_OTG_ULPI] = { &RCC->AHB1ENR, RCC_AHB1ENR_USB1OTGHSULPIEN },
#ifdef RCC_AHB1ENR_USB20TGHSEN
#ifdef RCC_AHB1ENR_USB2OTGHSEN
[STM32H7_MODULE_USB2_OTG] = { &RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSEN },
#endif
#ifdef RCC_AHB1ENR_USB20TGHSULPIEN
#ifdef RCC_AHB1ENR_USB2OTGHSULPIEN
[STM32H7_MODULE_USB2_OTG_ULPI] = { &RCC->AHB1ENR, RCC_AHB1ENR_USB2OTGHSULPIEN },
#endif
[STM32H7_MODULE_SDMMC1] = { &RCC->AHB3ENR, RCC_AHB3ENR_SDMMC1EN },