]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/arch-exynos/tzpc.h
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
[karo-tx-uboot.git] / arch / arm / include / asm / arch-exynos / tzpc.h
1 /*
2  * (C) Copyright 2012 Samsung Electronics
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17  * MA 02111-1307 USA
18  *
19  */
20
21 #ifndef __TZPC_H_
22 #define __TZPC_H_
23
24 #ifndef __ASSEMBLY__
25 struct exynos_tzpc {
26         unsigned int r0size;
27         char res1[0x7FC];
28         unsigned int decprot0stat;
29         unsigned int decprot0set;
30         unsigned int decprot0clr;
31         unsigned int decprot1stat;
32         unsigned int decprot1set;
33         unsigned int decprot1clr;
34         unsigned int decprot2stat;
35         unsigned int decprot2set;
36         unsigned int decprot2clr;
37         unsigned int decprot3stat;
38         unsigned int decprot3set;
39         unsigned int decprot3clr;
40         char res2[0x7B0];
41         unsigned int periphid0;
42         unsigned int periphid1;
43         unsigned int periphid2;
44         unsigned int periphid3;
45         unsigned int pcellid0;
46         unsigned int pcellid1;
47         unsigned int pcellid2;
48         unsigned int pcellid3;
49 };
50
51 #define EXYNOS4_NR_TZPC_BANKS           6
52 #define EXYNOS5_NR_TZPC_BANKS           10
53
54 /* TZPC : Register Offsets */
55 #define TZPC_BASE_OFFSET                0x10000
56
57 /*
58  * TZPC Register Value :
59  * R0SIZE: 0x0 : Size of secured ram
60  */
61 #define R0SIZE                  0x0
62
63 /*
64  * TZPC Decode Protection Register Value :
65  * DECPROTXSET: 0xFF : Set Decode region to non-secure
66  */
67 #define DECPROTXSET             0xFF
68 void tzpc_init(void);
69
70 #endif
71
72 #endif