blob: ba4d43bc3a2ec248a830b6f23dc7b8a895921b5d [file] [log] [blame]
Chen-Yu Tsaifcc7b702015-08-25 10:49:19 +08001/*
2 * (C) Copyright 2015 Chen-Yu Tsai <wens@csie.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _SUNXI_TZPC_H
8#define _SUNXI_TZPC_H
9
10#ifndef __ASSEMBLY__
11struct sunxi_tzpc {
12 u32 r0size; /* 0x00 Size of secure RAM region */
13 u32 decport0_status; /* 0x04 Status of decode protection port 0 */
14 u32 decport0_set; /* 0x08 Set decode protection port 0 */
15 u32 decport0_clear; /* 0x0c Clear decode protection port 0 */
16};
17#endif
18
19#define SUNXI_TZPC_DECPORT0_RTC (1 << 1)
20
21void tzpc_init(void);
22
23#endif /* _SUNXI_TZPC_H */