blob: e883214c91cd3a9c0bec8f4011399ee120689555 [file] [log] [blame]
Syed Rameez Mustafa49252cd2012-09-21 18:32:29 -07001/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
2 *
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
13#ifndef __ASM_ARCH_MSM_IRQS_8910_H
14#define __ASM_ARCH_MSM_IRQS_8910_H
15
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
27#define INT_ARMQC_PERFMON (GIC_PPI_START + 10)
28
29#define APCC_QGICL2PERFMONIRPTREQ (GIC_SPI_START + 1)
30#define SC_SICL2PERFMONIRPTREQ APCC_QGICL2PERFMONIRPTREQ
31#define TLMM_MSM_SUMMARY_IRQ (GIC_SPI_START + 208)
32
33#define NR_MSM_IRQS 256
Hanumant Singhcd888fb2012-10-19 16:07:07 -070034#define NR_GPIO_IRQS 102
Syed Rameez Mustafa49252cd2012-09-21 18:32:29 -070035#define NR_QPNP_IRQS 32768 /* SPARSE_IRQ is required to support this */
36#define NR_BOARD_IRQS NR_QPNP_IRQS
37#define NR_TLMM_MSM_DIR_CONN_IRQ 8
38#define NR_MSM_GPIOS NR_GPIO_IRQS
39
40#endif