Skip to content

Commit afbf6c8

Browse files
Merge branch 'main' into FOTA_resumption_fix
2 parents 3c91740 + 886cc3d commit afbf6c8

File tree

15 files changed

+84
-9
lines changed

15 files changed

+84
-9
lines changed

arch/arm/core/cortex_m/fpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
void z_arm_save_fp_context(struct fpu_ctx_full *buffer)
1818
{
19-
#if defined(CONFIG_FPU_SHARING)
19+
#if defined(CONFIG_FPU)
2020
__ASSERT_NO_MSG(buffer != NULL);
2121

2222
uint32_t CONTROL = __get_CONTROL();
@@ -44,7 +44,7 @@ void z_arm_save_fp_context(struct fpu_ctx_full *buffer)
4444

4545
void z_arm_restore_fp_context(const struct fpu_ctx_full *buffer)
4646
{
47-
#if defined(CONFIG_FPU_SHARING)
47+
#if defined(CONFIG_FPU)
4848
if (buffer->ctx_saved) {
4949
/* Set FPCA first so it is set even if an interrupt happens
5050
* during restoration.

cmake/mcuboot.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ function(zephyr_mcuboot_tasks)
124124
set(imgtool_args --key "${keyfile}" ${imgtool_args})
125125
endif()
126126

127+
if(CONFIG_MCUBOOT_IMGTOOL_UUID_VID)
128+
set(imgtool_args ${imgtool_args} --vid "${CONFIG_MCUBOOT_IMGTOOL_UUID_VID_NAME}")
129+
endif()
130+
131+
if(CONFIG_MCUBOOT_IMGTOOL_UUID_CID)
132+
set(imgtool_args ${imgtool_args} --cid "${CONFIG_MCUBOOT_IMGTOOL_UUID_CID_NAME}")
133+
endif()
134+
127135
if(CONFIG_MCUBOOT_IMGTOOL_OVERWRITE_ONLY)
128136
# Use overwrite-only instead of swap upgrades.
129137
set(imgtool_args --overwrite-only --align 1 ${imgtool_args})

drivers/adc/adc_nrfx_saadc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ static const uint32_t saadc_psels[NRF_SAADC_AIN7 + 1] = {
7676
[NRF_SAADC_AIN6] = NRF_PIN_PORT_TO_PIN_NUMBER(11U, 1),
7777
[NRF_SAADC_AIN7] = NRF_PIN_PORT_TO_PIN_NUMBER(12U, 1),
7878
};
79+
#elif defined(NRF54LS05B_ENGA_XXAA)
80+
static const uint32_t saadc_psels[NRF_SAADC_AIN3 + 1] = {
81+
[NRF_SAADC_AIN0] = NRF_PIN_PORT_TO_PIN_NUMBER(4U, 1),
82+
[NRF_SAADC_AIN1] = NRF_PIN_PORT_TO_PIN_NUMBER(5U, 1),
83+
[NRF_SAADC_AIN2] = NRF_PIN_PORT_TO_PIN_NUMBER(6U, 1),
84+
[NRF_SAADC_AIN3] = NRF_PIN_PORT_TO_PIN_NUMBER(7U, 1),
85+
};
7986
#endif
8087

8188
#else

drivers/i2s/i2s_nrf_tdm.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ LOG_MODULE_REGISTER(tdm_nrf, CONFIG_I2S_LOG_LEVEL);
3030
*/
3131
#define NRFX_TDM_STATUS_TRANSFER_STOPPED BIT(1)
3232

33+
/* Maximum clock divider value. Corresponds to CKDIV2. */
34+
#define NRFX_TDM_MAX_SCK_DIV_VALUE TDM_CONFIG_SCK_DIV_SCKDIV_Max
35+
#define NRFX_TDM_MAX_MCK_DIV_VALUE TDM_CONFIG_MCK_DIV_DIV_Max
36+
3337
#define NRFX_TDM_NUM_OF_CHANNELS (TDM_CONFIG_CHANNEL_NUM_NUM_Max + 1)
3438

3539
#define NRFX_TDM_TX_CHANNELS_MASK \
@@ -814,11 +818,11 @@ static int trigger_start(const struct device *dev)
814818

815819
nrf_tdm_sck_configure(drv_cfg->p_reg,
816820
drv_cfg->sck_src == ACLK ? NRF_TDM_SRC_ACLK : NRF_TDM_SRC_PCLK32M,
817-
false);
821+
nrfx_cfg->sck_setup > NRFX_TDM_MAX_SCK_DIV_VALUE);
818822

819823
nrf_tdm_mck_configure(drv_cfg->p_reg,
820824
drv_cfg->mck_src == ACLK ? NRF_TDM_SRC_ACLK : NRF_TDM_SRC_PCLK32M,
821-
false);
825+
nrfx_cfg->mck_setup > NRFX_TDM_MAX_MCK_DIV_VALUE);
822826
/* If it is required to use certain HF clock, request it to be running
823827
* first. If not, start the transfer directly.
824828
*/

drivers/wifi/nrf_wifi/src/wpa_supp_if.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,13 +1578,15 @@ enum nrf_wifi_status nrf_wifi_parse_sband(
15781578
band->ht_cap.wpa_supp_ampdu_factor = event->ht_cap.nrf_wifi_ampdu_factor;
15791579
band->ht_cap.wpa_supp_ampdu_density = event->ht_cap.nrf_wifi_ampdu_density;
15801580

1581+
#ifndef CONFIG_WIFI_NM_WPA_SUPPLICANT_AP
15811582
band->vht_cap.wpa_supp_vht_supported = event->vht_cap.nrf_wifi_vht_supported;
15821583
band->vht_cap.wpa_supp_cap = event->vht_cap.nrf_wifi_cap;
15831584

15841585
band->vht_cap.vht_mcs.rx_mcs_map = event->vht_cap.vht_mcs.rx_mcs_map;
15851586
band->vht_cap.vht_mcs.rx_highest = event->vht_cap.vht_mcs.rx_highest;
15861587
band->vht_cap.vht_mcs.tx_mcs_map = event->vht_cap.vht_mcs.tx_mcs_map;
15871588
band->vht_cap.vht_mcs.tx_highest = event->vht_cap.vht_mcs.tx_highest;
1589+
#endif /* !CONFIG_WIFI_NM_WPA_SUPPLICANT_AP */
15881590

15891591
band->band = event->band;
15901592

modules/Kconfig.mcuboot

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,40 @@ config MCUBOOT_IMGTOOL_OVERWRITE_ONLY
120120
If enabled, --overwrite-only option passed to imgtool to avoid
121121
adding the swap status area size when calculating overflow.
122122

123+
config MCUBOOT_IMGTOOL_UUID_VID
124+
bool "Append vendor unique identifier TLV"
125+
help
126+
If enabled, --vid option passed to imgtool with the value set by
127+
the MCUBOOT_IMGTOOL_UUID_VID_NAME option.
128+
129+
config MCUBOOT_IMGTOOL_UUID_VID_NAME
130+
string "Vendor UUID"
131+
depends on MCUBOOT_IMGTOOL_UUID_VID
132+
help
133+
The vendor unique identifier.
134+
The following formats are supported:
135+
- Domain name (i.e. amce.corp)
136+
- Raw UUID (i.e. 12345678-1234-5678-1234-567812345678)
137+
- Raw HEX UUID (i.e. 12345678123456781234567812345678)
138+
139+
config MCUBOOT_IMGTOOL_UUID_CID
140+
bool "Append image class unique identifier TLV"
141+
help
142+
If enabled, --cid option passed to imgtool with the value set by
143+
the MCUBOOT_IMGTOOL_UUID_CID_NAME option.
144+
145+
config MCUBOOT_IMGTOOL_UUID_CID_NAME
146+
string "Image class UUID"
147+
depends on MCUBOOT_IMGTOOL_UUID_CID
148+
help
149+
The image class unique identifier.
150+
The following formats are supported:
151+
- Image class name (i.e. nRF5340_door_lock_btperipheral).
152+
This format requires MCUBOOT_IMGTOOL_UUID_VID_NAME to be defined
153+
as the VID UUID is used as the namespace for image class UUID.
154+
- Raw UUID (i.e. 12345678-1234-5678-1234-567812345678)
155+
- Raw HEX UUID (i.e. 12345678123456781234567812345678)
156+
123157
config MCUBOOT_EXTRA_IMGTOOL_ARGS
124158
string "Extra arguments to pass to imgtool when signing"
125159
default ""

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ if (CONFIG_BUILD_WITH_TFM)
2626
endif()
2727
endif()
2828

29+
# Treat any warning as error
30+
if (CONFIG_COMPILER_WARNINGS_AS_ERRORS)
31+
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_WARNINGS_ARE_ERRORS:BOOL=ON)
32+
endif()
33+
2934
if (CONFIG_TFM_SFN)
3035
list(APPEND TFM_CMAKE_ARGS -DCONFIG_TFM_SPM_BACKEND="SFN")
3136
else() # CONFIG_TFM_IPC

modules/trusted-firmware-m/interface/interface.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,17 @@ int32_t tfm_ns_interface_dispatch(veneer_fn fn,
5353
#endif
5454
}
5555

56+
#if defined(CONFIG_FPU_SHARING)
5657
struct fpu_ctx_full context_buffer;
5758

5859
z_arm_save_fp_context(&context_buffer);
60+
#endif
5961

6062
result = fn(arg0, arg1, arg2, arg3);
6163

64+
#if defined(CONFIG_FPU_SHARING)
6265
z_arm_restore_fp_context(&context_buffer);
66+
#endif
6367

6468
if (!isr_mode) {
6569
#if !defined(CONFIG_ARM_NONSECURE_PREEMPTIBLE_SECURE_CALLS)

samples/tfm_integration/tfm_psa_test/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ set_property(TARGET zephyr_property_target
6363
-DTEST_PSA_API=${TEST_PSA_API}
6464
)
6565

66+
# Workaround: The TF-M tests require the large TF-M profile because it supports
67+
# the full list of crypto algorithms needed, not because of the isolation level.
68+
# For the TF-M tests the isolation level is irrelevant so we set it to 2 here so
69+
# that we don't exclude the platforms which don't support the isolation level 3.
70+
# This is a short lived workaround because the TF-M cmake logic will do this workaround
71+
# automatically in the future.
72+
set_property(TARGET zephyr_property_target
73+
APPEND PROPERTY TFM_CMAKE_OPTIONS
74+
-DTFM_ISOLATION_LEVEL=2
75+
)
76+
6677
include(ExternalProject)
6778

6879
ExternalProject_Add(tfm_psa_arch_test_app

samples/tfm_integration/tfm_psa_test/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77
CONFIG_BUILD_WITH_TFM=y
8-
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
8+
CONFIG_TFM_PROFILE_TYPE_LARGE=y
99
CONFIG_TFM_USE_NS_APP=y
1010
CONFIG_QEMU_ICOUNT_SHIFT=1
1111

0 commit comments

Comments
 (0)