diff options
3 files changed, 42 insertions, 11 deletions
diff --git a/docs/contributing/platform_deprecation.rst b/docs/contributing/platform_deprecation.rst index cbb3b83bb1..5d7a3de987 100644 --- a/docs/contributing/platform_deprecation.rst +++ b/docs/contributing/platform_deprecation.rst @@ -49,17 +49,19 @@ The below list calls out platforms marked for deprecation according to the above process and the platform will be removed soon after the mentioned release. -+------------------------------+-----------+-----------------------------------+ -| Deprecated Platform | Removed | Comments | -| | after | | -| | release | | -+==============================+===========+===================================+ -| mps2/an539 | v1.2.0 | N.A | -+------------------------------+-----------+-----------------------------------+ -| mps2/sse-200_aws | v1.3.0 | N.A | -|------------------------------------------------------------------------------| -| musca_a | v1.3.0 | N.A | -+------------------------------+-----------+-----------------------------------+ ++--------------------------------------+-----------+---------------------------+ +| Deprecated Platform | Removed | Comments | +| | after | | +| | release | | ++======================================+===========+===========================+ +| mps2/an539 | v1.2.0 | N.A | ++--------------------------------------+-----------+---------------------------+ +| mps2/sse-200_aws | v1.3.0 | N.A | ++--------------------------------------+-----------+---------------------------+ +| musca_a | v1.3.0 | N.A | ++--------------------------------------+-----------+---------------------------+ +| nordic_nrf/nrf5340pdk_nrf5340_cpuapp | v1.3.0 | N.A | ++--------------------------------------+-----------+---------------------------+ -------------- diff --git a/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/CMakeLists.txt b/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/CMakeLists.txt index ee8932da79..97a2a3f945 100644 --- a/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/CMakeLists.txt +++ b/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/CMakeLists.txt @@ -9,6 +9,8 @@ cmake_policy(SET CMP0076 NEW) set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}) set(NRF_BOARD_SELECTED True) +message(DEPRECATION "${TFM_PLATFORM} has been marked for deprecation.") + add_subdirectory(../common/nrf5340 nrf5340) target_include_directories(platform_region_defs @@ -22,6 +24,11 @@ target_include_directories(platform_s ../common/nrf5340/partition ) +target_sources(platform_s + PRIVATE + plat_init.c +) + target_include_directories(platform_ns PUBLIC . diff --git a/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/plat_init.c b/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/plat_init.c new file mode 100644 index 0000000000..aae89db7eb --- /dev/null +++ b/platform/ext/target/nordic_nrf/nrf5340pdk_nrf5340_cpuapp/plat_init.c @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2019-2020, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + */ + +#include "tfm_hal_platform.h" +#include "cmsis.h" +#include "uart_stdout.h" +#include "log/tfm_log.h" + +enum tfm_hal_status_t tfm_hal_platform_init(void) +{ + __enable_irq(); + stdio_init(); + + LOG_MSG("\033[1;34m[Platform] nRF5340 PDK is marked for deprecation!" + "\033[0m\r\n"); + + return TFM_HAL_SUCCESS; +} |