soc: esp32s2: drivers: flash: add support
to host SPI Flash driver. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
813a74d415
commit
dcf26d72f5
8 changed files with 87 additions and 10 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "esp_private/system_internal.h"
|
||||
#include "esp32s2/rom/cache.h"
|
||||
#include "soc/gpio_periph.h"
|
||||
#include "esp_spi_flash.h"
|
||||
#include "hal/cpu_ll.h"
|
||||
#include "esp_err.h"
|
||||
#include "sys/printk.h"
|
||||
|
@ -118,6 +119,9 @@ void __attribute__((section(".iram1"))) __start(void)
|
|||
*wdt_rtc_protect = 0;
|
||||
#endif
|
||||
|
||||
#if CONFIG_SOC_FLASH_ESP32
|
||||
spi_flash_guard_set(&g_flash_guard_default_ops);
|
||||
#endif
|
||||
esp_intr_initialize();
|
||||
/* Start Zephyr */
|
||||
z_cstart();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue