boards: esp32: add XIP support and enable bootloader build

Disable RTC WDT enabled (by default) by 2nd stage bootloader in ESP-IDF.
This WDT timer ensures correct hand-over and startup sequence from
bootloader to application.

Enabling bootloader caused system clock initialization to fail
when clock rate is greater then 80MHz. This also fixes
esp32 clock source code.

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
This commit is contained in:
Mahavir Jain 2020-08-03 20:23:18 +05:30 committed by Anas Nashif
commit 29f87c3a0f
11 changed files with 154 additions and 26 deletions

View file

@ -7,10 +7,10 @@
#define DT_DRV_COMPAT espressif_esp32_uart
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <rom/ets_sys.h>
#include <esp32/rom/ets_sys.h>
#include <soc/dport_reg.h>
#include <rom/gpio.h>
#include <esp32/rom/gpio.h>
#include <soc/gpio_sig_map.h>