mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "power: smb1398: Update min-ilim setting to 1A"
This commit is contained in:
commit
adece9b4f0
1 changed files with 7 additions and 1 deletions
|
|
@ -1940,6 +1940,7 @@ static int smb1398_div2_cp_hw_init(struct smb1398_chip *chip)
|
|||
return rc;
|
||||
}
|
||||
|
||||
#define DIV2_CP_MIN_ILIM_UA 1000000
|
||||
static int smb1398_div2_cp_parse_dt(struct smb1398_chip *chip)
|
||||
{
|
||||
int rc = 0;
|
||||
|
|
@ -1962,9 +1963,14 @@ static int smb1398_div2_cp_parse_dt(struct smb1398_chip *chip)
|
|||
return rc;
|
||||
}
|
||||
|
||||
chip->div2_cp_min_ilim_ua = 750000;
|
||||
of_property_read_u32(chip->dev->of_node, "qcom,div2-cp-min-ilim-ua",
|
||||
&chip->div2_cp_min_ilim_ua);
|
||||
/*
|
||||
* Set minimum allowed ilim configuration to 1A for DIV2_CP
|
||||
* operation.
|
||||
*/
|
||||
if (chip->div2_cp_min_ilim_ua < DIV2_CP_MIN_ILIM_UA)
|
||||
chip->div2_cp_min_ilim_ua = DIV2_CP_MIN_ILIM_UA;
|
||||
|
||||
chip->max_cutoff_soc = 85;
|
||||
of_property_read_u32(chip->dev->of_node, "qcom,max-cutoff-soc",
|
||||
|
|
|
|||
Loading…
Reference in a new issue