Skip to content

Commit

Permalink
usb_serial_jtag: remove the strict condition check in esp_phy
Browse files Browse the repository at this point in the history
  • Loading branch information
mythbuster5 authored and espressif-bot committed Feb 15, 2022
1 parent bf523af commit 93be7d5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions components/esp_phy/src/phy_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
#include "esp_rom_crc.h"
#include "esp_rom_sys.h"

#if CONFIG_ESP_PHY_ENABLE_USB
#include "hal/usb_serial_jtag_ll.h"
#endif

#include "soc/rtc_cntl_reg.h"
#if CONFIG_IDF_TARGET_ESP32C3
#include "soc/syscon_reg.h"
Expand Down Expand Up @@ -660,13 +656,7 @@ void esp_phy_load_cal_and_init(void)
#endif

#if CONFIG_ESP_PHY_ENABLE_USB
#if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG || CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
if (usb_serial_jtag_ll_txfifo_writable() == 1)
#endif // Only check usb_jtag status with usb_jtag related config options enabled.
{
// If the USB_SEIRAL_JTAG is really in use.
phy_bbpll_en_usb(true);
}
phy_bbpll_en_usb(true);
#endif

#ifdef CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
Expand Down

0 comments on commit 93be7d5

Please sign in to comment.