1 /*
2  * Copyright (c) 2022-2024, 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 #define CRYPTO_EXT_RNG       1
16 #endif
17 
18 /* The maximum asset size to be stored in the Protected Storage area. */
19 #define PS_MAX_ASSET_SIZE    512
20 
21 /* The maximum number of assets to be stored in the Protected Storage area. */
22 #define PS_NUM_ASSETS        5
23 
24 /* The maximum number of assets to be stored in the Internal Trusted Storage */
25 #define ITS_NUM_ASSETS       5
26 
27 
28 #ifdef PLATFORM_NO_FLASH
29 /* Enable emulated RAM FS for platforms that don't have flash for Internal Trusted Storage partition */
30 #define ITS_RAM_FS           1
31 
32 /* Enable emulated RAM FS for platforms that don't have flash for Protected Storage partition */
33 #define PS_RAM_FS            1
34 
35 /* Enable OTP/NV_COUNTERS emulation in RAM */
36 #define OTP_NV_COUNTERS_RAM_EMULATION 1
37 
38 #endif /* PLATFORM_NO_FLASH */
39 
40 #endif /* __CONFIG_TFM_TARGET_H__ */
41