Release 4.13 arch/arm/mach-tegra/irq.c
  
  
  
/*
 * Copyright (C) 2011 Google, Inc.
 *
 * Author:
 *      Colin Cross <ccross@android.com>
 *
 * Copyright (C) 2010,2013, NVIDIA Corporation
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#include <linux/cpu_pm.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irqchip/arm-gic.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/of_address.h>
#include <linux/of.h>
#include <linux/syscore_ops.h>
#include "board.h"
#include "iomap.h"
#include "irq.h"
#define SGI_MASK 0xFFFF
#ifdef CONFIG_PM_SLEEP
static void __iomem *tegra_gic_cpu_base;
#endif
bool tegra_pending_sgi(void)
{
	u32 pending_set;
	void __iomem *distbase = IO_ADDRESS(TEGRA_ARM_INT_DIST_BASE);
	pending_set = readl_relaxed(distbase + GIC_DIST_PENDING_SET);
	if (pending_set & SGI_MASK)
		return true;
	return false;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Marc Zyngier | 22 | 53.66% | 1 | 50.00% | 
| Joseph Lo | 19 | 46.34% | 1 | 50.00% | 
| Total | 41 | 100.00% | 2 | 100.00% | 
#ifdef CONFIG_PM_SLEEP
static int tegra_gic_notifier(struct notifier_block *self,
			      unsigned long cmd, void *v)
{
	switch (cmd) {
	case CPU_PM_ENTER:
		writel_relaxed(0x1E0, tegra_gic_cpu_base + GIC_CPU_CTRL);
		break;
	}
	return NOTIFY_OK;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Joseph Lo | 41 | 100.00% | 1 | 100.00% | 
| Total | 41 | 100.00% | 1 | 100.00% | 
static struct notifier_block tegra_gic_notifier_block = {
	.notifier_call = tegra_gic_notifier,
};
static const struct of_device_id tegra114_dt_gic_match[] __initconst = {
	{ .compatible = "arm,cortex-a15-gic" },
	{ }
};
static void tegra114_gic_cpu_pm_registration(void)
{
	struct device_node *dn;
	dn = of_find_matching_node(NULL, tegra114_dt_gic_match);
	if (!dn)
		return;
	tegra_gic_cpu_base = of_iomap(dn, 1);
	cpu_pm_register_notifier(&tegra_gic_notifier_block);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Joseph Lo | 43 | 100.00% | 1 | 100.00% | 
| Total | 43 | 100.00% | 1 | 100.00% | 
#else
static void tegra114_gic_cpu_pm_registration(void) { }
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Joseph Lo | 7 | 100.00% | 1 | 100.00% | 
| Total | 7 | 100.00% | 1 | 100.00% | 
#endif
static const struct of_device_id tegra_ictlr_match[] __initconst = {
	{ .compatible = "nvidia,tegra20-ictlr" },
	{ .compatible = "nvidia,tegra30-ictlr" },
	{ }
};
void __init tegra_init_irq(void)
{
	if (WARN_ON(!of_find_matching_node(NULL, tegra_ictlr_match)))
		pr_warn("Outdated DT detected, suspend/resume will NOT work\n");
	tegra114_gic_cpu_pm_registration();
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Marc Zyngier | 13 | 44.83% | 2 | 28.57% | 
| Colin Cross | 9 | 31.03% | 2 | 28.57% | 
| Joseph Lo | 3 | 10.34% | 1 | 14.29% | 
| Gary King | 2 | 6.90% | 1 | 14.29% | 
| Peter 'p2' De Schrijver | 2 | 6.90% | 1 | 14.29% | 
| Total | 29 | 100.00% | 7 | 100.00% | 
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp | 
| Joseph Lo | 165 | 59.57% | 3 | 21.43% | 
| Marc Zyngier | 71 | 25.63% | 2 | 14.29% | 
| Erik Gilling | 14 | 5.05% | 1 | 7.14% | 
| Thierry Reding | 10 | 3.61% | 2 | 14.29% | 
| Colin Cross | 9 | 3.25% | 2 | 14.29% | 
| Peter 'p2' De Schrijver | 4 | 1.44% | 2 | 14.29% | 
| Stephen Warren | 2 | 0.72% | 1 | 7.14% | 
| Gary King | 2 | 0.72% | 1 | 7.14% | 
| Total | 277 | 100.00% | 14 | 100.00% | 
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.