blob: 6a387fe711d203b2cff62eed39960372b9aabe51 [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 ******************************/
17PARTITION_DECLARE(TFM_SP_CORE_TEST);
18PARTITION_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 *****************************/
24PARTITION_DECLARE(TFM_SP_CORE_TEST_2);
25PARTITION_ADD_INIT_FUNC(TFM_SP_CORE_TEST_2, core_test_2_init);
26#endif /* TFM_PARTITION_TEST_CORE */
27
28/******************************* TFM_SP_STORAGE *******************************/
29PARTITION_DECLARE(TFM_SP_STORAGE);
30PARTITION_ADD_INIT_FUNC(TFM_SP_STORAGE, sst_am_prepare);
31
32#ifdef TFM_PARTITION_TEST_SST
33/**************************** TFM_SP_SST_TEST_PARTITION ***********************/
34PARTITION_DECLARE(TFM_SP_SST_TEST_PARTITION);
35PARTITION_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__ */