projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72fa2e9
)
Blackfin: bf537-stamp: add example AD7416 IIO resources
author
Sonic Zhang
<
[email protected]
>
Thu, 25 Feb 2010 10:27:48 +0000
(10:27 +0000)
committer
Mike Frysinger
<
[email protected]
>
Tue, 9 Mar 2010 05:30:52 +0000
(
00:30
-0500)
Signed-off-by: Sonic Zhang <
[email protected]
>
Signed-off-by: Mike Frysinger <
[email protected]
>
arch/blackfin/mach-bf537/boards/stamp.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/mach-bf537/boards/stamp.c
b/arch/blackfin/mach-bf537/boards/stamp.c
index 8f929539b812a06e46c7f80a520fcccd43dd4c72..4aec6c06f0fe4898cd6d8316264f5e9cd7328193 100644
(file)
--- 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),