mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(esp_hal_usb): Fix internal PHY default settings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -172,6 +172,20 @@ FORCE_INLINE_ATTR void usb_wrap_ll_phy_set_tx_edge(usb_wrap_dev_t *hw, bool clk_
|
||||
(void)clk_neg_edge;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Route internal FSLS PHY AHB/PHY clock gating to DWC2
|
||||
*
|
||||
* Clears clock force-on bits so DWC2 can gate the internal PHY clocks during
|
||||
* port suspend and internal clock gating.
|
||||
*
|
||||
* @param hw Start address of the USB Wrap registers
|
||||
*/
|
||||
FORCE_INLINE_ATTR void usb_wrap_ll_enable_automatic_phy_control(usb_wrap_dev_t *hw)
|
||||
{
|
||||
hw->wrap_otg_conf.wrap_ahb_clk_force_on = 0;
|
||||
hw->wrap_otg_conf.wrap_phy_clk_force_on = 0;
|
||||
}
|
||||
|
||||
/* ------------------------------ USB PHY Test ------------------------------ */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user