Control the JIG pin by Auto dection.
Coontrol3 register has JIGset[1:0].
00: JIG pin controlled by Auto detection
01: JIG pin Output Low
10 to 11 : JIG pin Hi-Impedance
This patch is for fixing 'poweroff" issue.
- Download the some image
- After downloading the image, rebooting target.
- Press the poweroff, it runs 'reboot' instead of 'poweroff'
Change-Id: Ie17a46f79f2b4da6bbffc7d57feaddc7524b3524
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
return ret;
}
+ /* JIG pin controlled by Auto detection */
+ ret = regmap_update_bits(max77843->regmap_muic,
+ MAX77843_MUIC_REG_CONTROL3,
+ MAX77843_MUIC_CONTROL3_JIGSET_MASK,
+ 0 << CONTROL3_JIGSET_SHIFT);
+ if (ret)
+ dev_warn(&pdev->dev, "Failed to update MUIC_REG_CONTRO3\n");
+
/* Turn off auto detection configuration */
ret = regmap_update_bits(max77843->regmap_muic,
MAX77843_MUIC_REG_CONTROL4,