drivers: flash: esp32s3: Add spiflash support
Add support for spiflash to esp32s3 Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
This commit is contained in:
parent
4b45928e86
commit
b24d9ca7a6
3 changed files with 10 additions and 0 deletions
|
@ -39,6 +39,10 @@
|
|||
#include "soc/spi_mem_reg.h"
|
||||
#include "esp32s2/rom/cache.h"
|
||||
#include "esp32s2/rom/spi_flash.h"
|
||||
#elif defined(CONFIG_SOC_ESP32S3)
|
||||
#include "soc/spi_mem_reg.h"
|
||||
#include "esp32s3/rom/cache.h"
|
||||
#include "esp32s3/rom/spi_flash.h"
|
||||
#elif defined(CONFIG_SOC_ESP32C3)
|
||||
#include "soc/spi_periph.h"
|
||||
#include "soc/spi_mem_reg.h"
|
||||
|
|
|
@ -306,6 +306,7 @@ SECTIONS
|
|||
*libsoc.a:rtc_*.*(.literal .text .literal.* .text.*)
|
||||
*libsoc.a:cpu_util.*(.literal .text .literal.* .text.*)
|
||||
*libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*)
|
||||
*libdrivers__flash.a:flash_esp32.*(.literal .text .literal.* .text.*)
|
||||
*libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*)
|
||||
*libzephyr.a:log_noos.*(.literal .text .literal.* .text.*)
|
||||
*libdrivers__timer.a:xtensa_sys_timer.*(.literal .text .literal.* .text.*)
|
||||
|
@ -379,6 +380,7 @@ SECTIONS
|
|||
*libzephyr.a:log_output.*(.rodata .rodata.*)
|
||||
*libzephyr.a:loader.*(.rodata .rodata.*)
|
||||
*libdrivers__serial.a:uart_esp32.*(.rodata .rodata.*)
|
||||
*libdrivers__flash.a:flash_esp32.*(.rodata .rodata.*)
|
||||
|
||||
KEEP(*(.jcr))
|
||||
*(.dram1 .dram1.*)
|
||||
|
|
|
@ -123,6 +123,10 @@ void IRAM_ATTR __esp_platform_start(void)
|
|||
|
||||
esp_timer_early_init();
|
||||
|
||||
#if CONFIG_SOC_FLASH_ESP32
|
||||
spi_flash_guard_set(&g_flash_guard_default_ops);
|
||||
#endif
|
||||
|
||||
esp_intr_initialize();
|
||||
|
||||
/* Start Zephyr */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue