summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-10-11 22:15:16 +0900
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:41:01 +0900
commitb7de643be64702094fd6e360455a82d61c7f72b4 (patch)
tree81b43ec5c863af9ca0ada870520ecc024173ede5 /include
parent5a7a60c435e4bb409c33338768ae93f332b46e38 (diff)
downloadlinux-3.10-b7de643be64702094fd6e360455a82d61c7f72b4.tar.gz
linux-3.10-b7de643be64702094fd6e360455a82d61c7f72b4.tar.bz2
linux-3.10-b7de643be64702094fd6e360455a82d61c7f72b4.zip
charger: max77693: Fix initial charger configuration properly.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/power/max77693_charger.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/include/linux/power/max77693_charger.h b/include/linux/power/max77693_charger.h
index 6f2b677bf53..baaf20af8b3 100644
--- a/include/linux/power/max77693_charger.h
+++ b/include/linux/power/max77693_charger.h
@@ -112,20 +112,28 @@
#define MAX77693_MODE_OTG 0x02
#define MAX77693_MODE_BUCK 0x04
+/* MAX77693_CHG_REG_CHG_CNFG_0i */
+#define MAX77693_FCHGTIME_MASK 0x7
+#define MAX77693_FCHGTIME_4HRS 0x1
+#define MAX77693_FCHGTIME_10HRS 0x4
+#define MAX77693_CHG_RSTRT_MASK 0x30
+
/* MAX77693_CHG_REG_CHG_CNFG_02 */
#define MAX77693_CHG_CC 0x3F
+#define MAX77693_OTG_ILIM_MASK 0x80
/* MAX77693_CHG_REG_CHG_CNFG_03 */
-#define MAX77693_CHG_TO_ITH 0x07
+#define MAX77693_CHG_TO_ITHM 0x07
+#define MAX77693_CHG_TO_TIMEM 0x38
/* MAX77693_CHG_REG_CHG_CNFG_04 */
-#define MAX77693_CHG_MINVSYS_MASK 0xE0
-#define MAX77693_CHG_MINVSYS_SHIFT 5
-#define MAX77693_CHG_PRM_MASK 0x1F
-#define MAX77693_CHG_PRM_SHIFT 0
-#define MAX77693_CHG_CV_PRM_4_20V 0x16
-#define MAX77693_CHG_CV_PRM_4_35V 0x1D
-#define MAX77693_CHG_CV_PRM_4_40V 0x1F
+#define MAX77693_CHG_MINVSYS_MASK 0xE0
+#define MAX77693_CHG_MINVSYS_SHIFT 5
+#define MAX77693_CHG_MINVSYS_3_6V 0x6
+#define MAX77693_CHG_CV_PRM_MASK 0x1F
+#define MAX77693_CHG_CV_PRM_4_20V 0x16
+#define MAX77693_CHG_CV_PRM_4_35V 0x1D
+#define MAX77693_CHG_CV_PRM_4_40V 0x1F
/* MAX77693_CHG_REG_CHG_CNFG_06 */
#define MAX77693_CHG_CHGPROT 0x0C
@@ -135,6 +143,9 @@
/* MAX77693_CHG_REG_CHG_CNFG_09 */
#define MAX77693_CHG_CHGIN_LIM 0x7F
+/* MAX77693_CHG_REG_CHG_CNFG_11 */
+#define MAX77693_CHG_VBYPSET_5V 0x50
+
/* MAX77693_CHG_REG_CHG_CNFG_12 */
#define MAX77693_CHG_WCINSEL 0x40