blob: 8152eca040ac1a83c28d248456c16933259d6fa4 [file] [log] [blame]
Sathish Ambley4149e842012-03-23 11:53:55 -07001/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
Sathish Ambley5b2ec0a2011-10-08 23:03:26 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
Abhimanyu Kapur90ced6e2012-06-26 17:41:25 -070013#ifndef __ASM_ARCH_MSM_IRQS_8974_H
14#define __ASM_ARCH_MSM_IRQS_8974_H
Sathish Ambley5b2ec0a2011-10-08 23:03:26 -070015
16/* MSM ACPU Interrupt Numbers */
17
18/*
19 * 0-15: STI/SGI (software triggered/generated interrupts)
20 * 16-31: PPI (private peripheral interrupts)
21 * 32+: SPI (shared peripheral interrupts)
22 */
23
24#define GIC_PPI_START 16
25#define GIC_SPI_START 32
26
Neil Leeder533173e2012-09-04 12:18:35 -040027#define INT_ARMQC_PERFMON (GIC_PPI_START + 7)
Sathish Ambley5b2ec0a2011-10-08 23:03:26 -070028/* PPI 15 is unused */
29
30#define APCC_QGICL2PERFMONIRPTREQ (GIC_SPI_START + 1)
31#define SC_SICL2PERFMONIRPTREQ APCC_QGICL2PERFMONIRPTREQ
Sathish Ambleye3154b42012-04-09 10:59:09 -070032#define TLMM_MSM_SUMMARY_IRQ (GIC_SPI_START + 208)
Sathish Ambley5b2ec0a2011-10-08 23:03:26 -070033#define SPS_BAM_DMA_IRQ (GIC_SPI_START + 105)
34
Michael Bohan3372c0d2012-01-11 18:28:45 -080035#define NR_MSM_IRQS 1020 /* Should be 256 - but higher due to bug in sim */
Sathish Ambley4149e842012-03-23 11:53:55 -070036#define NR_GPIO_IRQS 146
Michael Bohan115cf652012-01-05 14:32:59 -080037#define NR_QPNP_IRQS 32768 /* SPARSE_IRQ is required to support this */
38#define NR_BOARD_IRQS NR_QPNP_IRQS
Sathish Ambley5b2ec0a2011-10-08 23:03:26 -070039#define NR_TLMM_MSM_DIR_CONN_IRQ 8
40#define NR_MSM_GPIOS NR_GPIO_IRQS
41
42#endif
43