mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
f339b3fc96
These functions were used only for esp32 in secure_boot and flash encryption. Use idf efuse APIs instead of efuse regs.
64 lines
2.5 KiB
Plaintext
64 lines
2.5 KiB
Plaintext
menu "eFuse Bit Manager"
|
|
|
|
config EFUSE_CUSTOM_TABLE
|
|
bool "Use custom eFuse table"
|
|
default n
|
|
help
|
|
Allows to generate a structure for eFuse from the CSV file.
|
|
|
|
config EFUSE_CUSTOM_TABLE_FILENAME
|
|
string "Custom eFuse CSV file"
|
|
depends on EFUSE_CUSTOM_TABLE
|
|
default "main/esp_efuse_custom_table.csv"
|
|
help
|
|
Name of the custom eFuse CSV filename. This path is evaluated
|
|
relative to the project root directory.
|
|
|
|
config EFUSE_VIRTUAL
|
|
bool "Simulate eFuse operations in RAM"
|
|
default n
|
|
help
|
|
If "n" - No virtual mode. All eFuse operations are real and use eFuse registers.
|
|
If "y" - The virtual mode is enabled and all eFuse operations (read and write) are redirected
|
|
to RAM instead of eFuse registers, all permanent changes (via eFuse) are disabled.
|
|
Log output will state changes that would be applied, but they will not be.
|
|
|
|
During startup, the eFuses are copied into RAM. This mode is useful for fast tests.
|
|
|
|
config EFUSE_VIRTUAL_KEEP_IN_FLASH
|
|
bool "Keep eFuses in flash"
|
|
depends on EFUSE_VIRTUAL
|
|
help
|
|
In addition to the "Simulate eFuse operations in RAM" option, this option just adds
|
|
a feature to keep eFuses after reboots in flash memory. To use this mode the partition_table
|
|
should have the `efuse` partition. partition.csv: "efuse_em, data, efuse, , 0x2000,"
|
|
|
|
During startup, the eFuses are copied from flash or,
|
|
in case if flash is empty, from real eFuse to RAM and then update flash.
|
|
This mode is useful when need to keep changes after reboot
|
|
(testing secure_boot and flash_encryption).
|
|
|
|
choice EFUSE_CODE_SCHEME_SELECTOR
|
|
prompt "Coding Scheme Compatibility"
|
|
default EFUSE_CODE_SCHEME_COMPAT_3_4
|
|
depends on IDF_TARGET_ESP32
|
|
help
|
|
Selector eFuse code scheme.
|
|
|
|
config EFUSE_CODE_SCHEME_COMPAT_NONE
|
|
bool "None Only"
|
|
config EFUSE_CODE_SCHEME_COMPAT_3_4
|
|
bool "3/4 and None"
|
|
config EFUSE_CODE_SCHEME_COMPAT_REPEAT
|
|
bool "Repeat, 3/4 and None (common table does not support it)"
|
|
endchoice
|
|
|
|
config EFUSE_MAX_BLK_LEN
|
|
int
|
|
default 256 if EFUSE_CODE_SCHEME_COMPAT_NONE
|
|
default 192 if EFUSE_CODE_SCHEME_COMPAT_3_4
|
|
default 128 if EFUSE_CODE_SCHEME_COMPAT_REPEAT
|
|
default 256 if !IDF_TARGET_ESP32
|
|
|
|
endmenu
|