Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <flash_layout.h>
#include <string.h>

#include <nrf.h>
#include <nrfx.h>

#ifdef __NRF_TFM__
#include <zephyr/autoconf.h>
Expand Down
2 changes: 1 addition & 1 deletion platform/ext/target/nordic_nrf/common/core/common/cmsis.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
#ifndef __NORDIC_NRF_CMSIS_H__
#define __NORDIC_NRF_CMSIS_H__

#include <nrf.h>
#include <nrfx.h>

#endif /*__NORDIC_NRF_CMSIS_H__*/
1 change: 0 additions & 1 deletion platform/ext/target/nordic_nrf/common/core/hw_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <stdint.h>
#include <string.h>
#include <nrf.h>
#include "array.h"

#include <nrfx.h>
Expand Down
8 changes: 3 additions & 5 deletions platform/ext/target/nordic_nrf/common/core/nrfx_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@

#if RTE_FLASH0

#include <nrf.h>

#if defined(NRF_NVMC_S)
#if defined(NRF5340_XXAA_APPLICATION) || defined(NRF91_SERIES)
#define NRFX_NVMC_ENABLED 1
#elif defined(NRF_RRAMC_S)
#elif defined(NRF54L_SERIES)
#define NRFX_RRAMC_ENABLED 1
#elif defined(NRF_MRAMC_S)
#elif defined(NRF71_SERIES)
#define NRFX_MRAMC_ENABLED 1
#else
#error "Unrecognized platform"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

#include "nrf.h"
#include <nrfx.h>
#include <stdint.h>
#include <tfm_platform_api.h>
#include <tfm_ioctl_core_api.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


#include "nrf.h"
#include <nrfx.h>
#include <stdint.h>
#include "tfm_platform_api.h"
#include "tfm_ioctl_core_api.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>

#define FICR_BASE NRF_FICR_S_BASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ target_include_directories(platform_s
../nrf54l
)

if(NOT NRF_DIR)
target_include_directories(platform_s
PUBLIC
memory_service_ranges
)
endif()

target_sources(platform_s
PRIVATE
${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: BSD-3-Clause
*/

#ifndef TFM_PLATFORM_USER_MEMORY_RANGES_H__
#define TFM_PLATFORM_USER_MEMORY_RANGES_H__

#include <tfm_ioctl_core_api.h>

#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
{ .start = 0xFFFFFFFF, .size = 0x0},
};

static const struct tfm_write32_service_address tfm_write32_service_addresses[] = {
/* This is a dummy value because this table cannot be empty */
{.addr = 0xFFFFFFFF, .mask = 0x0, .allowed_values = NULL, .allowed_values_array_size = 0},
};

#endif /* TFM_PLATFORM_USER_MEMORY_RANGES_H__ */
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ target_include_directories(platform_s
../nrf54l
)

if(NOT NRF_DIR)
target_include_directories(platform_s
PUBLIC
memory_service_ranges
)
endif()

target_sources(platform_s
PRIVATE
${HAL_NORDIC_PATH}/nrfx/mdk/system_nrf54l.c
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: BSD-3-Clause
*/

#ifndef TFM_PLATFORM_USER_MEMORY_RANGES_H__
#define TFM_PLATFORM_USER_MEMORY_RANGES_H__

#include <tfm_ioctl_core_api.h>

#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
{ .start = 0xFFFFFFFF, .size = 0x0},
};

static const struct tfm_write32_service_address tfm_write32_service_addresses[] = {
/* This is a dummy value because this table cannot be empty */
{.addr = 0xFFFFFFFF, .mask = 0x0, .allowed_values = NULL, .allowed_values_array_size = 0},
};

#endif /* TFM_PLATFORM_USER_MEMORY_RANGES_H__ */
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>

#define FICR_BASE NRF_FICR_S_BASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>


static const struct tfm_read_service_range ranges[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>

#define FICR_BASE NRF_FICR_S_BASE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <tfm_ioctl_core_api.h>

#include "nrf.h"
#include <nrfx.h>

#define FICR_BASE NRF_FICR_S_BASE

Expand Down