mirror of
https://github.com/apache/nuttx.git
synced 2026-06-03 22:20:31 +08:00
stm32f7: Remove references to BOARD_ENABLE_USBOTG_HSULPI. Prefer Kconfig option instead.
This commit is contained in:
committed by
Brennan Ashton
parent
73cc1f8884
commit
99a9d75cdd
@@ -211,7 +211,9 @@ static inline void rcc_enableahb1(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_STM32F7_OTGFSHS
|
#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 */
|
/* Enable clocking for USB OTG HS and external PHY */
|
||||||
|
|
||||||
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
|
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
|
||||||
|
|||||||
@@ -215,12 +215,13 @@ static inline void rcc_enableahb1(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_STM32F7_OTGFSHS
|
#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 */
|
/* Enable clocking for USB OTG HS and external PHY */
|
||||||
|
|
||||||
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
|
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Enable only clocking for USB OTG HS */
|
/* Enable only clocking for USB OTG HS */
|
||||||
|
|
||||||
regval |= RCC_AHB1ENR_OTGHSEN;
|
regval |= RCC_AHB1ENR_OTGHSEN;
|
||||||
|
|||||||
@@ -221,7 +221,9 @@ static inline void rcc_enableahb1(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_STM32F7_OTGFSHS
|
#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 */
|
/* Enable clocking for USB OTG HS and external PHY */
|
||||||
|
|
||||||
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
|
regval |= (RCC_AHB1ENR_OTGHSEN | RCC_AHB1ENR_OTGHSULPIEN);
|
||||||
|
|||||||
Reference in New Issue
Block a user