Increase max ov current limit to 4A.Actual limit will
come from Device tree based on the configuration of
PMIC on board
Bug
1488211
Change-Id: I9dac0d4c83c077684b1eed23089d986ddc2484e2
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/387636
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
static const int as3722_ldo_current[] = { 150000, 300000 };
-static const int as3722_sd016_current[] = { 2500000, 3000000, 3500000 };
+static const int as3722_sd016_current[] = { 2500000, 3000000, 3500000,
+ 4000000 };
static int as3722_current_to_index(int min_uA, int max_uA,
const int *curr_table, int n_currents)
}
val &= mask;
val >>= ffs(mask) - 1;
- if (val == 3)
- return -EINVAL;
return as3722_sd016_current[val];
}