From 9153f70da1cc25f67e47eefad569127b4cdcd912 Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Tue, 16 Apr 2024 11:53:04 -0300 Subject: [PATCH] soc: esp32: spiram: add ECC config Adds ECC feature to be enabled for esp32s3 SoC. Signed-off-by: Sylvio Alves --- soc/espressif/common/Kconfig.spiram | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/soc/espressif/common/Kconfig.spiram b/soc/espressif/common/Kconfig.spiram index 0daad784aa9..7ee95172a1f 100644 --- a/soc/espressif/common/Kconfig.spiram +++ b/soc/espressif/common/Kconfig.spiram @@ -141,6 +141,14 @@ config SPIRAM_RODATA can forgo being placed in IRAM, thus optimizing RAM usage (see External RAM documentation for more details). +config SPIRAM_ECC_ENABLE + bool "Allow enabling SPI RAM ECC" + default n + depends on SPIRAM_MODE_OCT && SOC_SERIES_ESP32S3 + help + Enable MSPI Error-Correcting Code function when accessing SPIRAM. + If enabled, 1/16 of the SPI RAM total size will be reserved for error-correcting code. + if SOC_SERIES_ESP32 menu "PSRAM clock and cs IO for ESP32-DOWD"