Skip to content

Commit 3eec62f

Browse files
committed
fix(rng): avoid clearing PMU_PERIF_I2C_RSTB in random disable API for C6
This configuration bit is required for ADC operation as well and hence should not be cleared in the RNG API sequence. Ideally, the ADC driver should take care of initializing this bit but still the RNG layer change is required because of interleaved API usage scenario described in following linked issue. Closes espressif#14124 Closes espressif#14280
1 parent 6568f8c commit 3eec62f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

components/bootloader_support/src/bootloader_random_esp32c6.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ void bootloader_random_disable(void)
8888
REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SARADC1_ENCAL_REF_ADDR, 0);
8989
REGI2C_WRITE_MASK(I2C_SAR_ADC, ADC_SARADC2_ENCAL_REF_ADDR, 0);
9090

91-
// Revert PMU_RF_PWC_REG to it's initial value
92-
CLEAR_PERI_REG_MASK(PMU_RF_PWC_REG, PMU_PERIF_I2C_RSTB);
93-
9491
// disable ADC_CTRL_CLK (SAR ADC function clock)
9592
REG_WRITE(PCR_SARADC_CLKM_CONF_REG, 0x00404000);
9693

0 commit comments

Comments
 (0)