Kconfig 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. During startup, the eFuses are copied into RAM. This mode is useful for fast tests.
  23. config EFUSE_VIRTUAL_KEEP_IN_FLASH
  24. bool "Keep eFuses in flash"
  25. depends on EFUSE_VIRTUAL
  26. help
  27. In addition to the "Simulate eFuse operations in RAM" option, this option just adds
  28. a feature to keep eFuses after reboots in flash memory. To use this mode the partition_table
  29. should have the `efuse` partition. partition.csv: "efuse_em, data, efuse, , 0x2000,"
  30. During startup, the eFuses are copied from flash or,
  31. in case if flash is empty, from real eFuse to RAM and then update flash.
  32. This mode is useful when need to keep changes after reboot
  33. (testing secure_boot and flash_encryption).
  34. choice EFUSE_CODE_SCHEME_SELECTOR
  35. prompt "Coding Scheme Compatibility"
  36. default EFUSE_CODE_SCHEME_COMPAT_3_4
  37. depends on IDF_TARGET_ESP32
  38. help
  39. Selector eFuse code scheme.
  40. config EFUSE_CODE_SCHEME_COMPAT_NONE
  41. bool "None Only"
  42. config EFUSE_CODE_SCHEME_COMPAT_3_4
  43. bool "3/4 and None"
  44. config EFUSE_CODE_SCHEME_COMPAT_REPEAT
  45. bool "Repeat, 3/4 and None (common table does not support it)"
  46. endchoice
  47. config EFUSE_MAX_BLK_LEN
  48. int
  49. default 256 if EFUSE_CODE_SCHEME_COMPAT_NONE
  50. default 192 if EFUSE_CODE_SCHEME_COMPAT_3_4
  51. default 128 if EFUSE_CODE_SCHEME_COMPAT_REPEAT
  52. default 256 if !IDF_TARGET_ESP32
  53. endmenu