mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Revert "fix(esp_hw_support): Fix deepsleep leakage after initializing USB HS phy"
This reverts commit 7107177e2d.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -7,15 +7,11 @@
|
||||
#include <stdbool.h>
|
||||
#include "soc/soc_caps.h"
|
||||
#include "esp_private/sleep_usb.h"
|
||||
#include "esp_attr.h"
|
||||
|
||||
#if SOC_USB_OTG_SUPPORTED && (SOC_PM_SUPPORT_CNNT_PD || SOC_USB_UTMI_PHY_NO_POWER_OFF_ISO)
|
||||
#if SOC_USB_OTG_SUPPORTED && SOC_PM_SUPPORT_CNNT_PD
|
||||
#include "hal/usb_utmi_ll.h"
|
||||
#include "hal/usb_dwc_ll.h"
|
||||
#endif
|
||||
|
||||
#if SOC_USB_OTG_SUPPORTED
|
||||
#if SOC_PM_SUPPORT_CNNT_PD
|
||||
static bool s_usb_utmi_bus_clock_state, s_usb_utmi_stoppclk_state, s_usb_dwc_bvalid_override;
|
||||
|
||||
void sleep_usb_otg_phy_backup_and_disable(void)
|
||||
@@ -41,13 +37,3 @@ void sleep_usb_otg_phy_restore(void)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if SOC_USB_UTMI_PHY_NO_POWER_OFF_ISO
|
||||
void sleep_usb_suppress_deepsleep_leakage(void)
|
||||
{
|
||||
if (_usb_utmi_ll_bus_clock_is_enabled()) {
|
||||
usb_dwc_ll_gusbcfg_en_hnp_cap(&USB_DWC_HS);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user