clock: esp32: unify clock control for all espressif socs

This joins all clock control handling to same source
by using hal clock functions. It also brings ESP32C3
clock support.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
Sylvio Alves 2021-10-20 20:11:53 -03:00 committed by Christopher Friedt
commit 27e44acda1
17 changed files with 116 additions and 479 deletions

View file

@ -18,7 +18,8 @@
#define ESP32_CLK_CPU_160M 160U
/* Supported XTAL Frequencies */
#define ESP32_CLK_XTAL_40M 0U
#define ESP32_CLK_XTAL_32M 0U
#define ESP32_CLK_XTAL_40M 1U
/* Modules IDs
* These IDs are actually offsets in CLK and RST Control registers.