Skip to content

Commit 6a2a00a

Browse files
authored
Merge branch 'espressif:release/v5.3' into release/v5.3
2 parents 71a0700 + 22858c3 commit 6a2a00a

File tree

221 files changed

+10885
-2442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+10885
-2442
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[codespell]
22
skip = build,*.yuv,components/fatfs/src/*,alice.txt,*.rgb,components/wpa_supplicant/*,components/esp_wifi/*
3-
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,ot
3+
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,ot,wel
44
write-changes = true

.gitlab/ci/default-build-test-rules.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# This file should ONLY be used during bringup. Should be reset to empty after the bringup process
99
extra_default_build_targets:
1010
- esp32p4
11-
- esp32c5
1211

1312
bypass_check_test_targets:
1413
- esp32c5

components/bootloader/Kconfig.projbuild

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,15 @@ menu "Bootloader config"
127127
help
128128
This is a helper config for 32bits address flash. Invisible for users.
129129

130+
config BOOTLOADER_FLASH_NEEDS_32BIT_ADDR_QUAD_FLASH
131+
bool
132+
default y if BOOTLOADER_FLASH_NEEDS_32BIT_FEAT && SOC_SPI_MEM_SUPPORT_CACHE_32BIT_ADDR_MAP
133+
help
134+
This is a helper config for 32bits address quad flash. Invisible for users.
135+
130136
config BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH
131137
bool "Enable cache access to 32-bit-address (over 16MB) range of SPI Flash (READ DOCS FIRST)"
132-
depends on BOOTLOADER_FLASH_NEEDS_32BIT_FEAT && IDF_TARGET_ESP32S3 && IDF_EXPERIMENTAL_FEATURES
138+
depends on BOOTLOADER_FLASH_NEEDS_32BIT_ADDR_QUAD_FLASH && IDF_EXPERIMENTAL_FEATURES
133139
default n
134140
help
135141
Enabling this option allows the CPU to access 32-bit-address flash beyond 16M range.

components/bootloader_support/bootloader_flash/src/bootloader_flash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ esp_err_t bootloader_flash_erase_range(uint32_t start_addr, uint32_t size)
136136

137137
#if CONFIG_IDF_TARGET_ESP32S3
138138
#include "esp32s3/rom/opi_flash.h"
139+
#elif CONFIG_IDF_TARGET_ESP32P4
140+
#include "esp32p4/rom/opi_flash.h"
139141
#endif
140142
static const char *TAG = "bootloader_flash";
141143

components/bootloader_support/bootloader_flash/src/bootloader_flash_config_esp32p4.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ static void update_flash_config(const esp_image_header_t *bootloader_hdr)
9999
case ESP_IMAGE_FLASH_SIZE_16MB:
100100
size = 16;
101101
break;
102+
case ESP_IMAGE_FLASH_SIZE_32MB:
103+
size = 32;
104+
break;
105+
case ESP_IMAGE_FLASH_SIZE_64MB:
106+
size = 64;
107+
break;
108+
case ESP_IMAGE_FLASH_SIZE_128MB:
109+
size = 128;
110+
break;
102111
default:
103112
size = 2;
104113
}
@@ -175,6 +184,15 @@ static void print_flash_info(const esp_image_header_t *bootloader_hdr)
175184
case ESP_IMAGE_FLASH_SIZE_16MB:
176185
str = "16MB";
177186
break;
187+
case ESP_IMAGE_FLASH_SIZE_32MB:
188+
str = "32MB";
189+
break;
190+
case ESP_IMAGE_FLASH_SIZE_64MB:
191+
str = "64MB";
192+
break;
193+
case ESP_IMAGE_FLASH_SIZE_128MB:
194+
str = "128MB";
195+
break;
178196
default:
179197
str = "2MB";
180198
break;
@@ -203,6 +221,9 @@ esp_err_t bootloader_init_spi_flash(void)
203221
#if CONFIG_ESPTOOLPY_FLASHMODE_QIO || CONFIG_ESPTOOLPY_FLASHMODE_QOUT
204222
bootloader_enable_qio_mode();
205223
#endif
224+
#if CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH
225+
bootloader_flash_32bits_address_map_enable(bootloader_flash_get_spi_mode());
226+
#endif
206227

207228
print_flash_info(&bootloader_image_hdr);
208229

@@ -271,6 +292,10 @@ void bootloader_flash_hardware_init(void)
271292
bootloader_spi_flash_resume();
272293
bootloader_flash_unlock();
273294

295+
#if CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH
296+
bootloader_flash_32bits_address_map_enable(bootloader_flash_get_spi_mode());
297+
#endif
298+
274299
cache_hal_disable(CACHE_LL_LEVEL_EXT_MEM, CACHE_TYPE_ALL);
275300
update_flash_config(&hdr);
276301
cache_hal_enable(CACHE_LL_LEVEL_EXT_MEM, CACHE_TYPE_ALL);

components/bootloader_support/src/esp32p4/bootloader_esp32p4.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@
4141
#include "hal/cache_hal.h"
4242
#include "hal/clk_tree_ll.h"
4343
#include "hal/lpwdt_ll.h"
44+
#include "hal/spimem_flash_ll.h"
4445
#include "soc/lp_wdt_reg.h"
4546
#include "hal/efuse_hal.h"
4647
#include "soc/regi2c_syspll.h"
4748
#include "soc/regi2c_cpll.h"
4849
#include "soc/regi2c_bias.h"
50+
#include "esp_private/periph_ctrl.h"
4951

5052
static const char *TAG = "boot.esp32p4";
5153

@@ -90,6 +92,7 @@ static void bootloader_super_wdt_auto_feed(void)
9092

9193
static inline void bootloader_hardware_init(void)
9294
{
95+
int __DECLARE_RCC_ATOMIC_ENV __attribute__ ((unused));
9396
// regi2c is enabled by default on ESP32P4, do nothing
9497
unsigned chip_version = efuse_hal_chip_revision();
9598
if (!ESP_CHIP_REV_ABOVE(chip_version, 1)) {
@@ -101,6 +104,12 @@ static inline void bootloader_hardware_init(void)
101104
}
102105
REGI2C_WRITE_MASK(I2C_BIAS, I2C_BIAS_DREG_1P1, 10);
103106
REGI2C_WRITE_MASK(I2C_BIAS, I2C_BIAS_DREG_1P1_PVT, 10);
107+
108+
// IDF-10019 TODO: This is temporarily for ESP32P4-ECO0, please remove it when eco0 is not widly used.
109+
if (likely(ESP_CHIP_REV_ABOVE(chip_version, 1))) {
110+
spimem_flash_ll_select_clk_source(0, FLASH_CLK_SRC_SPLL);
111+
spimem_ctrlr_ll_set_core_clock(0, 6);
112+
}
104113
}
105114

106115
static inline void bootloader_ana_reset_config(void)

components/bootloader_support/test_apps/.build-test-rules.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ components/bootloader_support/test_apps/rtc_custom_section:
55
- if: SOC_RTC_MEM_SUPPORTED == 1
66
reason: this feature is supported on chips that have RTC memory
77
disable:
8-
- if: IDF_TARGET == "esp32c61"
8+
- if: IDF_TARGET in ["esp32c5", "esp32c61"]
99
temporary: true
10-
reason: IDF-9260
10+
reason: target(s) is not supported yet # IDF-9260
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |

components/bt/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,11 @@ if(CONFIG_BT_ENABLED)
872872
"${CMAKE_CURRENT_LIST_DIR}/controller/lib_esp32c3_family/esp32s3")
873873
target_link_libraries(${COMPONENT_LIB} PUBLIC btdm_app)
874874
elseif(CONFIG_BT_CONTROLLER_ENABLED)
875-
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a")
875+
if(CONFIG_IDF_TARGET_ESP32C6)
876+
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/esp32c6/libble_app.a")
877+
else()
878+
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a")
879+
endif()
876880
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)
877881
endif()
878882

0 commit comments

Comments
 (0)