mc_trustzone.h 596 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (C) 2018 Marvell International Ltd.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 * https://spdx.org/licenses
 */

#ifndef _MC_TRUSTZONE_H
#define _MC_TRUSTZONE_H

#include <addr_map.h>

#define MVEBU_TZ_MAX_WINS	16

#define TZ_VALID		(1 << 0)
#define TZ_PERM(x)		((x) << 1)
#define TZ_RZ_ENABLE		(1 << 3)

/* tz attr definitions */
#define TZ_PERM_RW		(TZ_PERM(0))
#define TZ_PERM_RO		(TZ_PERM(1))
#define TZ_PERM_WO		(TZ_PERM(2))
#define TZ_PERM_ABORT		(TZ_PERM(3))

void tz_enable_win(int ap_index, const struct addr_map_win *win, int win_id);

#endif /* _MC_TRUSTZONE_H */