stm32f7: Remove references to BOARD_ENABLE_USBOTG_HSULPI. Prefer Kconfig option instead.

This commit is contained in:
Anthony Merlino 2021-04-12 19:17:26 -04:00 committed by Brennan Ashton
parent 73cc1f8884
commit 99a9d75cdd
3 changed files with 9 additions and 4 deletions

View File

@ -211,7 +211,9 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32F7_OTGFSHS
#if defined(CONFIG_STM32F7_INTERNAL_ULPI) || defined(CONFIG_STM32F7_EXTERNAL_ULPI)
# if defined(CONFIG_STM32F7_INTERNAL_ULPI) ||
defined(CONFIG_STM32F7_EXTERNAL_ULPI)
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);

View File

@ -215,12 +215,13 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32F7_OTGFSHS
#if defined(CONFIG_STM32F7_INTERNAL_ULPI) || defined(CONFIG_STM32F7_EXTERNAL_ULPI)
# if defined(CONFIG_STM32F7_INTERNAL_ULPI) || \
defined(CONFIG_STM32F7_EXTERNAL_ULPI)
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
#else
/* Enable only clocking for USB OTG HS */
regval |= RCC_AHB1ENR_OTGHSEN;

View File

@ -221,7 +221,9 @@ static inline void rcc_enableahb1(void)
#endif
#ifdef CONFIG_STM32F7_OTGFSHS
#ifdef BOARD_ENABLE_USBOTG_HSULPI
# if defined(CONFIG_STM32F7_INTERNAL_ULPI) || \
defined(CONFIG_STM32F7_EXTERNAL_ULPI)
/* Enable clocking for USB OTG HS and external PHY */
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);