blob: ed55be6288aaf0a4a33b04ccff59be40b2afc664 [file] [log] [blame]
Mate Toth-Pal52674ab2018-02-26 09:47:56 +01001/*
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-Pal59398712018-02-28 17:06:40 +010017PARTITION_DECLARE(TFM_SP_CORE_TEST, SPM_PART_FLAG_SECURE);
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010018PARTITION_ADD_INIT_FUNC(TFM_SP_CORE_TEST, core_test_init);
19PARTITION_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-Pal59398712018-02-28 17:06:40 +010024PARTITION_DECLARE(TFM_SP_CORE_TEST_2, SPM_PART_FLAG_SECURE);
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010025PARTITION_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-Pal59398712018-02-28 17:06:40 +010029PARTITION_DECLARE(TFM_SP_STORAGE, SPM_PART_FLAG_SECURE | SPM_PART_FLAG_TRUSTED);
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010030PARTITION_ADD_INIT_FUNC(TFM_SP_STORAGE, sst_am_prepare);
31
32#ifdef TFM_PARTITION_TEST_SST
33/**************************** TFM_SP_SST_TEST_PARTITION ***********************/
Mate Toth-Pal59398712018-02-28 17:06:40 +010034PARTITION_DECLARE(TFM_SP_SST_TEST_PARTITION, SPM_PART_FLAG_SECURE);
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010035PARTITION_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__ */