mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'feat/uhci_esp32h21' into 'master'
feat(uhci): Add support for uhci on esp32h21 Closes IDF-11619 See merge request espressif/esp-idf!46794
This commit is contained in:
@@ -807,10 +807,6 @@ config SOC_UART_WAKEUP_SUPPORT_ACTIVE_THRESH_MODE
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_COEX_HW_PTI
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -360,9 +360,6 @@
|
||||
|
||||
#define SOC_UART_WAKEUP_SUPPORT_ACTIVE_THRESH_MODE (1)
|
||||
|
||||
/*--------------------------- UHCI CAPS -------------------------------------*/
|
||||
#define SOC_UHCI_NUM (1UL)
|
||||
|
||||
/*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/
|
||||
#define SOC_COEX_HW_PTI (1)
|
||||
|
||||
|
||||
@@ -1315,10 +1315,6 @@ config SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_COEX_HW_PTI
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -535,9 +535,6 @@
|
||||
#define SOC_UART_WAKEUP_SUPPORT_START_BIT_MODE (1)
|
||||
#define SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE (1)
|
||||
|
||||
/*--------------------------- UHCI CAPS -------------------------------------*/
|
||||
#define SOC_UHCI_NUM (1UL)
|
||||
|
||||
/*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/
|
||||
#define SOC_COEX_HW_PTI (1)
|
||||
|
||||
|
||||
@@ -1063,10 +1063,6 @@ config SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_COEX_HW_PTI
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -440,9 +440,6 @@
|
||||
#define SOC_UART_WAKEUP_SUPPORT_START_BIT_MODE (1)
|
||||
#define SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE (1)
|
||||
|
||||
/*--------------------------- UHCI CAPS -------------------------------------*/
|
||||
#define SOC_UHCI_NUM (1UL)
|
||||
|
||||
/*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/
|
||||
#define SOC_COEX_HW_PTI (1)
|
||||
|
||||
|
||||
@@ -1067,10 +1067,6 @@ config SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_COEX_HW_PTI
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -464,9 +464,6 @@
|
||||
#define SOC_UART_WAKEUP_SUPPORT_START_BIT_MODE (1)
|
||||
#define SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE (1)
|
||||
|
||||
/*--------------------------- UHCI CAPS -------------------------------------*/
|
||||
#define SOC_UHCI_NUM (1UL)
|
||||
|
||||
/*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/
|
||||
#define SOC_COEX_HW_PTI (1)
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@ config SOC_UART_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_GDMA_SUPPORTED
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#define SOC_ANA_CMPR_SUPPORTED 1
|
||||
#define SOC_DEDICATED_GPIO_SUPPORTED 1
|
||||
#define SOC_UART_SUPPORTED 1
|
||||
#define SOC_UHCI_SUPPORTED 1
|
||||
#define SOC_GDMA_SUPPORTED 1
|
||||
#define SOC_AHB_GDMA_SUPPORTED 1
|
||||
#define SOC_GPTIMER_SUPPORTED 1
|
||||
|
||||
@@ -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 OR MIT
|
||||
*/
|
||||
@@ -241,187 +241,31 @@ typedef union {
|
||||
uint32_t val;
|
||||
} uhci_quick_sent_reg_t;
|
||||
|
||||
/** Type of reg_q0_word0 register
|
||||
/** Type of reg_qn_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q0_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
/** send_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q0_word0:32;
|
||||
uint32_t send_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q0_word0_reg_t;
|
||||
} uhci_reg_qn_word0_reg_t;
|
||||
|
||||
/** Type of reg_q0_word1 register
|
||||
/** Type of reg_qn_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q0_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
/** send_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q0_word1:32;
|
||||
uint32_t send_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q0_word1_reg_t;
|
||||
|
||||
/** Type of reg_q1_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q1_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q1_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q1_word0_reg_t;
|
||||
|
||||
/** Type of reg_q1_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q1_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q1_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q1_word1_reg_t;
|
||||
|
||||
/** Type of reg_q2_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q2_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q2_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q2_word0_reg_t;
|
||||
|
||||
/** Type of reg_q2_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q2_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q2_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q2_word1_reg_t;
|
||||
|
||||
/** Type of reg_q3_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q3_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q3_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q3_word0_reg_t;
|
||||
|
||||
/** Type of reg_q3_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q3_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q3_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q3_word1_reg_t;
|
||||
|
||||
/** Type of reg_q4_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q4_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q4_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q4_word0_reg_t;
|
||||
|
||||
/** Type of reg_q4_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q4_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q4_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q4_word1_reg_t;
|
||||
|
||||
/** Type of reg_q5_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q5_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q5_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q5_word0_reg_t;
|
||||
|
||||
/** Type of reg_q5_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q5_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q5_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q5_word1_reg_t;
|
||||
|
||||
/** Type of reg_q6_word0 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q6_word0 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q6_word0:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q6_word0_reg_t;
|
||||
|
||||
/** Type of reg_q6_word1 register
|
||||
* a
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** send_q6_word1 : R/W; bitpos: [31:0]; default: 0;
|
||||
* a
|
||||
*/
|
||||
uint32_t send_q6_word1:32;
|
||||
};
|
||||
uint32_t val;
|
||||
} uhci_reg_q6_word1_reg_t;
|
||||
} uhci_reg_qn_word1_reg_t;
|
||||
|
||||
/** Type of esc_conf0 register
|
||||
* a
|
||||
@@ -774,7 +618,7 @@ typedef union {
|
||||
} uhci_date_reg_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
typedef struct uhci_dev_t {
|
||||
volatile uhci_conf0_reg_t conf0;
|
||||
volatile uhci_int_raw_reg_t int_raw;
|
||||
volatile uhci_int_st_reg_t int_st;
|
||||
@@ -788,20 +632,10 @@ typedef struct {
|
||||
volatile uhci_ack_num_reg_t ack_num;
|
||||
volatile uhci_rx_head_reg_t rx_head;
|
||||
volatile uhci_quick_sent_reg_t quick_sent;
|
||||
volatile uhci_reg_q0_word0_reg_t reg_q0_word0;
|
||||
volatile uhci_reg_q0_word1_reg_t reg_q0_word1;
|
||||
volatile uhci_reg_q1_word0_reg_t reg_q1_word0;
|
||||
volatile uhci_reg_q1_word1_reg_t reg_q1_word1;
|
||||
volatile uhci_reg_q2_word0_reg_t reg_q2_word0;
|
||||
volatile uhci_reg_q2_word1_reg_t reg_q2_word1;
|
||||
volatile uhci_reg_q3_word0_reg_t reg_q3_word0;
|
||||
volatile uhci_reg_q3_word1_reg_t reg_q3_word1;
|
||||
volatile uhci_reg_q4_word0_reg_t reg_q4_word0;
|
||||
volatile uhci_reg_q4_word1_reg_t reg_q4_word1;
|
||||
volatile uhci_reg_q5_word0_reg_t reg_q5_word0;
|
||||
volatile uhci_reg_q5_word1_reg_t reg_q5_word1;
|
||||
volatile uhci_reg_q6_word0_reg_t reg_q6_word0;
|
||||
volatile uhci_reg_q6_word1_reg_t reg_q6_word1;
|
||||
volatile struct {
|
||||
uhci_reg_qn_word0_reg_t word0;
|
||||
uhci_reg_qn_word1_reg_t word1;
|
||||
} q_data[7];
|
||||
volatile uhci_esc_conf0_reg_t esc_conf0;
|
||||
volatile uhci_esc_conf1_reg_t esc_conf1;
|
||||
volatile uhci_esc_conf2_reg_t esc_conf2;
|
||||
|
||||
@@ -1687,10 +1687,6 @@ config SOC_LP_I2S_SUPPORT_VAD
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_COEX_HW_PTI
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -644,9 +644,6 @@
|
||||
/*-------------------------- LP_VAD CAPS -------------------------------------*/
|
||||
#define SOC_LP_I2S_SUPPORT_VAD (1)
|
||||
|
||||
/*--------------------------- UHCI CAPS -------------------------------------*/
|
||||
#define SOC_UHCI_NUM (1UL)
|
||||
|
||||
/*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/
|
||||
#define SOC_COEX_HW_PTI (1)
|
||||
|
||||
|
||||
@@ -787,10 +787,6 @@ config SOC_UART_WAKEUP_SUPPORT_ACTIVE_THRESH_MODE
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_UHCI_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
config SOC_USB_OTG_PERIPH_NUM
|
||||
int
|
||||
default 1
|
||||
|
||||
@@ -329,9 +329,6 @@
|
||||
|
||||
#define SOC_UART_WAKEUP_SUPPORT_ACTIVE_THRESH_MODE (1)
|
||||
|
||||
/*--------------------------- UHCI CAPS -------------------------------------*/
|
||||
#define SOC_UHCI_NUM (1UL)
|
||||
|
||||
/*-------------------------- USB CAPS ----------------------------------------*/
|
||||
#define SOC_USB_OTG_PERIPH_NUM (1U)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user