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

1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2010-2015
7 /* Tegra AP (Application Processor) code */
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>
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()
153 struct pmc_ctlr *const pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in init_pmc_scratch() local
163 writel(0, &pmc->pmc_scratch1 + i); in init_pmc_scratch()
168 writel(odmdata, &pmc->pmc_scratch20); in init_pmc_scratch()
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()
188 (void)readl(&mc->mc_smmu_config); in smmu_flush()
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()
224 /* Init PMC scratch memory */ in s_init()