stm32f7: Remove references to BOARD_ENABLE_USBOTG_HSULPI. Prefer Kconfig option instead.
This commit is contained in:
parent
73cc1f8884
commit
99a9d75cdd
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue