Lines Matching +full:tegra30 +full:- +full:mc
1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2010-2015
13 #include <asm/arch/mc.h>
14 #include <asm/arch-tegra/ap.h>
15 #include <asm/arch-tegra/clock.h>
16 #include <asm/arch-tegra/fuse.h>
17 #include <asm/arch-tegra/pmc.h>
18 #include <asm/arch-tegra/scu.h>
19 #include <asm/arch-tegra/tegra.h>
20 #include <asm/arch-tegra/warmboot.h>
31 * Tegra30, 0x35 for T114, and 0x40 for Tegra124. in tegra_get_chip()
33 rev = (readl(&gp->hidrev) & HIDREV_CHIPID_MASK) >> HIDREV_CHIPID_SHIFT; in tegra_get_chip()
44 sku_id = readl(&fuse->sku_info) & 0xff; in tegra_get_sku_info()
121 if (readl(&scu->scu_ctrl) & SCU_CTRL_ENABLE) in enable_scu()
125 writel(0xFFFF, &scu->scu_inv_all); in enable_scu()
127 /* Enable SCU - bit 0 */ in enable_scu()
128 reg = readl(&scu->scu_ctrl); in enable_scu()
130 writel(reg, &scu->scu_ctrl); in enable_scu()
138 * Read the data @ bct_start + (bct_size - 12). This works in get_odmdata()
163 writel(0, &pmc->pmc_scratch1 + i); in init_pmc_scratch()
168 writel(odmdata, &pmc->pmc_scratch20); in init_pmc_scratch()
174 struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; in protect_secure_section() local
180 writel(CONFIG_ARMV7_SECURE_BASE, &mc->mc_security_cfg0); in protect_secure_section()
181 writel(CONFIG_ARMV7_SECURE_RESERVE_SIZE >> 20, &mc->mc_security_cfg1); in protect_secure_section()
186 static void smmu_flush(struct mc_ctlr *mc) in smmu_flush() argument
188 (void)readl(&mc->mc_smmu_config); in smmu_flush()
193 struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; in smmu_enable() local
198 * is restricted to TrustZone-secured requestors. The kernel will use in smmu_enable()
199 * the per-SWGROUP enable bits to enable or disable translations. in smmu_enable()
201 writel(0xffffffff, &mc->mc_smmu_translation_enable_0); in smmu_enable()
202 writel(0xffffffff, &mc->mc_smmu_translation_enable_1); in smmu_enable()
203 writel(0xffffffff, &mc->mc_smmu_translation_enable_2); in smmu_enable()
204 writel(0xffffffff, &mc->mc_smmu_translation_enable_3); in smmu_enable()
208 * to TrustZone-secured requestors. in smmu_enable()
210 value = readl(&mc->mc_smmu_config); in smmu_enable()
212 writel(value, &mc->mc_smmu_config); in smmu_enable()
214 smmu_flush(mc); in smmu_enable()