8f90c7b60d
irqs.h is specific to the MSM7x00 series devices. Generalize this in preparation to support more devices. Signed-off-by: Gregory Bean <gbean@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org> Signed-off-by: Daniel Walker <dwalker@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
32 lines
1,015 B
C
32 lines
1,015 B
C
/*
|
|
* Copyright (C) 2007 Google, Inc.
|
|
* Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved.
|
|
* Author: Brian Swetland <swetland@google.com>
|
|
*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_MSM_IRQS_H
|
|
#define __ASM_ARCH_MSM_IRQS_H
|
|
|
|
#define MSM_IRQ_BIT(irq) (1 << ((irq) & 31))
|
|
|
|
#if defined(CONFIG_ARCH_MSM_ARM11)
|
|
#include "irqs-7x00.h"
|
|
#else
|
|
#error "Unknown architecture specification"
|
|
#endif
|
|
|
|
#define NR_IRQS (NR_MSM_IRQS + NR_GPIO_IRQS + NR_BOARD_IRQS)
|
|
#define MSM_GPIO_TO_INT(n) (NR_MSM_IRQS + (n))
|
|
#define MSM_INT_TO_REG(base, irq) (base + irq / 32)
|
|
|
|
#endif
|