Lines Matching +full:tegra +full:- +full:pmc

1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2010-2015
15 #include <asm/arch/tegra.h>
16 #include <asm/arch-tegra/ap.h>
17 #include <asm/arch-tegra/board.h>
18 #include <asm/arch-tegra/pmc.h>
19 #include <asm/arch-tegra/sys_proto.h>
20 #include <asm/arch-tegra/warmboot.h>
58 * This register reads 0xffffffff in non-secure mode. This register in tegra_cpu_is_non_secure()
61 * non-secure mode. in tegra_cpu_is_non_secure()
64 uint32_t mc_s_cfg0 = readl(&mc->mc_security_cfg0); in tegra_cpu_is_non_secure()
76 emem_cfg = readl(&mc->mc_emem_cfg); in query_sdram_size()
78 debug("mc->mc_emem_cfg (MEM_SIZE_KB) = 0x%08x\n", emem_cfg); in query_sdram_size()
81 debug("mc->mc_emem_cfg (MEM_SIZE_MB) = 0x%08x\n", emem_cfg); in query_sdram_size()
84 * If >=4GB RAM is present, the byte RAM size won't fit into 32-bits in query_sdram_size()
85 * and will wrap. Clip the reported size to the maximum that a 32-bit in query_sdram_size()
89 size_bytes = U32_MAX & ~(0x1000 - 1); in query_sdram_size()
97 * If all RAM fits within 32-bits, it can be accessed without in query_sdram_size()
103 if (emem_cfg <= (0 - PHYS_SDRAM_1) / (1024 * 1024)) in query_sdram_size()
111 /* External memory limited to 2047 MB due to IROM/HI-VEC */ in query_sdram_size()
113 size_bytes -= SZ_1M; in query_sdram_size()
122 gd->ram_size = query_sdram_size(); in dram_init()
138 -1,
140 -1,
143 -1,
144 -1,
145 -1,
146 -1,
148 -1,
149 -1,
150 -1,
152 -1,
155 -1,
156 -1,
158 -1,
161 -1,
162 -1,
164 -1,
232 /* Enable D-cache. I-cache is already enabled in start.S */ in enable_caches()