mb/google/nissa/var/pujjo: Add new supported memory part
[coreboot2.git] / src / soc / samsung / exynos5420 / trustzone.c
blobb0cdc384325283ce025d0979d905e098c4d4211c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/mmio.h>
4 #include <soc/trustzone.h>
6 /* Setting TZPC[TrustZone Protection Controller]
7 * We pretty much disable it all, as the kernel
8 * expects it that way -- and that's not the default.
9 */
10 void trustzone_init(void)
12 struct exynos_tzpc *tzpc;
13 unsigned int addr;
15 for (addr = TZPC10_BASE; addr <= TZPC9_BASE; addr += TZPC_BASE_OFFSET) {
16 tzpc = (struct exynos_tzpc *)addr;
17 if (addr == TZPC0_BASE)
18 write32(&tzpc->r0size, R0SIZE);
19 write32(&tzpc->decprot0set, DECPROTXSET);
20 write32(&tzpc->decprot1set, DECPROTXSET);
21 write32(&tzpc->decprot2set, DECPROTXSET);
22 write32(&tzpc->decprot3set, DECPROTXSET);