This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ace09cf10 stm32h7/otgdev: FS transceiver must be enabled if OTGFS 
enabled
1ace09cf10 is described below

commit 1ace09cf101086a8b1c707a72d53b53feaa87506
Author: raiden00pl <raide...@railab.me>
AuthorDate: Wed Apr 5 13:24:46 2023 +0200

    stm32h7/otgdev: FS transceiver must be enabled if OTGFS enabled
---
 arch/arm/src/stm32h7/stm32_otgdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/stm32h7/stm32_otgdev.c 
b/arch/arm/src/stm32h7/stm32_otgdev.c
index 1172ce7d3e..7a72b5ec2b 100644
--- a/arch/arm/src/stm32h7/stm32_otgdev.c
+++ b/arch/arm/src/stm32h7/stm32_otgdev.c
@@ -5262,7 +5262,7 @@ static void stm32_hwinitialize(struct stm32_usbdev_s 
*priv)
 
   stm32_putreg(OTG_GAHBCFG_TXFELVL, STM32_OTG_GAHBCFG);
 
-#ifdef CONFIG_STM32H7_OTGHS_NO_ULPI
+#if defined(CONFIG_STM32H7_OTGHS_NO_ULPI) || defined(CONFIG_STM32H7_OTGFS)
   /* Full speed serial transceiver select */
 
   regval = stm32_getreg(STM32_OTG_GUSBCFG);
@@ -5313,7 +5313,7 @@ static void stm32_hwinitialize(struct stm32_usbdev_s 
*priv)
 
   regval = stm32_getreg(STM32_OTG_GCCFG);
 
-#ifdef CONFIG_STM32H7_OTGHS_NO_ULPI
+#if defined(CONFIG_STM32H7_OTGHS_NO_ULPI) || defined(CONFIG_STM32H7_OTGFS)
   /* Enable USB FS transceiver */
 
   regval |= OTG_GCCFG_PWRDWN;

Reply via email to