summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-laguna-power.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-11-12 16:02:21 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2013-11-12 20:16:55 -0800
commitd837b988a1465f843be586e8ce5872f02e9be390 (patch)
tree5b4213ef08562f2850ccbca9e1e7b8230f6a531f /arch/arm/mach-tegra/board-laguna-power.c
parent607690bcbee5b5074a7027320895d0c896ea92aa (diff)
ARM: tegra: pass OC current info through regulator constraints
Pass the over current trip configuration parameters through regulator constraints to move this parameter out of regulator platform data and to make these parameter handled by regulator core. Change-Id: Iad120da7220ccfd4fd38e2d7479172e073ebebe9 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/329617
Diffstat (limited to 'arch/arm/mach-tegra/board-laguna-power.c')
-rw-r--r--arch/arm/mach-tegra/board-laguna-power.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-laguna-power.c b/arch/arm/mach-tegra/board-laguna-power.c
index 7da1f3bb5ba2..bf74199bd4cd 100644
--- a/arch/arm/mach-tegra/board-laguna-power.c
+++ b/arch/arm/mach-tegra/board-laguna-power.c
@@ -297,18 +297,27 @@ int __init laguna_as3722_regulator_init(void)
as3722_sd6_reg_idata.constraints.init_uV = 1000000;
/* Set overcurrent of rails. */
+ as3722_sd6_reg_idata.constraints.min_uA = 3500000;
+ as3722_sd6_reg_idata.constraints.max_uA = 3500000;
as3722_sd6_reg_pdata.oc_configure_enable = true;
as3722_sd6_reg_pdata.oc_trip_thres_perphase = 3500;
as3722_sd6_reg_pdata.oc_alarm_thres_perphase = 0;
+ as3722_sd0_reg_idata.constraints.min_uA = 3500000;
+ as3722_sd0_reg_idata.constraints.max_uA = 3500000;
as3722_sd0_reg_pdata.oc_configure_enable = true;
as3722_sd0_reg_pdata.oc_trip_thres_perphase = 3500;
as3722_sd0_reg_pdata.oc_alarm_thres_perphase = 0;
+ as3722_sd1_reg_idata.constraints.min_uA = 2500000;
+ as3722_sd1_reg_idata.constraints.max_uA = 2500000;
as3722_sd1_reg_pdata.oc_configure_enable = true;
as3722_sd1_reg_pdata.oc_trip_thres_perphase = 2500;
as3722_sd1_reg_pdata.oc_alarm_thres_perphase = 0;
+ as3722_ldo3_reg_pdata.enable_tracking = true;
+ as3722_ldo3_reg_pdata.disable_tracking_suspend = true;
+
printk(KERN_INFO "%s: i2c_register_board_info\n",
__func__);
if (board_info.board_id == BOARD_PM358) {