Lines Matching +full:tegra30 +full:- +full:mc

2 * (C) Copyright 2010-2015
5 * SPDX-License-Identifier: GPL-2.0+
14 #include <asm/arch/mc.h>
15 #include <asm/arch-tegra/ap.h>
16 #include <asm/arch-tegra/clock.h>
17 #include <asm/arch-tegra/fuse.h>
18 #include <asm/arch-tegra/pmc.h>
19 #include <asm/arch-tegra/scu.h>
20 #include <asm/arch-tegra/tegra.h>
21 #include <asm/arch-tegra/warmboot.h>
32 * Tegra30, 0x35 for T114, and 0x40 for Tegra124. in tegra_get_chip()
34 rev = (readl(&gp->hidrev) & HIDREV_CHIPID_MASK) >> HIDREV_CHIPID_SHIFT; in tegra_get_chip()
45 sku_id = readl(&fuse->sku_info) & 0xff; in tegra_get_sku_info()
122 if (readl(&scu->scu_ctrl) & SCU_CTRL_ENABLE) in enable_scu()
126 writel(0xFFFF, &scu->scu_inv_all); in enable_scu()
128 /* Enable SCU - bit 0 */ in enable_scu()
129 reg = readl(&scu->scu_ctrl); in enable_scu()
131 writel(reg, &scu->scu_ctrl); in enable_scu()
139 * Read the data @ bct_start + (bct_size - 12). This works in get_odmdata()
160 writel(0, &pmc->pmc_scratch1+i); in init_pmc_scratch()
164 writel(odmdata, &pmc->pmc_scratch20); in init_pmc_scratch()
170 struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; in protect_secure_section() local
176 writel(CONFIG_ARMV7_SECURE_BASE, &mc->mc_security_cfg0); in protect_secure_section()
177 writel(CONFIG_ARMV7_SECURE_RESERVE_SIZE >> 20, &mc->mc_security_cfg1); in protect_secure_section()
182 static void smmu_flush(struct mc_ctlr *mc) in smmu_flush() argument
184 (void)readl(&mc->mc_smmu_config); in smmu_flush()
189 struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; in smmu_enable() local
194 * is restricted to TrustZone-secured requestors. The kernel will use in smmu_enable()
195 * the per-SWGROUP enable bits to enable or disable translations. in smmu_enable()
197 writel(0xffffffff, &mc->mc_smmu_translation_enable_0); in smmu_enable()
198 writel(0xffffffff, &mc->mc_smmu_translation_enable_1); in smmu_enable()
199 writel(0xffffffff, &mc->mc_smmu_translation_enable_2); in smmu_enable()
200 writel(0xffffffff, &mc->mc_smmu_translation_enable_3); in smmu_enable()
204 * to TrustZone-secured requestors. in smmu_enable()
206 value = readl(&mc->mc_smmu_config); in smmu_enable()
208 writel(value, &mc->mc_smmu_config); in smmu_enable()
210 smmu_flush(mc); in smmu_enable()