Gregory Bean | 8f90c7b | 2010-04-30 21:33:38 -0700 | [diff] [blame^] | 1 | /* |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 2 | * Copyright (C) 2007 Google, Inc. |
Gregory Bean | 8f90c7b | 2010-04-30 21:33:38 -0700 | [diff] [blame^] | 3 | * Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved. |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 4 | * Author: Brian Swetland <swetland@google.com> |
| 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and |
| 8 | * may be copied, distributed, and modified under those terms. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | */ |
| 16 | |
| 17 | #ifndef __ASM_ARCH_MSM_IRQS_H |
| 18 | #define __ASM_ARCH_MSM_IRQS_H |
| 19 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | #define MSM_IRQ_BIT(irq) (1 << ((irq) & 31)) |
| 21 | |
Gregory Bean | 8f90c7b | 2010-04-30 21:33:38 -0700 | [diff] [blame^] | 22 | #if defined(CONFIG_ARCH_MSM_ARM11) |
| 23 | #include "irqs-7x00.h" |
| 24 | #else |
| 25 | #error "Unknown architecture specification" |
| 26 | #endif |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | |
Gregory Bean | 8f90c7b | 2010-04-30 21:33:38 -0700 | [diff] [blame^] | 28 | #define NR_IRQS (NR_MSM_IRQS + NR_GPIO_IRQS + NR_BOARD_IRQS) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 29 | #define MSM_GPIO_TO_INT(n) (NR_MSM_IRQS + (n)) |
Gregory Bean | 8f90c7b | 2010-04-30 21:33:38 -0700 | [diff] [blame^] | 30 | #define MSM_INT_TO_REG(base, irq) (base + irq / 32) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 31 | |
| 32 | #endif |