1 /*
2  * Copyright (c) 2022, Arm Limited. All rights reserved.
3  * Copyright 2022 NXP. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  */
8 
9 #ifndef __CONFIG_TFM_TARGET_H__
10 #define __CONFIG_TFM_TARGET_H__
11 
12 /* Using of stored NV seed to provide entropy is disabled, when CRYPTO_HW_ACCELERATOR is defined.  */
13 #ifdef CRYPTO_HW_ACCELERATOR
14 #define CRYPTO_NV_SEED       0
15 #endif
16 
17 /* The maximum asset size to be stored in the Protected Storage area. */
18 #define PS_MAX_ASSET_SIZE    512
19 
20 /* The maximum number of assets to be stored in the Protected Storage area. */
21 #define PS_NUM_ASSETS        5
22 
23 /* The maximum number of assets to be stored in the Internal Trusted Storage */
24 #define ITS_NUM_ASSETS       5
25 
26 
27 #ifdef PLATFORM_NO_FLASH
28 /* Enable emulated RAM FS for platforms that don't have flash for Internal Trusted Storage partition */
29 #define ITS_RAM_FS           1
30 
31 /* Enable emulated RAM FS for platforms that don't have flash for Protected Storage partition */
32 #define PS_RAM_FS            1
33 
34 /* Enable OTP/NV_COUNTERS emulation in RAM */
35 #define OTP_NV_COUNTERS_RAM_EMULATION 1
36 
37 #endif /* PLATFORM_NO_FLASH */
38 
39 #endif /* __CONFIG_TFM_TARGET_H__ */
40