diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-02-04 21:07:33 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-03-01 18:40:50 -0500 |
commit | ac609d266e4af4ebf586d610bd76e04dddae0c4c (patch) | |
tree | 24465ed348c37c8abcfadd80676912b395f196eb /arch/arm/mach-pxa | |
parent | 00dd8027b913088ff9b656c5aaa6336c303b7f26 (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-pxa')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/irqs.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 56a2c6131a7c..83b14f193a63 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h | |||
@@ -247,12 +247,6 @@ | |||
247 | #define BALLOON3_CODEC_IRQ IRQ_GPIO(BALLOON3_GPIO_CODEC_IRQ) | 247 | #define BALLOON3_CODEC_IRQ IRQ_GPIO(BALLOON3_GPIO_CODEC_IRQ) |
248 | #define BALLOON3_S0_CD_IRQ IRQ_GPIO(BALLOON3_GPIO_S0_CD) | 248 | #define BALLOON3_S0_CD_IRQ IRQ_GPIO(BALLOON3_GPIO_S0_CD) |
249 | 249 | ||
250 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ | ||
251 | #define IRQ_LOCOMO_KEY (IRQ_BOARD_START + 0) | ||
252 | #define IRQ_LOCOMO_GPIO (IRQ_BOARD_START + 1) | ||
253 | #define IRQ_LOCOMO_LT (IRQ_BOARD_START + 2) | ||
254 | #define IRQ_LOCOMO_SPI (IRQ_BOARD_START + 3) | ||
255 | |||
256 | /* phyCORE-PXA270 (PCM027) Interrupts */ | 250 | /* phyCORE-PXA270 (PCM027) Interrupts */ |
257 | #define PCM027_IRQ(x) (IRQ_BOARD_START + (x)) | 251 | #define PCM027_IRQ(x) (IRQ_BOARD_START + (x)) |
258 | #define PCM027_BTDET_IRQ PCM027_IRQ(0) | 252 | #define PCM027_BTDET_IRQ PCM027_IRQ(0) |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 1b9d7450ae21..d58a52415d75 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -174,11 +174,18 @@ static struct resource locomo_resources[] = { | |||
174 | }, | 174 | }, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static struct locomo_platform_data locomo_info = { | ||
178 | .irq_base = IRQ_BOARD_START, | ||
179 | }; | ||
180 | |||
177 | struct platform_device poodle_locomo_device = { | 181 | struct platform_device poodle_locomo_device = { |
178 | .name = "locomo", | 182 | .name = "locomo", |
179 | .id = 0, | 183 | .id = 0, |
180 | .num_resources = ARRAY_SIZE(locomo_resources), | 184 | .num_resources = ARRAY_SIZE(locomo_resources), |
181 | .resource = locomo_resources, | 185 | .resource = locomo_resources, |
186 | .dev = { | ||
187 | .platform_data = &locomo_info, | ||
188 | }, | ||
182 | }; | 189 | }; |
183 | 190 | ||
184 | EXPORT_SYMBOL(poodle_locomo_device); | 191 | EXPORT_SYMBOL(poodle_locomo_device); |