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