summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537/boards/stamp.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2010-02-24 07:32:50 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:52 -0500
commit5f0225948ecc4bb21cc35839d3d447e22d40a71f (patch)
treef6090522c5f1fe3367cf57e02e5d663ff3a76bc9 /arch/blackfin/mach-bf537/boards/stamp.c
parentd40bd71f88e7be193ce4feb4b92572c70024b9c2 (diff)
downloadblackbird-op-linux-5f0225948ecc4bb21cc35839d3d447e22d40a71f.tar.gz
blackbird-op-linux-5f0225948ecc4bb21cc35839d3d447e22d40a71f.zip
Blackfin: bf537-stamp: add example AD7414 temp sensor 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/stamp.c')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index e0f5663a8acb..83489d899a14 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -1763,6 +1763,19 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
},
#endif
+#if defined(CONFIG_AD7414) || defined(CONFIG_AD7414_MODULE)
+ {
+ I2C_BOARD_INFO("ad7414", 0x9),
+ .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),
@@ -2056,6 +2069,8 @@ static struct regulator_init_data adp_switch_regulator_data[] = {
.constraints = {
.name = REGULATOR_ADP122,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
+ .min_uA = 0,
+ .max_uA = 300000,
},
.num_consumer_supplies = 1, /* only 1 */
.consumer_supplies = &adp122_consumers,
@@ -2065,6 +2080,8 @@ static struct regulator_init_data adp_switch_regulator_data[] = {
.constraints = {
.name = REGULATOR_ADP150,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
+ .min_uA = 0,
+ .max_uA = 150000,
},
.num_consumer_supplies = 1, /* only 1 */
.consumer_supplies = &adp150_consumers,
OpenPOWER on IntegriCloud