soc: esp32: update clock configuration calls
Removed duplicated calls in clock subsystems. Move proper includes to soc specific. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
a627666e06
commit
69311ccc3d
6 changed files with 6 additions and 22 deletions
|
@ -7,21 +7,15 @@
|
|||
#define DT_DRV_COMPAT espressif_esp32_trng
|
||||
|
||||
#include <string.h>
|
||||
#include <hal/cpu_hal.h>
|
||||
#include <esp_clk.h>
|
||||
#include <soc/rtc.h>
|
||||
#include <soc/wdev_reg.h>
|
||||
#include <soc/rtc_cntl_reg.h>
|
||||
#include <soc/apb_ctrl_reg.h>
|
||||
#include <esp_system.h>
|
||||
#include <soc.h>
|
||||
#include <hal/cpu_hal.h>
|
||||
#include <drivers/entropy.h>
|
||||
|
||||
#ifdef CONFIG_SOC_ESP32
|
||||
#include <xtensa/core-macros.h>
|
||||
#include <soc/dport_reg.h>
|
||||
#endif
|
||||
|
||||
static inline uint32_t entropy_esp32_get_u32(void)
|
||||
{
|
||||
/* The PRNG which implements WDEV_RANDOM register gets 2 bits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue