arm: tergra: enterprise: Add init code for system edp
Anshul Jain [Fri, 9 Dec 2011 01:36:58 +0000 (17:36 -0800)]
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>

arch/arm/mach-tegra/board-enterprise-power.c
arch/arm/mach-tegra/board-enterprise.h

index ac7864b..9457e0d 100644 (file)
@@ -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
index e56af02..2e559a0 100644 (file)
@@ -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 */