ARM: tegra: cardhu: add AC present interrupt gpio
Pritesh Raithatha [Mon, 2 May 2011 05:07:46 +0000 (10:07 +0530)]
Bug 817305
Bug 806809

Original-Change-Id: I5a585d890e76804d4b5c3de1b7e1b4085074ac13
Reviewed-on: http://git-master/r/30001
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R84289d0b785bc4aebc22a143f027b0b83da3a18c

arch/arm/mach-tegra/board-cardhu-sensors.c
arch/arm/mach-tegra/board-cardhu.h

index 2b56ed4..8fca8ea 100644 (file)
@@ -443,6 +443,7 @@ static struct nct1008_platform_data cardhu_nct1008_pdata = {
 static struct i2c_board_info cardhu_i2c4_bq27510_board_info[] = {
        {
                I2C_BOARD_INFO("bq27510", 0x55),
+               .irq = AC_PRESENT_GPIO,
        },
 };
 
index 9e3a2e6..b77ccc3 100644 (file)
 #define PCA954x_I2C_BUS2       (PCA954x_I2C_BUS_BASE + 2)
 #define PCA954x_I2C_BUS3       (PCA954x_I2C_BUS_BASE + 3)
 
+#define AC_PRESENT_GPIO                TPS6591X_GPIO_GP4
+
 /*****************Interrupt tables ******************/
 /* External peripheral act as interrupt controller */
 /* TPS6591x IRQs */