plat/nvidia/tegra/common/tegra_gic.c
/*******************************************************************************
 * Place the cpu interface in a state where it can never make a cpu exit wfi as
 * as result of an asserted interrupt. This is critical for powering down a cpu
 ******************************************************************************/
Place the cpu interface in a state where it can never make a cpu exit wfi as
as result of an asserted interrupt. This is critical for powering down a cpu
Place the cpu interface in a state where it can never make a cpu exit wfi as as result of an asserted interrupt . This is critical for powering down a cpu
void tegra_gic_cpuif_deactivate(void)
{
	uint32_t val;
	val = gicc_read_ctlr(TEGRA_GICC_BASE);
	val &= ~(ENABLE_GRP0 | ENABLE_GRP1);
	val |= FIQ_BYP_DIS_GRP1 | FIQ_BYP_DIS_GRP0;
	val |= IRQ_BYP_DIS_GRP0 | IRQ_BYP_DIS_GRP1;
	gicc_write_ctlr(TEGRA_GICC_BASE, val);
}
void tegra_gic_cpuif_deactivate ( void ) { uint32_t val ; val = gicc_read_ctlr ( TEGRA_GICC_BASE ) ; val &= ~ ( ENABLE_GRP0 | ENABLE_GRP1 ) ; val |= FIQ_BYP_DIS_GRP1 | FIQ_BYP_DIS_GRP0 ; val |= IRQ_BYP_DIS_GRP0 | IRQ_BYP_DIS_GRP1 ; gicc_write_ctlr ( TEGRA_GICC_BASE , val ) ; }
Place the cpu interface in a state where it can never make a cpu exit wfi as
 as result of an asserted interrupt.
Place the cpu interface in a state where it can never make a cpu exit wfi as as result of an asserted interrupt .
/* Disable secure, non-secure interrupts and disable their bypass */