mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(esp_hal_usb): Fix internal PHY default settings
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
|
||||
*/
|
||||
@@ -233,6 +233,20 @@ FORCE_INLINE_ATTR void usb_wrap_ll_phy_test_mode_set_signals(usb_wrap_dev_t *hw,
|
||||
hw->test_conf.val = test_conf.val;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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->otg_conf.ahb_clk_force_on = 0;
|
||||
hw->otg_conf.phy_clk_force_on = 0;
|
||||
}
|
||||
|
||||
/* ----------------------------- RCC Functions ----------------------------- */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user