File tree Expand file tree Collapse file tree
ext/target/nordic_nrf/common/core
secure_fw/partitions/platform Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ extern "C" {
2727#define TFM_PLATFORM_API_ID_NV_INCREMENT (1011)
2828#define TFM_PLATFORM_API_ID_SYSTEM_RESET (1012)
2929#define TFM_PLATFORM_API_ID_IOCTL (1013)
30- #define TFM_PLATFORM_API_ID_SYSTEM_OFF (1014)
3130
3231/*!
3332 * \enum tfm_platform_err_t
@@ -54,14 +53,6 @@ typedef int32_t tfm_platform_ioctl_req_t;
5453 */
5554enum tfm_platform_err_t tfm_platform_system_reset (void );
5655
57- /*!
58- * \brief System off function to move the system to the lowest power state
59- *
60- * \return On success the processor will go to system off, in case of error it returns
61- * values as specified by the \ref tfm_platform_err_t
62- */
63- enum tfm_platform_err_t tfm_platform_system_off (void );
64-
6556/*!
6657 * \brief Performs a platform-specific service
6758 *
Original file line number Diff line number Diff line change @@ -26,21 +26,6 @@ enum tfm_platform_err_t tfm_platform_system_reset(void)
2626
2727}
2828
29- enum tfm_platform_err_t tfm_platform_system_off (void )
30- {
31- psa_status_t status = PSA_ERROR_CONNECTION_REFUSED ;
32-
33- status = psa_call (TFM_PLATFORM_SERVICE_HANDLE ,
34- TFM_PLATFORM_API_ID_SYSTEM_OFF ,
35- NULL , 0 , NULL , 0 );
36-
37- if (status < PSA_SUCCESS ) {
38- return TFM_PLATFORM_ERR_SYSTEM_ERROR ;
39- } else {
40- return (enum tfm_platform_err_t )status ;
41- }
42- }
43-
4429enum tfm_platform_err_t
4530tfm_platform_ioctl (tfm_platform_ioctl_req_t request ,
4631 psa_invec * input , psa_outvec * output )
Original file line number Diff line number Diff line change @@ -165,18 +165,6 @@ if(TFM_SPM_LOG_RAW_ENABLED OR SECURE_UART1)
165165 )
166166endif ()
167167
168- if (TFM_NRF_SYSTEM_OFF_SERVICE)
169- target_sources (platform_s
170- PRIVATE
171- ${HAL_NORDIC_PATH} /nrfx/helpers/nrfx_ram_ctrl.c
172- )
173-
174- target_compile_definitions (platform_s
175- PUBLIC
176- TFM_NRF_SYSTEM_OFF_SERVICE
177- )
178- endif ()
179-
180168target_compile_options (platform_s
181169 PUBLIC
182170 ${COMPILER_CMSE_FLAG}
Original file line number Diff line number Diff line change @@ -28,14 +28,6 @@ extern "C" {
2828TFM_LINK_SET_RO_IN_PARTITION_SECTION ("TFM_SP_PLATFORM" , "PSA-ROT" )
2929void tfm_platform_hal_system_reset (void );
3030
31- /**
32- * \brief Set system power state to off.
33- *
34- * \details Requests the system to enter a low-power state.
35- */
36- TFM_LINK_SET_RO_IN_PARTITION_SECTION ("TFM_SP_PLATFORM" , "PSA-ROT" )
37- enum tfm_platform_err_t tfm_platform_hal_system_off (void );
38-
3931/*!
4032 * \brief Performs a platform-specific service
4133 *
Original file line number Diff line number Diff line change @@ -39,24 +39,6 @@ enum tfm_platform_err_t platform_sp_system_reset(void)
3939 return TFM_PLATFORM_ERR_SUCCESS ;
4040}
4141
42- #if TFM_NRF_SYSTEM_OFF_SERVICE
43- enum tfm_platform_err_t platform_sp_system_off (void )
44- {
45- /* FIXME: The system off functionality is only supported in isolation
46- * level 1.
47- */
48-
49- return tfm_platform_hal_system_off ();
50- }
51-
52- static psa_status_t platform_sp_system_off_psa_api (const psa_msg_t * msg )
53- {
54- (void )msg ; /* unused parameter */
55-
56- return platform_sp_system_off ();
57- }
58- #endif /* TFM_NRF_SYSTEM_OFF_SERVICE */
59-
6042static psa_status_t platform_sp_system_reset_psa_api (const psa_msg_t * msg )
6143{
6244 (void )msg ; /* unused parameter */
@@ -243,10 +225,6 @@ psa_status_t tfm_platform_service_sfn(const psa_msg_t *msg)
243225#endif /* PLATFORM_NV_COUNTER_MODULE_DISABLED */
244226 case TFM_PLATFORM_API_ID_SYSTEM_RESET :
245227 return platform_sp_system_reset_psa_api (msg );
246- #if TFM_NRF_SYSTEM_OFF_SERVICE
247- case TFM_PLATFORM_API_ID_SYSTEM_OFF :
248- return platform_sp_system_off_psa_api (msg );
249- #endif /* TFM_NRF_SYSTEM_OFF_SERVICE */
250228 case TFM_PLATFORM_API_ID_IOCTL :
251229 return platform_sp_ioctl_psa_api (msg );
252230 default :
You can’t perform that action at this time.
0 commit comments