Kaynağa Gözat

esp_phy: fix esp32s3 phy work with USB-OTG issue

chenjianxing 4 yıl önce
ebeveyn
işleme
c3951d5e9d
2 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. 5 4
      components/esp_phy/Kconfig
  2. 1 1
      components/esp_phy/lib

+ 5 - 4
components/esp_phy/Kconfig

@@ -106,10 +106,11 @@ menu "PHY"
 
     config ESP_PHY_ENABLE_USB
         bool "Enable USB when phy init"
-        depends on ESP_CONSOLE_USB_SERIAL_JTAG
-        default y
+        depends on USB_OTG_SUPPORTED || ESP_CONSOLE_USB_SERIAL_JTAG
+        default y if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
+        default n
         help
-            When using USB Serial/JTAG controller, PHY should enable USB, otherwise log will
-            not be displayed. But working with USB, the RF performance may be affected.
+            When using USB Serial/JTAG/OTG/CDC, PHY should enable USB, otherwise USB module
+            can not work properly.
 
 endmenu  # PHY

+ 1 - 1
components/esp_phy/lib

@@ -1 +1 @@
-Subproject commit fe7dc9599bd318518eccc165d9e751114e28e7d2
+Subproject commit 8c34eec8b8463cbd038c242f0da5e7b68cacd39b