summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHyongbin Kim <hyongbink@nvidia.com>2013-10-10 13:03:37 +0900
committerGabby Lee <galee@nvidia.com>2013-10-13 17:13:34 -0700
commit3b322b136660cdfdf51e569daa356bcc6f47fafb (patch)
tree30b78ab85f85f8126a948a47dfe2673069f075eb /include
parent03d435dcc22e05ae69567ada4f0929df918fdcc1 (diff)
power: bq2419X: Support BQ24193 version
BQ24193 support JEITA spec. Set 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/289135 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/power/bq2419x-charger.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/power/bq2419x-charger.h b/include/linux/power/bq2419x-charger.h
index 5f61243a1220..65516bacd0ee 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