Skip to content

Commit

Permalink
Blackfin: bf537-stamp: add example AD7416 IIO resources
Browse files Browse the repository at this point in the history
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Sonic Zhang authored and Mike Frysinger committed Mar 9, 2010
1 parent 72fa2e9 commit ef8873e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/blackfin/mach-bf537/boards/stamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit ef8873e

Please sign in to comment.