• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2018 Marvell International Ltd.
3  *
4  * SPDX-License-Identifier:     BSD-3-Clause
5  * https://spdx.org/licenses
6  */
7 
8 #ifndef MC_TRUSTZONE_H
9 #define MC_TRUSTZONE_H
10 
11 #include <drivers/marvell/addr_map.h>
12 
13 #define MVEBU_TZ_MAX_WINS	16
14 
15 #define TZ_VALID		(1 << 0)
16 #define TZ_PERM(x)		((x) << 1)
17 #define TZ_RZ_ENABLE		(1 << 3)
18 
19 /* tz attr definitions */
20 #define TZ_PERM_RW		(TZ_PERM(0))
21 #define TZ_PERM_RO		(TZ_PERM(1))
22 #define TZ_PERM_WO		(TZ_PERM(2))
23 #define TZ_PERM_ABORT		(TZ_PERM(3))
24 
25 void tz_enable_win(int ap_index, const struct addr_map_win *win, int win_id);
26 
27 #endif /* MC_TRUSTZONE_H */
28