diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2011-06-04 19:03:16 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:45:55 -0800 |
commit | c19b8f176c9f8de3fb229f30c2b064d17557a3ee (patch) | |
tree | c0c6b368e348deed66c8ec9856749246ff26dd66 /arch/arm/mach-tegra/board-cardhu.h | |
parent | 7dd2e9d4ba5fd1c997b4338b82e1abd8ae4db512 (diff) |
ARM: tegra: cardhu: pass ac present interrupt and gpio to bq27x00
-Define AC_PRESENT_INT
-Assign AC_PRESENT_INT to .irq of battery driver bq27x00
-Pass AC_PRESENT_GPIO to bq27x00 throught plarform data
Original-Change-Id: Ic493cc4be5ef38a75f026cfd7082315563a07214
Reviewed-on: http://git-master/r/32620
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: Rbfe05a3a86c1c54e0c0dadf3640a1814b4b782f0
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.h')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.h b/arch/arm/mach-tegra/board-cardhu.h index 8e68e129349b..3275078644ca 100644 --- a/arch/arm/mach-tegra/board-cardhu.h +++ b/arch/arm/mach-tegra/board-cardhu.h @@ -23,6 +23,7 @@ #include <mach/gpio.h> #include <mach/irqs.h> +#include <linux/mfd/tps6591x.h> #define BOARD_E1187 0x0B57 #define BOARD_E1186 0x0B56 @@ -114,7 +115,9 @@ /* External peripheral act as interrupt controller */ /* TPS6591x IRQs */ #define TPS6591X_IRQ_BASE TEGRA_NR_IRQS -#define TPS6591X_IRQ_END (TPS6591X_IRQ_BASE + 24) +#define TPS6591X_IRQ_END (TPS6591X_IRQ_BASE + 18) + +#define AC_PRESENT_INT (TPS6591X_INT_GPIO4 + TPS6591X_IRQ_BASE) int cardhu_charge_init(void); int cardhu_regulator_init(void); |