aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2010-02-04 21:07:33 -0500
committerEric Miao <eric.y.miao@gmail.com>2010-03-01 18:40:50 -0500
commitac609d266e4af4ebf586d610bd76e04dddae0c4c (patch)
tree24465ed348c37c8abcfadd80676912b395f196eb /arch/arm/mach-sa1100
parent00dd8027b913088ff9b656c5aaa6336c303b7f26 (diff)
[ARM] locomo: allow cascaded IRQ base to be specified by platforms
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-sa1100')
-rw-r--r--arch/arm/mach-sa1100/collie.c4
-rw-r--r--arch/arm/mach-sa1100/include/mach/irqs.h13
2 files changed, 7 insertions, 10 deletions
diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c
index 9982c5c28edf..5d5f330c5d94 100644
--- a/arch/arm/mach-sa1100/collie.c
+++ b/arch/arm/mach-sa1100/collie.c
@@ -234,6 +234,10 @@ static struct resource locomo_resources[] = {
234 }, 234 },
235}; 235};
236 236
237static struct locomo_platform_data locomo_info = {
238 .irq_base = IRQ_BOARD_START,
239};
240
237struct platform_device collie_locomo_device = { 241struct platform_device collie_locomo_device = {
238 .name = "locomo", 242 .name = "locomo",
239 .id = 0, 243 .id = 0,
diff --git a/arch/arm/mach-sa1100/include/mach/irqs.h b/arch/arm/mach-sa1100/include/mach/irqs.h
index 40d3382218f0..6e51b549a4d1 100644
--- a/arch/arm/mach-sa1100/include/mach/irqs.h
+++ b/arch/arm/mach-sa1100/include/mach/irqs.h
@@ -124,13 +124,13 @@
124 * Figure out the MAX IRQ number. 124 * Figure out the MAX IRQ number.
125 * 125 *
126 * If we have an SA1111, the max IRQ is S1_BVD1_STSCHG+1. 126 * If we have an SA1111, the max IRQ is S1_BVD1_STSCHG+1.
127 * If we have an LoCoMo, the max IRQ is IRQ_LOCOMO_SPI_TEND+1 127 * If we have an LoCoMo, the max IRQ is IRQ_BOARD_START + 4
128 * Otherwise, we have the standard IRQs only. 128 * Otherwise, we have the standard IRQs only.
129 */ 129 */
130#ifdef CONFIG_SA1111 130#ifdef CONFIG_SA1111
131#define NR_IRQS (IRQ_S1_BVD1_STSCHG + 1) 131#define NR_IRQS (IRQ_S1_BVD1_STSCHG + 1)
132#elif defined(CONFIG_SHARP_LOCOMO) 132#elif defined(CONFIG_SHARPSL_LOCOMO)
133#define NR_IRQS (IRQ_LOCOMO_SPI + 1) 133#define NR_IRQS (IRQ_BOARD_START + 4)
134#else 134#else
135#define NR_IRQS (IRQ_BOARD_START) 135#define NR_IRQS (IRQ_BOARD_START)
136#endif 136#endif
@@ -142,10 +142,3 @@
142#define IRQ_NEPONSET_SMC9196 (IRQ_BOARD_START + 0) 142#define IRQ_NEPONSET_SMC9196 (IRQ_BOARD_START + 0)
143#define IRQ_NEPONSET_USAR (IRQ_BOARD_START + 1) 143#define IRQ_NEPONSET_USAR (IRQ_BOARD_START + 1)
144#define IRQ_NEPONSET_SA1111 (IRQ_BOARD_START + 2) 144#define IRQ_NEPONSET_SA1111 (IRQ_BOARD_START + 2)
145
146/* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */
147#define IRQ_LOCOMO_KEY (IRQ_BOARD_START + 0)
148#define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1)
149#define IRQ_LOCOMO_LT_BASE (IRQ_BOARD_START + 2)
150#define IRQ_LOCOMO_SPI_BASE (IRQ_BOARD_START + 3)
151