Mate Toth-Pal | 52674ab | 2018-02-26 09:47:56 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2018, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __USER_PARTITION_DEFINES_INC__ |
| 9 | #define __USER_PARTITION_DEFINES_INC__ |
| 10 | |
| 11 | /* PARTITION_DECLARE have to be called for a service, before calling |
| 12 | * any of PARTITION_ADD_INIT_FUNC or PARTITION_ADD_PERIPHERAL |
| 13 | */ |
| 14 | |
| 15 | #ifdef TFM_PARTITION_TEST_CORE |
| 16 | /****************************** TFM_SP_CORE_TEST ******************************/ |
Mate Toth-Pal | 5939871 | 2018-02-28 17:06:40 +0100 | [diff] [blame] | 17 | PARTITION_DECLARE(TFM_SP_CORE_TEST, SPM_PART_FLAG_SECURE); |
Mate Toth-Pal | 52674ab | 2018-02-26 09:47:56 +0100 | [diff] [blame] | 18 | PARTITION_ADD_INIT_FUNC(TFM_SP_CORE_TEST, core_test_init); |
| 19 | PARTITION_ADD_PERIPHERAL(TFM_SP_CORE_TEST, |
| 20 | MPS2_IO_FPGAIO_BASE_S, MPS2_IO_FPGAIO_BASE_S + 0xFFF, |
| 21 | PPC_SP_APB_PPC_EXP2, CMSDK_FPGA_IO_PPC_POS); |
| 22 | |
| 23 | /***************************** TFM_SP_CORE_TEST_2 *****************************/ |
Mate Toth-Pal | 5939871 | 2018-02-28 17:06:40 +0100 | [diff] [blame] | 24 | PARTITION_DECLARE(TFM_SP_CORE_TEST_2, SPM_PART_FLAG_SECURE); |
Mate Toth-Pal | 52674ab | 2018-02-26 09:47:56 +0100 | [diff] [blame] | 25 | PARTITION_ADD_INIT_FUNC(TFM_SP_CORE_TEST_2, core_test_2_init); |
| 26 | #endif /* TFM_PARTITION_TEST_CORE */ |
| 27 | |
| 28 | /******************************* TFM_SP_STORAGE *******************************/ |
Mate Toth-Pal | 5939871 | 2018-02-28 17:06:40 +0100 | [diff] [blame] | 29 | PARTITION_DECLARE(TFM_SP_STORAGE, SPM_PART_FLAG_SECURE | SPM_PART_FLAG_TRUSTED); |
Mate Toth-Pal | 52674ab | 2018-02-26 09:47:56 +0100 | [diff] [blame] | 30 | PARTITION_ADD_INIT_FUNC(TFM_SP_STORAGE, sst_am_prepare); |
| 31 | |
| 32 | #ifdef TFM_PARTITION_TEST_SST |
| 33 | /**************************** TFM_SP_SST_TEST_PARTITION ***********************/ |
Mate Toth-Pal | 5939871 | 2018-02-28 17:06:40 +0100 | [diff] [blame] | 34 | PARTITION_DECLARE(TFM_SP_SST_TEST_PARTITION, SPM_PART_FLAG_SECURE); |
Mate Toth-Pal | 52674ab | 2018-02-26 09:47:56 +0100 | [diff] [blame] | 35 | PARTITION_ADD_INIT_FUNC(TFM_SP_SST_TEST_PARTITION, sst_test_service_init); |
| 36 | #endif /* TFM_PARTITION_TEST_SST */ |
| 37 | |
| 38 | #endif /* __USER_PARTITION_DEFINES_INC__ */ |