Skip to content

Commit 85b0a99

Browse files
sylvioalvesdanieldegrasse
authored andcommitted
soc: espressif: liker: move PHY and RTC calls
Some of ESP32 Radio calls present in blobs needs to be executed from IRAM or RAM instead of flash to avoid cache disabled issues. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 1984236 commit 85b0a99

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

soc/espressif/esp32/default.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ SECTIONS
368368
*libc.a:*(.literal .text .literal.* .text.*)
369369
*libphy.a:( .phyiram .phyiram.*)
370370
*libgcov.a:(.literal .text .literal.* .text.*)
371+
*librtc.a:(.literal .text .literal.* .text.*)
371372

372373
/* [mapping:esp_psram] */
373374
*libzephyr.a:mmu_psram_flash.*(.literal .literal.* .text .text.*)
@@ -699,6 +700,8 @@ SECTIONS
699700
*libzephyr.a:esp_rom_wdt.*(.rodata .rodata.*)
700701
*libzephyr.a:esp_rom_efuse.*(.rodata .rodata.*)
701702

703+
*libphy.a:(.rodata .rodata.* .srodata .srodata.*)
704+
702705
KEEP(*(.jcr))
703706
*(.dram1 .dram1.*)
704707

soc/espressif/esp32c2/default.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ SECTIONS
240240
*libgcov.a:(.literal .text .literal.* .text.*)
241241
*libphy.a:( .phyiram .phyiram.*)
242242
*libc.a:*(.literal .text .literal.* .text.*)
243+
*librtc.a:(.literal .text .literal.* .text.*)
243244

244245
/* [mapping:hal] */
245246
*libzephyr.a:efuse_hal.*(.literal .text .literal.* .text.*)
@@ -532,6 +533,8 @@ SECTIONS
532533
*libzephyr.a:esp_err.*(.rodata .rodata.*)
533534
*(.rodata.esp_system_abort)
534535

536+
*libphy.a:(.rodata .rodata.* .srodata .srodata.*)
537+
535538
. = ALIGN(4);
536539
#include <snippets-rwdata.ld>
537540
. = ALIGN(4);

soc/espressif/esp32c3/default.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ SECTIONS
334334
*libgcov.a:(.literal .text .literal.* .text.*)
335335
*libphy.a:( .phyiram .phyiram.*)
336336
*libc.a:*(.literal .text .literal.* .text.*)
337+
*librtc.a:(.literal .text .literal.* .text.*)
337338

338339
/* [mapping:hal] */
339340
*libzephyr.a:efuse_hal.*(.literal .text .literal.* .text.*)
@@ -625,6 +626,8 @@ SECTIONS
625626
*libzephyr.a:esp_err.*(.rodata .rodata.*)
626627
*(.rodata.esp_system_abort)
627628

629+
*libphy.a:(.rodata .rodata.* .srodata .srodata.*)
630+
628631
. = ALIGN(4);
629632
#include <snippets-rwdata.ld>
630633
. = ALIGN(4);

soc/espressif/esp32c6/default.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ SECTIONS
347347
*libgcov.a:(.literal .text .literal.* .text.*)
348348
*libphy.a:( .phyiram .phyiram.*)
349349
*libc.a:*(.literal .text .literal.* .text.*)
350+
*librtc.a:(.literal .text .literal.* .text.*)
350351

351352
/* [mapping:hal] */
352353
*libzephyr.a:efuse_hal.*(.literal .text .literal.* .text.*)
@@ -656,6 +657,8 @@ SECTIONS
656657
*libzephyr.a:esp_rom_systimer.*(.rodata .rodata.* .srodata .srodata.*)
657658
*libzephyr.a:esp_rom_hp_regi2c_esp32c6.*(.rodata .rodata.* .srodata .srodata.*)
658659

660+
*libphy.a:(.rodata .rodata.* .srodata .srodata.*)
661+
659662
. = ALIGN(4);
660663
#include <snippets-rwdata.ld>
661664
. = ALIGN(4);

soc/espressif/esp32s2/default.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ SECTIONS
371371
*liblib__libc__picolibc.a:string.*(.literal .text .literal.* .text.*)
372372
*libphy.a:(.phyiram .phyiram.*)
373373
*libgcov.a:(.literal .text .literal.* .text.*)
374+
*librtc.a:(.literal .text .literal.* .text.*)
374375

375376
/* [mapping:esp_psram] */
376377
*libzephyr.a:mmu_psram_flash.*(.literal .literal.* .text .text.*)
@@ -695,6 +696,8 @@ SECTIONS
695696
*libzephyr.a:esp_err.*(.rodata .rodata.*)
696697
*(.rodata.esp_system_abort)
697698

699+
*libphy.a:(.rodata .rodata.*)
700+
698701
#if defined(CONFIG_ESP32_WIFI_IRAM_OPT)
699702
/* [mapping:esp_wifi] */
700703
*(.rodata.wifi_clock_enable_wrapper)

soc/espressif/esp32s3/default.ld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ SECTIONS
386386
*liblib__libc__picolibc.a:string.*(.literal .text .literal.* .text.*)
387387
*libphy.a:(.phyiram .phyiram.*)
388388
*libgcov.a:(.literal .text .literal.* .text.*)
389+
*librtc.a:(.literal .text .literal.* .text.*)
389390

390391
/* APPCPU_ENABLED */
391392
*libzephyr.a:esp32s3-mp.*(.literal .text .literal.* .text.*)
@@ -716,6 +717,8 @@ SECTIONS
716717
*libzephyr.a:esp_err.*(.rodata .rodata.*)
717718
*(.rodata.esp_system_abort)
718719

720+
*libphy.a:(.rodata .rodata.*)
721+
719722
#if defined(CONFIG_ESP32_WIFI_IRAM_OPT)
720723
/* [mapping:esp_wifi] */
721724
*(.rodata.wifi_clock_enable_wrapper)

0 commit comments

Comments
 (0)