diff options
author | Hyongbin Kim <hyongbink@nvidia.com> | 2013-07-12 19:54:10 +0900 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-07-15 20:05:17 -0700 |
commit | 5f2767208dd93f4060e5780a3f3ed9b032c0f360 (patch) | |
tree | 37e48e697742e375aa9b7d7f42f2d3f17577fdd5 /include | |
parent | 44e165177343d981fc9545774b1849cbd35521cf (diff) |
power: bq2419X: Support BQ24193 and set JEITA register
Set ICHG=4.1A and ISET=1 for charging 0.2C at T1~T2.
Set VSET=4.2V for 4.2V charging at T3~T5.
Bug 1324720
Change-Id: I17d144658706140bee1298edfa9792b2eb0f5605
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/248303
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/power/bq2419x-charger.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/power/bq2419x-charger.h b/include/linux/power/bq2419x-charger.h index cefbeadfa8c0..48155c985906 100644 --- a/include/linux/power/bq2419x-charger.h +++ b/include/linux/power/bq2419x-charger.h @@ -39,8 +39,10 @@ #define BQ2419X_FAULT_REG 0x09 #define BQ2419X_REVISION_REG 0x0a -#define BQ24190_IC_VER 0x40 +#define BQ2419X_IC_VER_MASK 0x3C +#define BQ24190_IC_VER 0x20 #define BQ24192_IC_VER 0x28 +#define BQ24193_IC_VER 0x2C #define BQ24192i_IC_VER 0x18 #define BQ2419X_ENABLE_CHARGE_MASK 0x30 @@ -59,6 +61,14 @@ #define BQ2419X_WD_80ms 0x20 #define BQ2419X_WD_160ms 0x30 +#define BQ2419X_JEITA_ISET_MASK 0x1 +#define BQ2419X_JEITA_ISET_20 0x1 +#define BQ2419X_JEITA_ISET_50 0x0 + +#define BQ2419X_JEITA_VSET_MASK 0x10 +#define BQ2419X_JEITA_VSET_4_20V 0x10 +#define BQ2419X_JEITA_VSET_4_05V 0x00 + #define BQ2419x_VBUS_STAT 0xc0 #define BQ2419x_VBUS_UNKNOWN 0x00 #define BQ2419x_VBUS_USB 0x40 |