From 37e9ba55d10bb066d66766f185ba95a8c3d13861 Mon Sep 17 00:00:00 2001 From: morris Date: Thu, 25 Sep 2025 17:30:58 +0800 Subject: [PATCH] feat(axi_icm): support esp32-p4 rev3.0 --- components/soc/esp32p4/ld/esp32p4.peripherals.ld | 1 + .../soc/esp32p4/register/hw_ver3/soc/icm_sys_qos_struct.h | 6 +++--- .../soc/esp32p4/register/hw_ver3/soc/icm_sys_struct.h | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/soc/esp32p4/ld/esp32p4.peripherals.ld b/components/soc/esp32p4/ld/esp32p4.peripherals.ld index a1e9e7fa89..13302d2c1e 100644 --- a/components/soc/esp32p4/ld/esp32p4.peripherals.ld +++ b/components/soc/esp32p4/ld/esp32p4.peripherals.ld @@ -24,6 +24,7 @@ PROVIDE ( AXI_ICM_QOS = 0x500A4400 ); PROVIDE ( HP_PERI_PMS = 0x500A5000 ); PROVIDE ( LP2HP_PERI_PMS = 0x500A5800 ); PROVIDE ( DMA_PMS = 0x500A6000 ); +PROVIDE ( AXI_PERF_MON = 0x500A8000 ); PROVIDE ( LEDC = 0x500D3000 ); PROVIDE ( LEDC_GAMMA_RAM = 0x500D3400 ); PROVIDE ( TIMERG0 = 0x500C2000 ); diff --git a/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_qos_struct.h b/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_qos_struct.h index 8e66405ca9..4fbe7cbe1e 100644 --- a/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_qos_struct.h +++ b/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_qos_struct.h @@ -144,12 +144,12 @@ typedef struct { volatile icm_axi_hw_cfg_reg_reg_t hw_cfg_reg; volatile icm_axi_cmd_reg_t cmd; volatile icm_axi_data_reg_t data; -} icm_axi_dev_t; +} axi_icm_qos_dev_t; -extern icm_axi_dev_t ICM_SYS; +extern axi_icm_qos_dev_t AXI_ICM_QOS; #ifndef __cplusplus -_Static_assert(sizeof(icm_axi_dev_t) == 0x10, "Invalid size of icm_axi_dev_t structure"); +_Static_assert(sizeof(axi_icm_qos_dev_t) == 0x10, "Invalid size of axi_icm_qos_dev_t structure"); #endif #ifdef __cplusplus diff --git a/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_struct.h b/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_struct.h index 92fe8de9fd..097455faa8 100644 --- a/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_struct.h +++ b/components/soc/esp32p4/register/hw_ver3/soc/icm_sys_struct.h @@ -508,12 +508,12 @@ typedef struct { volatile icm_rdn_eco_cs_reg_t rdn_eco_cs; volatile icm_rdn_eco_low_reg_t rdn_eco_low; volatile icm_rdn_eco_high_reg_t rdn_eco_high; -} icm_dev_t; +} axi_icm_dev_t; -extern icm_dev_t ICM_SYS; +extern axi_icm_dev_t AXI_ICM; #ifndef __cplusplus -_Static_assert(sizeof(icm_dev_t) == 0x5c, "Invalid size of icm_dev_t structure"); +_Static_assert(sizeof(axi_icm_dev_t) == 0x5c, "Invalid size of axi_icm_dev_t structure"); #endif #ifdef __cplusplus