mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(esp_hw_support): fix p4 OTG phy bad suspend cause high power consumption on sleep
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "sdkconfig.h"
|
||||
#include "soc/soc_caps.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if SOC_USB_OTG_SUPPORTED && SOC_PM_SUPPORT_CNNT_PD
|
||||
/**
|
||||
* @brief Backup usb OTG phy bus_clock / stoppclk configuration and
|
||||
* before light sleep to avoid current leakage
|
||||
*/
|
||||
void sleep_usb_otg_phy_backup_and_disable(void);
|
||||
|
||||
/**
|
||||
* @brief Restore initial usb OTG phy configuration when wakeup from light sleep
|
||||
*/
|
||||
void sleep_usb_otg_phy_restore(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user