summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnshul Jain <anshulj@nvidia.com>2011-12-08 17:36:58 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-21 12:06:21 +0530
commitd5e1300c07d31d0afed8765fe5530d70f14dcf3d (patch)
tree1cccd1b0ddf451929e77b17fb754b408fa2eecc9
parent80ed192a6c518d8812a9482be751b99d1e451193 (diff)
arm: tergra: enterprise: Add init code for system edp
Init code for system edp tables for Enterprise (aka battery edp capping, aka battery peak current management); disabled by default. Change-Id: I8cff00dba18576a3fabf5542e609bca010de9d0f Signed-off-by: Anshul Jain <anshulj@nvidia.com> Reviewed-on: http://git-master/r/65612 Reviewed-on: http://git-master/r/69107 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-enterprise-power.c1
-rw-r--r--arch/arm/mach-tegra/board-enterprise.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c
index ac7864b6d5c9..9457e0dcd5cf 100644
--- a/arch/arm/mach-tegra/board-enterprise-power.c
+++ b/arch/arm/mach-tegra/board-enterprise-power.c
@@ -579,6 +579,7 @@ int __init enterprise_edp_init(void)
pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
tegra_init_cpu_edp_limits(regulator_mA);
+ tegra_init_system_edp_limits(TEGRA_BPC_CPU_PWR_LIMIT);
return 0;
}
#endif
diff --git a/arch/arm/mach-tegra/board-enterprise.h b/arch/arm/mach-tegra/board-enterprise.h
index e56af02e7cad..2e559a0b2520 100644
--- a/arch/arm/mach-tegra/board-enterprise.h
+++ b/arch/arm/mach-tegra/board-enterprise.h
@@ -141,6 +141,7 @@ void enterprise_bpc_mgmt_init(void);
/* Battery Peak Current Management */
#define TEGRA_BPC_TRIGGER TEGRA_GPIO_PR3
#define TEGRA_BPC_TIMEOUT 100 /* ms */
+#define TEGRA_BPC_CPU_PWR_LIMIT 0 /* in mW, (0 disables) */
/* Baseband IDs */