feat(esp_hw_support): brought up RNG on ESP32-P4

This commit is contained in:
Jakob Hasse
2024-01-19 09:53:56 +08:00
committed by Aditya Patwardhan
parent f5ee19f01e
commit 9c108f2da6
9 changed files with 140 additions and 41 deletions

View File

@@ -28,6 +28,9 @@
#if (defined CONFIG_IDF_TARGET_ESP32C6 || defined CONFIG_IDF_TARGET_ESP32H2)
#define RNG_CPU_WAIT_CYCLE_NUM (80 * 16) // Keep the byte sampling frequency in the ~62KHz range which has been
// tested.
#elif CONFIG_IDF_TARGET_ESP32P4
// bootloader tested with around 63 KHz bytes reading frequency
#define RNG_CPU_WAIT_CYCLE_NUM (CPU_CLK_FREQ_MHZ_BTLD * 16)
#else
#define RNG_CPU_WAIT_CYCLE_NUM (80 * 32 * 2) /* extra factor of 2 is precautionary */
#endif