File tree Expand file tree Collapse file tree 5 files changed +18
-0
lines changed
arch/risc-v/src/common/espressif Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,13 @@ config ESPRESSIF_EFUSE
395
395
---help---
396
396
Enable efuse support.
397
397
398
+ config ESPRESSIF_EFUSE_VIRTUAL
399
+ bool "Virtual EFUSE support"
400
+ depends on ESPRESSIF_EFUSE
401
+ default n
402
+ ---help---
403
+ Enable virtual efuse support to simulate eFuse operations in RAM, changes will be reverted each reboot
404
+
398
405
config ESPRESSIF_HR_TIMER
399
406
bool
400
407
default RTC_DRIVER
Original file line number Diff line number Diff line change 46
46
#include "hal/efuse_hal.h"
47
47
#include "esp_efuse_table.h"
48
48
#include "esp_efuse_chip.h"
49
+ #include "esp_efuse_utility.h"
49
50
50
51
/****************************************************************************
51
52
* Private Types
@@ -256,5 +257,9 @@ int esp_efuse_initialize(const char *devpath)
256
257
ret = - EEXIST ;
257
258
}
258
259
260
+ #ifdef CONFIG_ESPRESSIF_EFUSE_VIRTUAL
261
+ esp_efuse_utility_update_virt_blocks ();
262
+ #endif
263
+
259
264
return ret ;
260
265
}
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ SECTIONS
127
127
*libarch.a :*esp_rom_spiflash.*(.text .text.* .literal .literal.*)
128
128
*libarch.a :*esp_efuse_fields.*(.text .text.* .literal .literal.*)
129
129
*libarch.a :*esp_efuse_api_key.*(.text .text.* .literal .literal.*)
130
+ *libarch.a :*esp_efuse_utility.*(.text .text.* .literal .literal.*)
130
131
*libarch.a :*efuse_hal.*(.text .text.* .literal .literal.*)
131
132
*libarch.a :*log.*(.text .text.* .literal .literal.*)
132
133
*libarch.a :*log_noos.*(.text .text.* .literal .literal.*)
@@ -246,6 +247,7 @@ SECTIONS
246
247
*libarch.a :*esp_rom_spiflash.*(.rodata .rodata.*)
247
248
*libarch.a :*esp_efuse_fields.*(.rodata .rodata.*)
248
249
*libarch.a :*esp_efuse_api_key.*(.rodata .rodata.*)
250
+ *libarch.a :*esp_efuse_utility.*(.rodata .rodata.*)
249
251
*libarch.a :*efuse_hal.*(.rodata .rodata.*)
250
252
*libarch.a :*log.*(.rodata .rodata.*)
251
253
*libarch.a :*log_noos.*(.rodata .rodata.*)
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ SECTIONS
134
134
*libarch.a :*esp_rom_spiflash.*(.text .text.* .literal .literal.*)
135
135
*libarch.a :*esp_efuse_fields.*(.text .text.* .literal .literal.*)
136
136
*libarch.a :*esp_efuse_api_key.*(.text .text.* .literal .literal.*)
137
+ *libarch.a :*esp_efuse_utility.*(.text .text.* .literal .literal.*)
137
138
*libarch.a :*efuse_hal.*(.text .text.* .literal .literal.*)
138
139
*libarch.a :*log.*(.text .text.* .literal .literal.*)
139
140
*libarch.a :*log_noos.*(.text .text.* .literal .literal.*)
@@ -277,6 +278,7 @@ SECTIONS
277
278
*libarch.a :*esp_rom_spiflash.*(.rodata .rodata.*)
278
279
*libarch.a :*esp_efuse_fields.*(.rodata .rodata.*)
279
280
*libarch.a :*esp_efuse_api_key.*(.rodata .rodata.*)
281
+ *libarch.a :*esp_efuse_utility.*(.rodata .rodata.*)
280
282
*libarch.a :*efuse_hal.*(.rodata .rodata.*)
281
283
*libarch.a :*log.*(.rodata .rodata.*)
282
284
*libarch.a :*log_noos.*(.rodata .rodata.*)
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ SECTIONS
136
136
*libarch.a :*esp_rom_spiflash.*(.text .text.* .literal .literal.*)
137
137
*libarch.a :*esp_efuse_fields.*(.text .text.* .literal .literal.*)
138
138
*libarch.a :*esp_efuse_api_key.*(.text .text.* .literal .literal.*)
139
+ *libarch.a :*esp_efuse_utility.*(.text .text.* .literal .literal.*)
139
140
*libarch.a :*efuse_hal.*(.text .text.* .literal .literal.*)
140
141
*libarch.a :*log.*(.text .text.* .literal .literal.*)
141
142
*libarch.a :*log_noos.*(.text .text.* .literal .literal.*)
@@ -274,6 +275,7 @@ SECTIONS
274
275
*libarch.a :*esp_rom_spiflash.*(.rodata .rodata.*)
275
276
*libarch.a :*esp_efuse_fields.*(.rodata .rodata.*)
276
277
*libarch.a :*esp_efuse_api_key.*(.rodata .rodata.*)
278
+ *libarch.a :*esp_efuse_utility.*(.rodata .rodata.*)
277
279
*libarch.a :*efuse_hal.*(.rodata .rodata.*)
278
280
*libarch.a :*log.*(.rodata .rodata.*)
279
281
*libarch.a :*log_noos.*(.rodata .rodata.*)
You can’t perform that action at this time.
0 commit comments