mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
7b1d576416
feat(regi2c): add support for ESP32S31 Closes IDF-14680 See merge request espressif/esp-idf!46469
546 lines
26 KiB
C
546 lines
26 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*/
|
|
|
|
/*
|
|
* These defines are parsed and imported as kconfig variables via the script
|
|
* `tools/gen_soc_caps_kconfig/gen_soc_caps_kconfig.py`
|
|
*
|
|
* If this file is changed the script will automatically run the script
|
|
* and generate the kconfig variables as part of the pre-commit hooks.
|
|
*
|
|
* It can also be run manually. For more information, see `${IDF_PATH}/tools/gen_soc_caps_kconfig/README.md`
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if __has_include("soc/soc_caps_eval.h")
|
|
#include "soc/soc_caps_eval.h"
|
|
#endif
|
|
|
|
#define _SOC_CAPS_TARGET_IS_ESP32H2 1 // [gen_soc_caps:ignore]
|
|
|
|
#ifdef __has_include
|
|
# if __has_include("sdkconfig.h")
|
|
# include "sdkconfig.h"
|
|
# define SOC_CAPS_ECO_VER CONFIG_ESP32H2_REV_MIN_FULL
|
|
# endif
|
|
#endif
|
|
|
|
#if !defined(SOC_CAPS_ECO_VER)
|
|
#define SOC_CAPS_ECO_VER SOC_CAPS_ECO_VER_MAX
|
|
#endif
|
|
|
|
#ifndef SOC_CAPS_ECO_VER
|
|
#warning ECO version not determined. Some ECO related caps will not be available.
|
|
#warning Define SOC_CAPS_ECO_VER before including this header.
|
|
#endif
|
|
|
|
/*-------------------------- COMMON CAPS ---------------------------------------*/
|
|
#define SOC_CAPS_ECO_VER_MAX 102
|
|
#define SOC_ADC_SUPPORTED 1
|
|
#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_ASYNC_MEMCPY_SUPPORTED 1
|
|
#define SOC_PCNT_SUPPORTED 1
|
|
#define SOC_MCPWM_SUPPORTED 1
|
|
#define SOC_TWAI_SUPPORTED 1
|
|
#define SOC_PHY_SUPPORTED 1
|
|
#define SOC_BT_SUPPORTED 1
|
|
#define SOC_GPTIMER_SUPPORTED 1
|
|
#define SOC_IEEE802154_SUPPORTED 1
|
|
#define SOC_IEEE802154_BLE_ONLY 1
|
|
#define SOC_USB_SERIAL_JTAG_SUPPORTED 1
|
|
#define SOC_TEMP_SENSOR_SUPPORTED 1
|
|
#define SOC_SUPPORTS_SECURE_DL_MODE 1
|
|
#define SOC_EFUSE_KEY_PURPOSE_FIELD 1
|
|
#define SOC_EFUSE_SUPPORTED 1
|
|
#define SOC_RTC_FAST_MEM_SUPPORTED 1
|
|
#define SOC_RTC_MEM_SUPPORTED 1
|
|
#define SOC_I2S_SUPPORTED 1
|
|
#define SOC_SDM_SUPPORTED 1
|
|
#define SOC_ETM_SUPPORTED 1
|
|
#define SOC_RMT_SUPPORTED 1
|
|
#define SOC_PARLIO_SUPPORTED 1
|
|
#define SOC_PARLIO_LCD_SUPPORTED 1
|
|
#define SOC_GPSPI_SUPPORTED 1
|
|
#define SOC_LEDC_SUPPORTED 1
|
|
#define SOC_I2C_SUPPORTED 1
|
|
#define SOC_SYSTIMER_SUPPORTED 1
|
|
#define SOC_SUPPORT_COEXISTENCE 1
|
|
#define SOC_AES_SUPPORTED 1
|
|
#define SOC_MPI_SUPPORTED 1
|
|
#define SOC_SHA_SUPPORTED 1
|
|
#define SOC_HMAC_SUPPORTED 1
|
|
#define SOC_DIG_SIGN_SUPPORTED 1
|
|
#define SOC_ECC_SUPPORTED 1
|
|
#define SOC_ECC_EXTENDED_MODES_SUPPORTED 1
|
|
#define SOC_ECDSA_SUPPORTED 1
|
|
#define SOC_FLASH_ENC_SUPPORTED 1
|
|
#define SOC_SECURE_BOOT_SUPPORTED 1
|
|
#define SOC_BOD_SUPPORTED 1
|
|
#define SOC_VBAT_SUPPORTED 1
|
|
#define SOC_APM_SUPPORTED 1 /*!< Support for APM peripheral */
|
|
#define SOC_PMU_SUPPORTED 1
|
|
#define SOC_RTC_TIMER_SUPPORTED 1
|
|
#define SOC_LP_AON_SUPPORTED 1
|
|
#define SOC_PAU_SUPPORTED 1
|
|
#define SOC_CLK_TREE_SUPPORTED 1
|
|
#define SOC_ASSIST_DEBUG_SUPPORTED 1
|
|
#define SOC_WDT_SUPPORTED 1
|
|
#define SOC_RTC_WDT_SUPPORTED 1
|
|
#define SOC_SPI_FLASH_SUPPORTED 1
|
|
#define SOC_RNG_SUPPORTED 1
|
|
#define SOC_LIGHT_SLEEP_SUPPORTED 1
|
|
#define SOC_DEEP_SLEEP_SUPPORTED 1
|
|
#define SOC_MODEM_CLOCK_SUPPORTED 1
|
|
#define SOC_REGI2C_SUPPORTED 1
|
|
#define SOC_PM_SUPPORTED 1
|
|
#define SOC_SPI_EXTERNAL_NOR_FLASH_SUPPORTED 1
|
|
|
|
/*-------------------------- XTAL CAPS ---------------------------------------*/
|
|
#define SOC_XTAL_SUPPORT_32M 1
|
|
#define SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN 1
|
|
|
|
/*-------------------------- AES CAPS -----------------------------------------*/
|
|
#define SOC_AES_SUPPORT_DMA (1)
|
|
|
|
/* Has a centralized DMA, which is shared with all peripherals */
|
|
#define SOC_AES_GDMA (1)
|
|
|
|
#define SOC_AES_SUPPORT_AES_128 (1)
|
|
#define SOC_AES_SUPPORT_AES_256 (1)
|
|
|
|
#define SOC_AES_SUPPORT_PSEUDO_ROUND_FUNCTION (1) /*!< Only avliable in chip version above 1.2*/
|
|
|
|
/*-------------------------- ADC CAPS -------------------------------*/
|
|
/*!< SAR ADC Module*/
|
|
#define SOC_ADC_DIG_CTRL_SUPPORTED 1
|
|
#define SOC_ADC_DIG_IIR_FILTER_SUPPORTED 1
|
|
#define SOC_ADC_MONITOR_SUPPORTED 1
|
|
#define SOC_ADC_DIG_SUPPORTED_UNIT(UNIT) 1 //Digital controller supported ADC unit
|
|
#define SOC_ADC_DMA_SUPPORTED 1
|
|
#define SOC_ADC_PERIPH_NUM (1U)
|
|
#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) (5)
|
|
#define SOC_ADC_MAX_CHANNEL_NUM (5)
|
|
#define SOC_ADC_ATTEN_NUM (4)
|
|
|
|
/*!< Digital */
|
|
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
|
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
|
#define SOC_ADC_DIGI_MAX_BITWIDTH (12)
|
|
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
|
#define SOC_ADC_DIGI_IIR_FILTER_NUM (2)
|
|
#define SOC_ADC_DIGI_MONITOR_NUM (2)
|
|
#define SOC_ADC_DIGI_RESULT_BYTES (4)
|
|
#define SOC_ADC_DIGI_DATA_BYTES_PER_CONV (4)
|
|
/*!< F_sample = F_digi_con / 2 / interval. F_digi_con = 5M for now. 30 <= interval<= 4095 */
|
|
#define SOC_ADC_SAMPLE_FREQ_THRES_HIGH 83333
|
|
#define SOC_ADC_SAMPLE_FREQ_THRES_LOW 611
|
|
|
|
/*!< RTC */
|
|
#define SOC_ADC_RTC_MIN_BITWIDTH (12)
|
|
#define SOC_ADC_RTC_MAX_BITWIDTH (12)
|
|
|
|
/*!< Calibration */
|
|
#define SOC_ADC_CALIBRATION_V1_SUPPORTED (1) /*!< support HW offset calibration version 1*/
|
|
#define SOC_ADC_SELF_HW_CALI_SUPPORTED (1) /*!< support HW offset self calibration */
|
|
#define SOC_ADC_CALIB_CHAN_COMPENS_SUPPORTED (1) /*!< support channel compensation to the HW offset calibration */
|
|
|
|
/*!< Interrupt */
|
|
#define SOC_ADC_TEMPERATURE_SHARE_INTR (1)
|
|
|
|
/*!< ADC power control is shared by PWDET */
|
|
#define SOC_ADC_SHARED_POWER 1
|
|
|
|
// ESP32H2-TODO: Copy from esp32c6, need check
|
|
/*-------------------------- APB BACKUP DMA CAPS -------------------------------*/
|
|
#define SOC_APB_BACKUP_DMA (0)
|
|
|
|
/*-------------------------- BROWNOUT CAPS -----------------------------------*/
|
|
#define SOC_BROWNOUT_RESET_SUPPORTED 1
|
|
|
|
/*-------------------------- CACHE CAPS --------------------------------------*/
|
|
#define SOC_SHARED_IDCACHE_SUPPORTED 1 //Shared Cache for both instructions and data
|
|
#define SOC_CACHE_FREEZE_SUPPORTED 1
|
|
|
|
/*-------------------------- CPU CAPS ----------------------------------------*/
|
|
#define SOC_CPU_CORES_NUM (1U)
|
|
#define SOC_CPU_INTR_NUM 32
|
|
#define SOC_CPU_HAS_FLEXIBLE_INTC 1
|
|
#define SOC_INT_PLIC_SUPPORTED 1 //riscv platform-level interrupt controller
|
|
#define SOC_CPU_HAS_CSR_PC 1
|
|
|
|
#define SOC_CPU_BREAKPOINTS_NUM 4
|
|
#define SOC_CPU_WATCHPOINTS_NUM 4
|
|
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 0x80000000 // bytes
|
|
|
|
#define SOC_CPU_HAS_PMA 1
|
|
#define SOC_CPU_IDRAM_SPLIT_USING_PMP 1
|
|
#define SOC_CPU_PMP_REGION_GRANULARITY 4
|
|
// DIG-694: misaligned access across PMP regions must be spaced at least by two instructions
|
|
#define SOC_CPU_MISALIGNED_ACCESS_ON_PMP_MISMATCH_ISSUE 1
|
|
|
|
/*-------------------------- MMU CAPS ----------------------------------------*/
|
|
#define SOC_MMU_PAGE_SIZE_CONFIGURABLE (1)
|
|
#define SOC_MMU_PAGE_SIZE_8KB_SUPPORTED (1)
|
|
#define SOC_MMU_PERIPH_NUM (1U)
|
|
#define SOC_MMU_LINEAR_ADDRESS_REGION_NUM (1U)
|
|
#define SOC_MMU_DI_VADDR_SHARED (1) /*!< D/I vaddr are shared */
|
|
|
|
/*-------------------------- DIGITAL SIGNATURE CAPS ----------------------------------------*/
|
|
/** The maximum length of a Digital Signature in bits. */
|
|
#define SOC_DS_SIGNATURE_MAX_BIT_LEN (3072)
|
|
|
|
/** Initialization vector (IV) length for the RSA key parameter message digest (MD) in bytes. */
|
|
#define SOC_DS_KEY_PARAM_MD_IV_LENGTH (16)
|
|
|
|
/** Maximum wait time for DS parameter decryption key. If overdue, then key error.
|
|
See TRM DS chapter for more details */
|
|
#define SOC_DS_KEY_CHECK_MAX_WAIT_US (1100)
|
|
|
|
/*-------------------------- GDMA CAPS -------------------------------------*/
|
|
#define SOC_AHB_GDMA_VERSION 1U
|
|
#define SOC_GDMA_SUPPORT_ETM 1 // Support ETM submodule
|
|
#define SOC_GDMA_SUPPORT_SLEEP_RETENTION 1
|
|
|
|
/*-------------------------- GPIO CAPS ---------------------------------------*/
|
|
// ESP32-H2 has 1 GPIO peripheral
|
|
#define SOC_GPIO_PORT 1U
|
|
#define SOC_GPIO_PIN_COUNT 28
|
|
#define SOC_GPIO_SUPPORT_PIN_GLITCH_FILTER 1
|
|
#define SOC_GPIO_FLEX_GLITCH_FILTER_NUM 8
|
|
#define SOC_GPIO_SUPPORT_PIN_HYS_FILTER 1
|
|
#define SOC_GPIO_SUPPORT_PIN_HYS_CTRL_BY_EFUSE 1 // By default, hysteresis enable/disable is controlled by efuse
|
|
|
|
// GPIO peripheral has the ETM extension
|
|
#define SOC_GPIO_SUPPORT_ETM 1
|
|
|
|
// Target has no full LP IO subsystem, GPIO7~14 remain LP function (powered by VDD3V3_LP, and can be used as ext1 wakeup pins)
|
|
|
|
// LP IO peripherals have independent clock gating to manage
|
|
#define SOC_LP_IO_CLOCK_IS_INDEPENDENT (1)
|
|
|
|
// GPIO7~14 on ESP32H2 can support chip HP peripheral powerdown-ed sleep wakeup through EXT1 wake up
|
|
|
|
#define SOC_GPIO_VALID_GPIO_MASK ((1U << SOC_GPIO_PIN_COUNT) - 1)
|
|
#define SOC_GPIO_VALID_OUTPUT_GPIO_MASK SOC_GPIO_VALID_GPIO_MASK
|
|
|
|
#define SOC_GPIO_IN_RANGE_MAX 27
|
|
#define SOC_GPIO_OUT_RANGE_MAX 27
|
|
|
|
// digital I/O pad powered by VDD3P3_CPU or VDD_SPI(GPIO_NUM_0~6. GPIO_NUM_15~27)
|
|
#define SOC_GPIO_VALID_DIGITAL_IO_PAD_MASK 0x000000000FFF807FULL
|
|
|
|
// Support to force hold all IOs
|
|
#define SOC_GPIO_SUPPORT_FORCE_HOLD (1)
|
|
// Support to hold a single digital I/O when the digital domain is powered off
|
|
#define SOC_GPIO_SUPPORT_HOLD_SINGLE_IO_IN_DSLP (1)
|
|
|
|
// The Clock Out signal is route to the pin by GPIO matrix
|
|
#define SOC_GPIO_CLOCKOUT_BY_GPIO_MATRIX (1)
|
|
#define SOC_CLOCKOUT_HAS_SOURCE_GATE (1)
|
|
#define SOC_GPIO_CLOCKOUT_CHANNEL_NUM (3)
|
|
|
|
/*-------------------------- RTCIO CAPS --------------------------------------*/
|
|
/* No dedicated LP_IOMUX subsystem on ESP32-H2. LP functions are still supported
|
|
* for hold, wake & 32kHz crystal functions - via LP_AON registers */
|
|
#define SOC_RTCIO_PIN_COUNT (8U)
|
|
#define SOC_RTCIO_HOLD_SUPPORTED (1)
|
|
|
|
/*-------------------------- Sigma Delta Modulator CAPS -----------------*/
|
|
#define SOC_SDM_SUPPORT_SLEEP_RETENTION 1
|
|
|
|
/*-------------------------- ETM CAPS -----------------------------------*/
|
|
#define SOC_ETM_SUPPORT_SLEEP_RETENTION 1
|
|
|
|
/*-------------------------- I2C CAPS ----------------------------------------*/
|
|
#define SOC_I2C_NUM (2U)
|
|
#define SOC_HP_I2C_NUM (2U)
|
|
|
|
#define SOC_I2C_SUPPORT_XTAL (1)
|
|
#define SOC_I2C_SUPPORT_RTC (1)
|
|
#define SOC_I2C_SUPPORT_10BIT_ADDR (1)
|
|
|
|
#define SOC_I2C_SUPPORT_SLAVE (1)
|
|
#define SOC_I2C_SLAVE_SUPPORT_BROADCAST (1)
|
|
#define SOC_I2C_SLAVE_CAN_GET_STRETCH_CAUSE (1)
|
|
|
|
#define SOC_I2C_SUPPORT_SLEEP_RETENTION (1)
|
|
|
|
/*-------------------------- I2S CAPS ----------------------------------------*/
|
|
#define SOC_I2S_HW_VERSION_2 (1)
|
|
#define SOC_I2S_SUPPORTS_ETM (1)
|
|
#define SOC_I2S_SUPPORTS_PCM (1)
|
|
#define SOC_I2S_SUPPORTS_PDM (1)
|
|
#define SOC_I2S_SUPPORTS_PDM_TX (1) // Support to output raw PDM format data
|
|
#define SOC_I2S_SUPPORTS_PCM2PDM (1) // Support to write PCM format but output PDM format data with the help of PCM to PDM filter
|
|
#define SOC_I2S_SUPPORTS_PDM_RX (1) // Support to input raw PDM format data
|
|
#define SOC_I2S_PDM_MAX_TX_LINES (2)
|
|
#define SOC_I2S_PDM_MAX_RX_LINES (1U)
|
|
#define SOC_I2S_SUPPORTS_TDM (1)
|
|
|
|
/*-------------------------- LEDC CAPS ---------------------------------------*/
|
|
#define SOC_LEDC_SUPPORT_PLL_DIV_CLOCK (1)
|
|
#define SOC_LEDC_SUPPORT_XTAL_CLOCK (1)
|
|
#define SOC_LEDC_TIMER_NUM (4)
|
|
#define SOC_LEDC_CHANNEL_NUM (6)
|
|
#define SOC_LEDC_TIMER_BIT_WIDTH (20)
|
|
#define SOC_LEDC_SUPPORT_FADE_STOP (1)
|
|
#define SOC_LEDC_GAMMA_CURVE_FADE_SUPPORTED (1)
|
|
#define SOC_LEDC_GAMMA_CURVE_FADE_RANGE_MAX (16)
|
|
#define SOC_LEDC_FADE_PARAMS_BIT_WIDTH (10)
|
|
#define SOC_LEDC_SUPPORT_SLEEP_RETENTION (1)
|
|
#define SOC_LEDC_SUPPORT_ETM (1)
|
|
|
|
/*-------------------------- MPU CAPS ----------------------------------------*/
|
|
#define SOC_MPU_CONFIGURABLE_REGIONS_SUPPORTED 0
|
|
#define SOC_MPU_MIN_REGION_SIZE 0x20000000U
|
|
#define SOC_MPU_REGIONS_MAX_NUM 8
|
|
#define SOC_MPU_REGION_RO_SUPPORTED 0
|
|
#define SOC_MPU_REGION_WO_SUPPORTED 0
|
|
|
|
/*-------------------------- PCNT CAPS ---------------------------------------*/
|
|
#define SOC_PCNT_SUPPORT_RUNTIME_THRES_UPDATE 1
|
|
#define SOC_PCNT_SUPPORT_STEP_NOTIFY 1 /*!< Only avliable in chip version above 1.2*/
|
|
|
|
/*--------------------------- RMT CAPS ---------------------------------------*/
|
|
#define SOC_RMT_MEM_WORDS_PER_CHANNEL 48 /*!< Each channel owns 48 words memory (1 word = 4 Bytes) */
|
|
#define SOC_RMT_SUPPORT_RX_PINGPONG 1 /*!< Support Ping-Pong mode on RX path */
|
|
#define SOC_RMT_SUPPORT_TX_LOOP_COUNT 1 /*!< Support transmit specified number of cycles in loop mode */
|
|
#define SOC_RMT_SUPPORT_TX_LOOP_AUTO_STOP 1 /*!< Hardware support of auto-stop in loop mode */
|
|
#define SOC_RMT_SUPPORT_SLEEP_RETENTION 1 /*!< The sleep retention feature can help back up RMT registers before sleep */
|
|
|
|
/*-------------------------- MCPWM CAPS --------------------------------------*/
|
|
#define SOC_MCPWM_SWSYNC_CAN_PROPAGATE (1) ///< Software sync event can be routed to its output
|
|
#define SOC_MCPWM_SUPPORT_ETM (1) ///< Support ETM (Event Task Matrix)
|
|
#define SOC_MCPWM_CAPTURE_CLK_FROM_GROUP (1) ///< Capture timer shares clock with other PWM timers
|
|
#define SOC_MCPWM_SUPPORT_SLEEP_RETENTION (1) ///< Support back up registers before sleep
|
|
|
|
/*------------------------ USB SERIAL JTAG CAPS ------------------------------*/
|
|
// #define SOC_USB_SERIAL_JTAG_SUPPORT_LIGHT_SLEEP (1) /*!< Support to maintain minimum usb communication during light sleep */ // TODO: IDF-6395
|
|
|
|
/*-------------------------- PARLIO CAPS --------------------------------------*/
|
|
#define SOC_PARLIO_TX_UNIT_MAX_DATA_WIDTH 8 /*!< Number of data lines of the TX unit */
|
|
#define SOC_PARLIO_RX_UNIT_MAX_DATA_WIDTH 8 /*!< Number of data lines of the RX unit */
|
|
#define SOC_PARLIO_TX_CLK_SUPPORT_GATING 1 /*!< Support gating TX clock */
|
|
#define SOC_PARLIO_RX_CLK_SUPPORT_GATING 1 /*!< Support gating RX clock */
|
|
#define SOC_PARLIO_TX_SUPPORT_LOOP_TRANSMISSION 1 /*!< Support loop transmission. Note, 1 data-width loop transmission only avliable in chip version above 1.2 */
|
|
#define SOC_PARLIO_SUPPORT_SLEEP_RETENTION 1 /*!< Support back up registers before sleep */
|
|
|
|
/*--------------------------- MPI CAPS ---------------------------------------*/
|
|
#define SOC_MPI_MEM_BLOCKS_NUM (4)
|
|
#define SOC_MPI_OPERATIONS_NUM (3)
|
|
|
|
/*--------------------------- RSA CAPS ---------------------------------------*/
|
|
#define SOC_RSA_MAX_BIT_LEN (3072)
|
|
|
|
/*--------------------------- SHA CAPS ---------------------------------------*/
|
|
|
|
/* Max amount of bytes in a single DMA operation is 4095,
|
|
for SHA this means that the biggest safe amount of bytes is
|
|
31 blocks of 128 bytes = 3968
|
|
*/
|
|
#define SOC_SHA_DMA_MAX_BUFFER_SIZE (3968)
|
|
#define SOC_SHA_SUPPORT_DMA (1)
|
|
|
|
/* The SHA engine is able to resume hashing from a user */
|
|
#define SOC_SHA_SUPPORT_RESUME (1)
|
|
|
|
/* Has a centralized DMA, which is shared with all peripherals */
|
|
#define SOC_SHA_GDMA (1)
|
|
|
|
/* Supported HW algorithms */
|
|
#define SOC_SHA_SUPPORT_SHA1 (1)
|
|
#define SOC_SHA_SUPPORT_SHA224 (1)
|
|
#define SOC_SHA_SUPPORT_SHA256 (1)
|
|
|
|
/*-------------------------- SPI CAPS ----------------------------------------*/
|
|
#define SOC_SPI_PERIPH_NUM 2
|
|
#define SOC_SPI_PERIPH_CS_NUM(i) 6
|
|
#define SOC_SPI_MAXIMUM_BUFFER_SIZE 64
|
|
#define SOC_SPI_SUPPORT_SLAVE_HD_VER2 1
|
|
#define SOC_SPI_SUPPORT_SLEEP_RETENTION 1
|
|
#define SOC_SPI_MAX_BITWIDTH(host_id) (4) // Supported line mode: SPI2: 1, 2, 4
|
|
#define SOC_SPI_SCT_SUPPORTED(host_id) ((host_id) == 1)
|
|
|
|
/*-------------------------- SPI MEM CAPS ---------------------------------------*/
|
|
#define SOC_SPI_MEM_SUPPORT_AUTO_WAIT_IDLE (1)
|
|
#define SOC_SPI_MEM_SUPPORT_AUTO_SUSPEND (1)
|
|
#define SOC_SPI_MEM_SUPPORT_AUTO_RESUME (1)
|
|
#define SOC_SPI_MEM_SUPPORT_IDLE_INTR (1)
|
|
#define SOC_SPI_MEM_SUPPORT_SW_SUSPEND (1)
|
|
#define SOC_SPI_MEM_SUPPORT_CHECK_SUS (1)
|
|
#define SOC_SPI_MEM_SUPPORT_WRAP (1)
|
|
|
|
#define SOC_MEMSPI_IS_INDEPENDENT 1
|
|
|
|
#define SOC_MEMSPI_ENCRYPTION_ALIGNMENT 16 /*!< 16-byte alignment restriction to mem addr and size if encryption is enabled */
|
|
|
|
/*-------------------------- SYSTIMER CAPS ----------------------------------*/
|
|
#define SOC_SYSTIMER_SUPPORT_ETM 1 // Systimer comparator can generate ETM event
|
|
|
|
/*-------------------------- LP_TIMER CAPS ----------------------------------*/
|
|
#define SOC_LP_TIMER_BIT_WIDTH_LO 32 // Bit width of lp_timer low part
|
|
#define SOC_LP_TIMER_BIT_WIDTH_HI 16 // Bit width of lp_timer high part
|
|
#define SOC_RTC_TIMER_V2 1
|
|
|
|
/*--------------------------- TIMER GROUP CAPS ---------------------------------------*/
|
|
#define SOC_TIMER_SUPPORT_ETM (1)
|
|
#define SOC_TIMER_SUPPORT_SLEEP_RETENTION (1)
|
|
|
|
/*--------------------------- WATCHDOG CAPS ---------------------------------------*/
|
|
#define SOC_MWDT_SUPPORT_XTAL (1)
|
|
#define SOC_MWDT_SUPPORT_SLEEP_RETENTION (1)
|
|
|
|
/*-------------------------- TWAI CAPS ---------------------------------------*/
|
|
#define SOC_TWAI_CONTROLLER_NUM 1U
|
|
#define SOC_TWAI_MASK_FILTER_NUM 1U
|
|
#define SOC_TWAI_SUPPORT_SLEEP_RETENTION 1
|
|
|
|
/*-------------------------- eFuse CAPS----------------------------*/
|
|
#define SOC_EFUSE_DIS_PAD_JTAG 1
|
|
#define SOC_EFUSE_DIS_USB_JTAG 1
|
|
#define SOC_EFUSE_DIS_DIRECT_BOOT 1
|
|
#define SOC_EFUSE_SOFT_DIS_JTAG 1
|
|
#define SOC_EFUSE_DIS_ICACHE 1
|
|
#define SOC_EFUSE_BLOCK9_KEY_PURPOSE_QUIRK 1 // XTS-AES and ECDSA key purposes not supported for this block
|
|
#if SOC_CAPS_ECO_VER < 102
|
|
#define SOC_EFUSE_ECDSA_USE_HARDWARE_K 1 // Force use hardware TRNG supplied K for ECDSA
|
|
#endif
|
|
#define SOC_EFUSE_ECDSA_KEY 1
|
|
#define SOC_EFUSE_XTS_AES_KEY_128 1
|
|
|
|
/*-------------------------- Secure Boot CAPS----------------------------*/
|
|
#define SOC_SECURE_BOOT_V2_RSA 1
|
|
#define SOC_SECURE_BOOT_V2_ECC 1
|
|
#define SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS 3
|
|
#define SOC_EFUSE_REVOKE_BOOT_KEY_DIGESTS 1
|
|
#define SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY 1
|
|
|
|
/*-------------------------- Flash Encryption CAPS----------------------------*/
|
|
#define SOC_FLASH_ENCRYPTED_XTS_AES_BLOCK_MAX (64)
|
|
#define SOC_FLASH_ENCRYPTION_XTS_AES 1
|
|
#define SOC_FLASH_ENCRYPTION_XTS_AES_128 1
|
|
#define SOC_FLASH_ENCRYPTION_XTS_AES_SUPPORT_PSEUDO_ROUND 1 /*!< Only avliable in chip version above 1.2*/
|
|
#define SOC_FLASH_ENCRYPTION_PAGE_CONFIGURABLE 1 /* Flash encryption can be configured on a MMU page basis */
|
|
|
|
/*-------------------------- APM CAPS ----------------------------------------*/
|
|
#define SOC_APM_CTRL_FILTER_SUPPORTED 1 /*!< Support for APM control filter */
|
|
|
|
/*------------------------ Anti DPA (Security) CAPS --------------------------*/
|
|
#define SOC_CRYPTO_DPA_PROTECTION_SUPPORTED 1
|
|
|
|
/*--------------------------- ECC CAPS ---------------------------------------*/
|
|
#define SOC_ECC_CONSTANT_TIME_POINT_MUL 1
|
|
|
|
/*------------------------- ECDSA CAPS -------------------------*/
|
|
#define SOC_ECDSA_USES_MPI (1)
|
|
#define SOC_ECDSA_SUPPORT_DETERMINISTIC_MODE (1)
|
|
#define SOC_ECDSA_SUPPORT_HW_DETERMINISTIC_LOOP (1)
|
|
#define SOC_ECDSA_P192_CURVE_DEFAULT_DISABLED (1)
|
|
|
|
/*-------------------------- UART CAPS ---------------------------------------*/
|
|
// ESP32-H2 has 2 UARTs
|
|
#define SOC_UART_NUM (2)
|
|
#define SOC_UART_HP_NUM (2)
|
|
#define SOC_UART_FIFO_LEN (128) /*!< The UART hardware FIFO length */
|
|
#define SOC_UART_BITRATE_MAX (5000000) /*!< Max bit rate supported by UART */
|
|
|
|
#define SOC_UART_SUPPORT_RTC_CLK (1) /*!< Support RTC clock as the clock source */
|
|
#define SOC_UART_SUPPORT_XTAL_CLK (1) /*!< Support XTAL clock as the clock source */
|
|
#define SOC_UART_SUPPORT_WAKEUP_INT (1) /*!< Support UART wakeup interrupt */
|
|
|
|
#define SOC_UART_SUPPORT_SLEEP_RETENTION (1) /*!< Support back up registers before sleep */
|
|
|
|
#define SOC_UART_WAKEUP_CHARS_SEQ_MAX_LEN 5
|
|
#define SOC_UART_WAKEUP_SUPPORT_ACTIVE_THRESH_MODE (1)
|
|
#define SOC_UART_WAKEUP_SUPPORT_FIFO_THRESH_MODE (1)
|
|
#define SOC_UART_WAKEUP_SUPPORT_START_BIT_MODE (1)
|
|
#define SOC_UART_WAKEUP_SUPPORT_CHAR_SEQ_MODE (1)
|
|
|
|
/*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/
|
|
#define SOC_COEX_HW_PTI (1)
|
|
|
|
/*-------------------------- EXTERNAL COEXISTENCE CAPS -------------------------------------*/
|
|
#define SOC_EXTERNAL_COEX_ADVANCE (1) /*!< HARDWARE ADVANCED EXTERNAL COEXISTENCE CAPS */
|
|
#define SOC_EXTERNAL_COEX_LEADER_TX_LINE (0) /*!< EXTERNAL COEXISTENCE TX LINE CAPS */
|
|
|
|
/*--------------- PHY REGISTER AND MEMORY SIZE CAPS --------------------------*/
|
|
#define SOC_PHY_DIG_REGS_MEM_SIZE (21*4)
|
|
|
|
/*-------------------------- Power Management CAPS ----------------------------*/
|
|
#define SOC_PM_SUPPORT_BT_WAKEUP (1)
|
|
#define SOC_PM_SUPPORT_EXT1_WAKEUP (1)
|
|
#define SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */
|
|
#define SOC_PM_SUPPORT_CPU_PD (1)
|
|
#define SOC_PM_SUPPORT_MODEM_PD (1) /*!<modem includes BLE and 15.4 */
|
|
#define SOC_PM_SUPPORT_XTAL32K_PD (1)
|
|
#define SOC_PM_SUPPORT_RC32K_PD (1)
|
|
#define SOC_PM_SUPPORT_RC_FAST_PD (1)
|
|
#define SOC_PM_SUPPORT_VDDSDIO_PD (1)
|
|
#define SOC_PM_SUPPORT_TOP_PD (1)
|
|
|
|
#define SOC_PM_PAU_LINK_NUM (4)
|
|
#define SOC_PM_PAU_REGDMA_LINK_MULTI_ADDR (1)
|
|
#define SOC_PM_PAU_REGDMA_LINK_WIFIMAC (1)
|
|
|
|
#define SOC_PM_PAU_REGDMA_UPDATE_CACHE_BEFORE_WAIT_COMPARE (1)
|
|
|
|
#define SOC_PM_RETENTION_MODULE_NUM (32)
|
|
|
|
#define SOC_EXT_MEM_CACHE_TAG_IN_CPU_DOMAIN (1)
|
|
#define SOC_PM_CPU_RETENTION_BY_SW (1)
|
|
#define SOC_PM_MODEM_RETENTION_BY_REGDMA (1)
|
|
#define SOC_PM_SUPPORT_DEEPSLEEP_CHECK_STUB_ONLY (1) /*!<Supports CRC only the stub code in RTC memory */
|
|
#define SOC_PM_RETENTION_SW_TRIGGER_REGDMA (1) /*!< In esp32H2, regdma will power off when entering sleep */
|
|
|
|
#define SOC_PM_SUPPORT_PMU_CLK_ICG (1)
|
|
|
|
/*-------------------------- CLOCK SUBSYSTEM CAPS ----------------------------------------*/
|
|
#define SOC_CLK_RC_FAST_SUPPORT_CALIBRATION (1)
|
|
|
|
#define SOC_CLK_XTAL32K_SUPPORTED (1) /*!< Support to connect an external low frequency crystal */
|
|
#define SOC_CLK_OSC_SLOW_SUPPORTED (1) /*!< Support to connect an external oscillator, not a crystal */
|
|
#define SOC_CLK_RC32K_SUPPORTED (1) /*!< Support an internal 32kHz RC oscillator */
|
|
|
|
#define SOC_CLK_LP_FAST_SUPPORT_LP_PLL (1) /*!< Support LP_PLL clock as the LP_FAST clock source */
|
|
#define SOC_CLK_LP_FAST_SUPPORT_XTAL_D2 (1) /*!< Support XTAL_D2 clock as the LP_FAST clock source */
|
|
#define SOC_MODEM_CLOCK_IS_INDEPENDENT (1)
|
|
#define SOC_MODEM_CLOCK_BLE_RTC_TIMER_WORKAROUND (1)
|
|
|
|
#define SOC_RCC_IS_INDEPENDENT 1 /*!< Reset and Clock Control is independent, thanks to the PCR registers */
|
|
|
|
/*-------------------------- Temperature Sensor CAPS -------------------------------------*/
|
|
#define SOC_TEMPERATURE_SENSOR_SUPPORT_FAST_RC (1)
|
|
#define SOC_TEMPERATURE_SENSOR_SUPPORT_XTAL (1)
|
|
#define SOC_TEMPERATURE_SENSOR_INTR_SUPPORT (1)
|
|
#define SOC_TEMPERATURE_SENSOR_SUPPORT_ETM (1)
|
|
#define SOC_TEMPERATURE_SENSOR_SUPPORT_SLEEP_RETENTION (1)
|
|
#define SOC_TEMPERATURE_SENSOR_UNDER_PD_TOP_DOMAIN (1)
|
|
|
|
/*--------------------------------- RNG CAPS --------------------------------------------*/
|
|
#define SOC_RNG_CLOCK_IS_INDEPENDENT (1)
|
|
|
|
/*---------------------------------- Bluetooth CAPS ----------------------------------*/
|
|
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
|
|
#define SOC_BLE_MESH_SUPPORTED (1) /*!< Support BLE MESH */
|
|
#define SOC_ESP_NIMBLE_CONTROLLER (1) /*!< Support BLE EMBEDDED controller V1 */
|
|
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
|
|
#define SOC_BLE_DEVICE_PRIVACY_SUPPORTED (1) /*!< Support BLE device privacy mode */
|
|
#define SOC_BLE_POWER_CONTROL_SUPPORTED (1) /*!< Support Bluetooth Power Control */
|
|
#define SOC_BLE_MULTI_CONN_OPTIMIZATION (1) /*!< Support multiple connections optimization */
|
|
#define SOC_BLE_PERIODIC_ADV_ENH_SUPPORTED (1) /*!< Support For BLE Periodic Adv Enhancements */
|
|
#define SOC_BLE_CTE_SUPPORTED (1) /*!< Support Bluetooth LE Constant Tone Extension (CTE) */
|
|
#define SOC_BLE_SUBRATE_SUPPORTED (1) /*!< Support Bluetooth LE Connection Subrating */
|
|
#define SOC_BLE_PERIODIC_ADV_WITH_RESPONSE (1) /*!< Support Bluetooth LE Periodic Advertising with Response (PAwR) */
|
|
|
|
/*------------------------------------- DEBUG CAPS -------------------------------------*/
|
|
#define SOC_DEBUG_HAVE_OCD_STUB_BINS (1)
|