1menu "eFuse Bit Manager"
2
3    config EFUSE_CUSTOM_TABLE
4        bool "Use custom eFuse table"
5        default n
6        help
7            Allows to generate a structure for eFuse from the CSV file.
8
9    config EFUSE_CUSTOM_TABLE_FILENAME
10        string "Custom eFuse CSV file"
11        depends on EFUSE_CUSTOM_TABLE
12        default "main/esp_efuse_custom_table.csv"
13        help
14            Name of the custom eFuse CSV filename. This path is evaluated
15            relative to the project root directory.
16
17    config EFUSE_VIRTUAL
18        bool "Simulate eFuse operations in RAM"
19        default n
20        help
21            If "n" - No virtual mode. All eFuse operations are real and use eFuse registers.
22            If "y" - The virtual mode is enabled and all eFuse operations (read and write) are redirected
23            to RAM instead of eFuse registers, all permanent changes (via eFuse) are disabled.
24            Log output will state changes that would be applied, but they will not be.
25
26            If it is "y", then SECURE_FLASH_ENCRYPTION_MODE_RELEASE cannot be used.
27            Because the EFUSE VIRT mode is for testing only.
28
29            During startup, the eFuses are copied into RAM. This mode is useful for fast tests.
30
31    config EFUSE_VIRTUAL_KEEP_IN_FLASH
32        bool "Keep eFuses in flash"
33        depends on EFUSE_VIRTUAL
34        help
35            In addition to the "Simulate eFuse operations in RAM" option, this option just adds
36            a feature to keep eFuses after reboots in flash memory. To use this mode the partition_table
37            should have the `efuse` partition. partition.csv: "efuse_em, data, efuse,   ,   0x2000,"
38
39            During startup, the eFuses are copied from flash or,
40            in case if flash is empty, from real eFuse to RAM and then update flash.
41            This mode is useful when need to keep changes after reboot
42            (testing secure_boot and flash_encryption).
43
44    config EFUSE_VIRTUAL_LOG_ALL_WRITES
45        bool "Log all virtual writes"
46        depends on EFUSE_VIRTUAL
47        help
48            If enabled, log efuse burns. This shows changes that would be made.
49
50    choice EFUSE_CODE_SCHEME_SELECTOR
51        prompt "Coding Scheme Compatibility"
52        default EFUSE_CODE_SCHEME_COMPAT_3_4
53        depends on IDF_TARGET_ESP32
54        help
55            Selector eFuse code scheme.
56
57        config EFUSE_CODE_SCHEME_COMPAT_NONE
58            bool "None Only"
59        config EFUSE_CODE_SCHEME_COMPAT_3_4
60            bool "3/4 and None"
61        config EFUSE_CODE_SCHEME_COMPAT_REPEAT
62            bool "Repeat, 3/4 and None (common table does not support it)"
63    endchoice
64
65    config EFUSE_MAX_BLK_LEN
66        int
67        default 256 if EFUSE_CODE_SCHEME_COMPAT_NONE
68        default 192 if EFUSE_CODE_SCHEME_COMPAT_3_4
69        default 128 if EFUSE_CODE_SCHEME_COMPAT_REPEAT
70        default 256 if !IDF_TARGET_ESP32
71
72endmenu
73