Skip to content

Commit 2d0f48e

Browse files
committed
Merge branch 'feat/p4_eco5_soc_changes_v5.4' into 'release/v5.4'
feat(p4): p4 rev3 soc support (v5.4) See merge request espressif/esp-idf!42065
2 parents b2eefe5 + 3b21b60 commit 2d0f48e

File tree

440 files changed

+388300
-37
lines changed

Some content is hidden

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

440 files changed

+388300
-37
lines changed

components/hal/cache_hal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/

components/hal/esp32p4/include/hal/uart_ll.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#pragma once
1212

13+
#include <stdint.h>
1314
#include "esp_attr.h"
1415
#include "hal/misc.h"
1516
#include "hal/assert.h"

components/hal/esp32p4/include/hal/usb_serial_jtag_ll.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static inline int usb_serial_jtag_ll_read_rxfifo(uint8_t *buf, uint32_t rd_len)
120120
int i;
121121
for (i = 0; i < (int)rd_len; i++) {
122122
if (!USB_SERIAL_JTAG.ep1_conf.serial_out_ep_data_avail) break;
123-
buf[i] = USB_SERIAL_JTAG.ep1.rdwr_byte;
123+
buf[i] = HAL_FORCE_READ_U32_REG_FIELD(USB_SERIAL_JTAG.ep1, rdwr_byte);
124124
}
125125
return i;
126126
}
@@ -139,7 +139,7 @@ static inline int usb_serial_jtag_ll_write_txfifo(const uint8_t *buf, uint32_t w
139139
int i;
140140
for (i = 0; i < (int)wr_len; i++) {
141141
if (!USB_SERIAL_JTAG.ep1_conf.serial_in_ep_data_free) break;
142-
USB_SERIAL_JTAG.ep1.rdwr_byte = buf[i];
142+
HAL_FORCE_MODIFY_U32_REG_FIELD(USB_SERIAL_JTAG.ep1, rdwr_byte, buf[i]);
143143
}
144144
return i;
145145
}

components/soc/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/include")
1818
list(APPEND includes "${target_folder}/include")
1919
endif()
2020

21-
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")
22-
# register headers that generated by script from CSV
23-
list(APPEND includes "${target_folder}/register")
21+
# register headers that generated by script from CSV
22+
if(CONFIG_IDF_TARGET_ESP32P4)
23+
list(APPEND includes "${target_folder}/register/hw_ver1")
24+
else()
25+
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${target_folder}/register")
26+
list(APPEND includes "${target_folder}/register")
27+
endif()
2428
endif()
2529

30+
2631
if(target STREQUAL "esp32")
2732
list(APPEND srcs "${target_folder}/dport_access.c")
2833
endif()

components/soc/esp32p4/include/soc/soc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
#define SOC_CPU_SUBSYSTEM_HIGH 0x30000000
225225

226226
// Start (highest address) of ROM boot stack, only relevant during early boot
227+
#define SOC_ROM_STACK_START_REV2 0x4ffbcfc0
227228
#define SOC_ROM_STACK_START 0x4ff3cfc0
228229
#define SOC_ROM_STACK_SIZE 0x2000
229230

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)