]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-sunxi/tzpc.h
sunxi: Enable non-secure access to RTC on sun6i (A31s)
[karo-tx-uboot.git] / arch / arm / include / asm / arch-sunxi / tzpc.h
1 /*
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__
11 struct 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
21 void tzpc_init(void);
22
23 #endif /* _SUNXI_TZPC_H */