Lines Matching +full:tegra +full:- +full:pmc
2 * (C) Copyright 2010-2015
5 * SPDX-License-Identifier: GPL-2.0+
8 /* Tegra AP (Application Processor) code */
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>
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()
154 struct pmc_ctlr *const pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in init_pmc_scratch() local
160 writel(0, &pmc->pmc_scratch1+i); in init_pmc_scratch()
164 writel(odmdata, &pmc->pmc_scratch20); in init_pmc_scratch()
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()
184 (void)readl(&mc->mc_smmu_config); in smmu_flush()
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()
220 /* Init PMC scratch memory */ in s_init()