summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537/boards
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2010-02-25 11:27:48 +0100
committerMike Frysinger <vapier@gentoo.org>2010-03-09 06:30:52 +0100
commitef8873e06efdc023ee2e7f708787c79b78df3fcd (patch)
treeba4f43053f3fff347fc159b02793b50de05f7be9 /arch/blackfin/mach-bf537/boards
parentBlackfin: bf537-stamp: add example ADP8860 backlight/led resources (diff)
downloadlinux-ef8873e06efdc023ee2e7f708787c79b78df3fcd.tar.xz
linux-ef8873e06efdc023ee2e7f708787c79b78df3fcd.zip
Blackfin: bf537-stamp: add example AD7416 IIO resources
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 8f929539b812..4aec6c06f0fe 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -1818,6 +1818,19 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
},
#endif
+#if defined(CONFIG_AD7416) || defined(CONFIG_AD7416_MODULE)
+ {
+ I2C_BOARD_INFO("ad7417", 0xb),
+ .irq = IRQ_PG5,
+ /*
+ * platform_data pointer is borrwoed by the driver to
+ * store custimer defined IRQ ALART level mode.
+ * only IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW are valid.
+ */
+ .platform_data = (void *)IRQF_TRIGGER_LOW,
+ },
+#endif
+
#if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE)
{
I2C_BOARD_INFO("pcf8574_lcd", 0x22),