mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Add ESP32-S31 USB DWC/UTMI LL headers, SoC register structures, peripheral descriptors, capabilities, and linker mappings so the HS OTG controller and UTMI PHY can be built in esp_hal_usb. Introduce SOC_USB_FSLS_PHY_NUM on USB-OTG targets to separate FSLS USB_WRAP support from OTG/UTMI support. Use it to gate usb_wrap, the USB PHY driver, docs, and example build rules on targets without an FSLS PHY. Also add UTMI data pulldown control to the HAL, clear the boot-time DWC suspend state on ESP32-S31, alias the legacy internal PHY target to UTMI for backward compatibility, and extend usb_phy tests for UTMI-only targets.
25 lines
680 B
C
25 lines
680 B
C
/*
|
|
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stddef.h>
|
|
#include "soc/interrupts.h"
|
|
#include "soc/usb_periph.h"
|
|
|
|
/* --------------------------------- Public --------------------------------- */
|
|
|
|
const usb_dwc_info_t usb_dwc_info = {
|
|
.controllers = {
|
|
[0] = {
|
|
.fsls_signals = NULL,
|
|
.otg_signals = NULL,
|
|
.internal_phy_io = NULL, // HS PHY is not mapped to any GPIO
|
|
.supported_phys = USB_PHY_INST_UTMI_0,
|
|
.irq = ETS_USB_OTGHS_INTR_SOURCE,
|
|
.irq_2nd_cpu = ETS_USB_OTGHS_ENDP_MULTI_PROC_INTR_SOURCE,
|
|
},
|
|
},
|
|
};
|