blob: 4d9c3a32fb430ca1d1222b79d42ab6b7778955ea [file] [log] [blame]
Chander Kashyap34076a02012-02-05 23:01:46 +00001/*
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__
Chander Kashyap8f223782012-03-14 17:34:02 +000025struct exynos_tzpc {
Chander Kashyap34076a02012-02-05 23:01:46 +000026 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};
Inderpal Singhb472f582013-04-04 23:09:19 +000050
Inderpal Singh848048a2013-04-04 23:09:20 +000051#define EXYNOS4_NR_TZPC_BANKS 6
52#define EXYNOS5_NR_TZPC_BANKS 10
Inderpal Singhb472f582013-04-04 23:09:19 +000053
Inderpal Singh848048a2013-04-04 23:09:20 +000054/* TZPC : Register Offsets */
Inderpal Singhb472f582013-04-04 23:09:19 +000055#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
68void tzpc_init(void);
69
Chander Kashyap34076a02012-02-05 23:01:46 +000070#endif
71
72#endif