summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise.h
diff options
context:
space:
mode:
authorAnshul Jain <anshulj@nvidia.com>2011-12-08 17:33:32 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-21 12:06:21 +0530
commit80ed192a6c518d8812a9482be751b99d1e451193 (patch)
treee643a9d45e499f45ef45ce5df25f93a8d60d15c1 /arch/arm/mach-tegra/board-enterprise.h
parentea8fd1600b0590293b917f0b3322a0b8be1220fe (diff)
arm: tegra: enterprise: Initialize battery peak current management device
Register the battery peak current management device, that can trigger cpu frequency/voltage change when GPIO is triggered by battery current monitoring device. Change-Id: I5a79ed2d3e057a51a7dc3953b8c252f4ee5b9a6a Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/68816 Reviewed-on: http://git-master/r/69104 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise.h')
-rw-r--r--arch/arm/mach-tegra/board-enterprise.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise.h b/arch/arm/mach-tegra/board-enterprise.h
index 9141e44c29fc..e56af02e7cad 100644
--- a/arch/arm/mach-tegra/board-enterprise.h
+++ b/arch/arm/mach-tegra/board-enterprise.h
@@ -51,6 +51,7 @@ int enterprise_modem_init(void);
int enterprise_suspend_init(void);
int enterprise_edp_init(void);
void __init enterprise_tsensor_init(void);
+void enterprise_bpc_mgmt_init(void);
/* Invensense MPU Definitions */
#define MPU_GYRO_NAME "mpu3050"
@@ -137,6 +138,10 @@ void __init enterprise_tsensor_init(void);
#define TDIODE_OFFSET (9000) /* in millicelsius */
+/* Battery Peak Current Management */
+#define TEGRA_BPC_TRIGGER TEGRA_GPIO_PR3
+#define TEGRA_BPC_TIMEOUT 100 /* ms */
+
/* Baseband IDs */
enum tegra_bb_type {
@@ -145,4 +150,4 @@ enum tegra_bb_type {
TEGRA_BB_M7400,
};
-#endif
+#endif /*_MACH_TEGRA_BOARD_ENTERPRISE_H */