spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / arm / mach-msm / include / mach / irqs.h
blob3cd78b165abb22b4ca53896ac825f03262d4ef55
1 /*
2 * Copyright (C) 2007 Google, Inc.
3 * Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved.
4 * Author: Brian Swetland <swetland@google.com>
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.
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.
17 #ifndef __ASM_ARCH_MSM_IRQS_H
18 #define __ASM_ARCH_MSM_IRQS_H
20 #define MSM_IRQ_BIT(irq) (1 << ((irq) & 31))
22 #if defined(CONFIG_ARCH_MSM7X30)
23 #include "irqs-7x30.h"
24 #elif defined(CONFIG_ARCH_QSD8X50)
25 #include "irqs-8x50.h"
26 #include "sirc.h"
27 #elif defined(CONFIG_ARCH_MSM8X60)
28 #include "irqs-8x60.h"
29 #elif defined(CONFIG_ARCH_MSM8960)
30 /* TODO: Make these not generic. */
31 #include "irqs-8960.h"
32 #elif defined(CONFIG_ARCH_MSM_ARM11)
33 #include "irqs-7x00.h"
34 #else
35 #error "Unknown architecture specification"
36 #endif
38 #define NR_IRQS (NR_MSM_IRQS + NR_GPIO_IRQS + NR_BOARD_IRQS)
39 #define MSM_GPIO_TO_INT(n) (NR_MSM_IRQS + (n))
40 #define MSM_INT_TO_REG(base, irq) (base + irq / 32)
42 #endif