diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2013-10-11 22:15:16 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:44:56 +0900 |
commit | 78003936ca7182239d85b8c06c9c9374e74eba29 (patch) | |
tree | 6d8f261b4388d0243761ea68ffcdc9b3cf692a04 /include | |
parent | cef9ca7cf597f64b0798ef1a31d24d54e7325e63 (diff) | |
download | linux-3.10-78003936ca7182239d85b8c06c9c9374e74eba29.tar.gz linux-3.10-78003936ca7182239d85b8c06c9c9374e74eba29.tar.bz2 linux-3.10-78003936ca7182239d85b8c06c9c9374e74eba29.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.h | 27 |
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 |