efuse(esp32): Deprecate esp_efuse_burn_new_values() & esp_efuse_write_random_key()
These functions were used only for esp32 in secure_boot and flash encryption. Use idf efuse APIs instead of efuse regs.
This commit is contained in:
committed by
Angus Gratton
parent
eca878b37f
commit
f339b3fc96
@@ -233,6 +233,16 @@ Access to the fields is via a pointer to the description structure. API function
|
||||
* :cpp:func:`esp_efuse_batch_write_begin` - set the batch mode of writing fields.
|
||||
* :cpp:func:`esp_efuse_batch_write_commit` - writes all prepared data for batch writing mode and reset the batch writing mode.
|
||||
* :cpp:func:`esp_efuse_batch_write_cancel` - reset the batch writing mode and prepared data.
|
||||
* :cpp:func:`esp_efuse_get_key_dis_read` - Returns a read protection for the key block.
|
||||
* :cpp:func:`esp_efuse_set_key_dis_read` - Sets a read protection for the key block.
|
||||
* :cpp:func:`esp_efuse_get_key_dis_write` - Returns a write protection for the key block.
|
||||
* :cpp:func:`esp_efuse_set_key_dis_write` - Sets a write protection for the key block.
|
||||
* :cpp:func:`esp_efuse_get_key_purpose` - Returns the current purpose set for an eFuse key block.
|
||||
* :cpp:func:`esp_efuse_write_key` - Programs a block of key data to an eFuse block
|
||||
* :cpp:func:`esp_efuse_write_keys` - Programs keys to unused eFuse blocks
|
||||
* :cpp:func:`esp_efuse_find_purpose` - Finds a key block with the particular purpose set.
|
||||
* :cpp:func:`esp_efuse_get_keypurpose_dis_write` - Returns a write protection of the key purpose field for an eFuse key block (for esp32 always true).
|
||||
* :cpp:func:`esp_efuse_key_block_unused` - Returns true if the key block is unused, false otherwise.
|
||||
|
||||
For frequently used fields, special functions are made, like this :cpp:func:`esp_efuse_get_chip_ver`, :cpp:func:`esp_efuse_get_pkg_ver`.
|
||||
|
||||
@@ -251,24 +261,14 @@ For frequently used fields, special functions are made, like this :cpp:func:`esp
|
||||
|
||||
* :cpp:func:`esp_efuse_get_purpose_field` - Returns a pointer to a key purpose for an eFuse key block.
|
||||
* :cpp:func:`esp_efuse_get_key` - Returns a pointer to a key block.
|
||||
* :cpp:func:`esp_efuse_get_key_dis_read` - Returns a read protection for the key block.
|
||||
* :cpp:func:`esp_efuse_set_key_dis_read` - Sets a read protection for the key block.
|
||||
* :cpp:func:`esp_efuse_get_key_dis_write` - Returns a write protection for the key block.
|
||||
* :cpp:func:`esp_efuse_set_key_dis_write` - Sets a write protection for the key block.
|
||||
* :cpp:func:`esp_efuse_get_key_purpose` - Returns the current purpose set for an eFuse key block.
|
||||
* :cpp:func:`esp_efuse_set_key_purpose` - Sets a key purpose for an eFuse key block.
|
||||
* :cpp:func:`esp_efuse_get_keypurpose_dis_write` - Returns a write protection of the key purpose field for an eFuse key block.
|
||||
* :cpp:func:`esp_efuse_set_keypurpose_dis_write` - Sets a write protection of the key purpose field for an eFuse key block.
|
||||
* :cpp:func:`esp_efuse_find_purpose` - Finds a key block with the particular purpose set.
|
||||
* :cpp:func:`esp_efuse_find_unused_key_block` - Search for an unused key block and return the first one found.
|
||||
* :cpp:func:`esp_efuse_count_unused_key_blocks` - Returns the number of unused eFuse key blocks in the range EFUSE_BLK_KEY0..EFUSE_BLK_KEY_MAX
|
||||
* :cpp:func:`esp_efuse_key_block_unused` - Returns true if the key block is unused, false otherwise.
|
||||
* :cpp:func:`esp_efuse_get_digest_revoke` - Returns the status of the Secure Boot public key digest revocation bit.
|
||||
* :cpp:func:`esp_efuse_set_digest_revoke` - Sets the Secure Boot public key digest revocation bit.
|
||||
* :cpp:func:`esp_efuse_get_write_protect_of_digest_revoke` - Returns a write protection of the Secure Boot public key digest revocation bit.
|
||||
* :cpp:func:`esp_efuse_set_write_protect_of_digest_revoke` - Sets a write protection of the Secure Boot public key digest revocation bit.
|
||||
* :cpp:func:`esp_efuse_write_key` - Programs a block of key data to an eFuse block
|
||||
* :cpp:func:`esp_efuse_write_keys` - Programs keys to unused eFuse blocks
|
||||
|
||||
|
||||
How to add a new field
|
||||
@@ -356,6 +356,10 @@ Virtual eFuses
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
The Kconfig option :ref:`CONFIG_EFUSE_VIRTUAL` will virtualize eFuse values inside the eFuse Manager, so writes are emulated and no eFuse values are permanently changed. This can be useful for debugging app and unit tests.
|
||||
During startup, the eFuses are copied to RAM. All eFuse operations (read and write) are performed with RAM instead of the real eFuse registers.
|
||||
|
||||
In addition to the :ref:`CONFIG_EFUSE_VIRTUAL` option there is :ref:`CONFIG_EFUSE_VIRTUAL_KEEP_IN_FLASH` option that adds a feature to keep eFuses 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 option allows keeping eFuses after reboots (possible to test secure_boot and flash_encryption features with this option).
|
||||
|
||||
espefuse.py
|
||||
^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user