[PATCH 16/21] stargate2 - add an IIO interrupt pool
From: Jonathan Cameron
Date: Thu Mar 31 2011 - 10:54:27 EST
Included here as a somewhat obvious example and because it's my test platform.
Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx>
---
arch/arm/mach-pxa/stargate2.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c
index cb5611d..3005b9c 100644
--- a/arch/arm/mach-pxa/stargate2.c
+++ b/arch/arm/mach-pxa/stargate2.c
@@ -56,8 +56,9 @@
#include "devices.h"
#include "generic.h"
-
-#define STARGATE_NR_IRQS (IRQ_BOARD_START + 8)
+#include "../../../drivers/staging/iio/iio-board-info.h"
+#define STARGATE_IIO_IRQ_POOL 16
+#define STARGATE_NR_IRQS (IRQ_BOARD_START + STARGATE_IIO_IRQ_POOL)
/* Bluetooth */
#define SG2_BT_RESET 81
@@ -408,6 +409,7 @@ static struct i2c_pxa_platform_data i2c_pdata = {
static void __init imote2_stargate2_init(void)
{
+ iio_set_irq_pool(IRQ_BOARD_START, STARGATE_IIO_IRQ_POOL);
pxa2xx_mfp_config(ARRAY_AND_SIZE(sg2_im2_unified_pin_config));
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/