xref: /linux/arch/arm/mach-tegra/irq.c (revision 5ad36c5f0ece31552a195f2f9e29357a2747536e)
1*5ad36c5fSErik Gilling /*
2*5ad36c5fSErik Gilling  * Copyright (C) 2010 Google, Inc.
3*5ad36c5fSErik Gilling  *
4*5ad36c5fSErik Gilling  * Author:
5*5ad36c5fSErik Gilling  *	Colin Cross <ccross@google.com>
6*5ad36c5fSErik Gilling  *
7*5ad36c5fSErik Gilling  * This software is licensed under the terms of the GNU General Public
8*5ad36c5fSErik Gilling  * License version 2, as published by the Free Software Foundation, and
9*5ad36c5fSErik Gilling  * may be copied, distributed, and modified under those terms.
10*5ad36c5fSErik Gilling  *
11*5ad36c5fSErik Gilling  * This program is distributed in the hope that it will be useful,
12*5ad36c5fSErik Gilling  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*5ad36c5fSErik Gilling  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*5ad36c5fSErik Gilling  * GNU General Public License for more details.
15*5ad36c5fSErik Gilling  *
16*5ad36c5fSErik Gilling  */
17*5ad36c5fSErik Gilling 
18*5ad36c5fSErik Gilling #include <linux/kernel.h>
19*5ad36c5fSErik Gilling #include <linux/init.h>
20*5ad36c5fSErik Gilling #include <linux/interrupt.h>
21*5ad36c5fSErik Gilling #include <linux/irq.h>
22*5ad36c5fSErik Gilling #include <linux/io.h>
23*5ad36c5fSErik Gilling 
24*5ad36c5fSErik Gilling #include <asm/hardware/gic.h>
25*5ad36c5fSErik Gilling 
26*5ad36c5fSErik Gilling #include <mach/iomap.h>
27*5ad36c5fSErik Gilling 
28*5ad36c5fSErik Gilling #include "board.h"
29*5ad36c5fSErik Gilling 
30*5ad36c5fSErik Gilling void __init tegra_init_irq(void)
31*5ad36c5fSErik Gilling {
32*5ad36c5fSErik Gilling 	gic_dist_init(0, IO_ADDRESS(TEGRA_ARM_INT_DIST_BASE), 29);
33*5ad36c5fSErik Gilling 	gic_cpu_init(0, IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100));
34*5ad36c5fSErik Gilling }
35