mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'fix/usb_phy_pull_override_backport_v5.2' into 'release/v5.2'
fix(usb_phy): Removed pull resistors override configuration for Internal FSLS PHY (backport to v5.2) See merge request espressif/esp-idf!39214
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@ -157,19 +157,7 @@ esp_err_t usb_phy_otg_dev_set_speed(usb_phy_handle_t handle, usb_phy_speed_t spe
|
|||||||
USBPHY_TAG, "set speed not supported");
|
USBPHY_TAG, "set speed not supported");
|
||||||
|
|
||||||
handle->otg_speed = speed;
|
handle->otg_speed = speed;
|
||||||
// Configure pull resistors for device
|
// No need to configure anything for Internal USB FSLS PHY
|
||||||
usb_wrap_pull_override_vals_t vals = {
|
|
||||||
.dp_pd = false,
|
|
||||||
.dm_pd = false,
|
|
||||||
};
|
|
||||||
if (speed == USB_PHY_SPEED_LOW) {
|
|
||||||
vals.dp_pu = false;
|
|
||||||
vals.dm_pu = true;
|
|
||||||
} else {
|
|
||||||
vals.dp_pu = true;
|
|
||||||
vals.dm_pu = false;
|
|
||||||
}
|
|
||||||
usb_wrap_hal_phy_enable_pull_override(&handle->wrap_hal, &vals);
|
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user