Kconfig 2.6 KB

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