xref: /rk3399_ARM-atf/plat/nxp/soc-lx2160a/lx2160ardb/policy.h (revision 9719e19a977df3e8bf7567b3c0e1d6b2ebc5b46f)
1*eb2b193dSPankaj Gupta /*
2*eb2b193dSPankaj Gupta  * Copyright 2021 NXP
3*eb2b193dSPankaj Gupta  *
4*eb2b193dSPankaj Gupta  * SPDX-License-Identifier: BSD-3-Clause
5*eb2b193dSPankaj Gupta  *
6*eb2b193dSPankaj Gupta  */
7*eb2b193dSPankaj Gupta 
8*eb2b193dSPankaj Gupta #ifndef POLICY_H
9*eb2b193dSPankaj Gupta #define	POLICY_H
10*eb2b193dSPankaj Gupta 
11*eb2b193dSPankaj Gupta /* Following defines affect the PLATFORM SECURITY POLICY */
12*eb2b193dSPankaj Gupta 
13*eb2b193dSPankaj Gupta /* set this to 0x0 if the platform is not using/responding to ECC errors
14*eb2b193dSPankaj Gupta  * set this to 0x1 if ECC is being used (we have to do some init)
15*eb2b193dSPankaj Gupta  */
16*eb2b193dSPankaj Gupta #define  POLICY_USING_ECC 0x0
17*eb2b193dSPankaj Gupta 
18*eb2b193dSPankaj Gupta /* Set this to 0x0 to leave the default SMMU page size in sACR
19*eb2b193dSPankaj Gupta  * Set this to 0x1 to change the SMMU page size to 64K
20*eb2b193dSPankaj Gupta  */
21*eb2b193dSPankaj Gupta #define POLICY_SMMU_PAGESZ_64K 0x1
22*eb2b193dSPankaj Gupta 
23*eb2b193dSPankaj Gupta /*
24*eb2b193dSPankaj Gupta  * POLICY_PERF_WRIOP = 0 : No Performance enhancement for WRIOP RN-I
25*eb2b193dSPankaj Gupta  * POLICY_PERF_WRIOP = 1 : No Performance enhancement for WRIOP RN-I = 7
26*eb2b193dSPankaj Gupta  * POLICY_PERF_WRIOP = 2 : No Performance enhancement for WRIOP RN-I = 23
27*eb2b193dSPankaj Gupta  */
28*eb2b193dSPankaj Gupta #define POLICY_PERF_WRIOP 0
29*eb2b193dSPankaj Gupta 
30*eb2b193dSPankaj Gupta /*
31*eb2b193dSPankaj Gupta  * set this to '1' if the debug clocks need to remain enabled during
32*eb2b193dSPankaj Gupta  * system entry to low-power (LPM20) - this should only be necessary
33*eb2b193dSPankaj Gupta  * for testing and NEVER set for normal production
34*eb2b193dSPankaj Gupta  */
35*eb2b193dSPankaj Gupta #define POLICY_DEBUG_ENABLE 0
36*eb2b193dSPankaj Gupta 
37*eb2b193dSPankaj Gupta 
38*eb2b193dSPankaj Gupta #endif /* POLICY_H */
39