lkml.org 
[lkml]   [2011]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 16/21] stargate2 - add an IIO interrupt pool
Date
Included here as a somewhat obvious example and because it's my test platform.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
---
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


\
 
 \ /
  Last update: 2011-03-31 16:57    [W:0.537 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site