summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-10-29 15:47:29 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2013-10-30 02:17:22 -0700
commit025d56ca553d11ad5275cb03532aa26c696e51e9 (patch)
tree2a83ea7806ffdbcdc943d08019a3933fd84b202f /include/linux/power
parent938d767d19ff653b211af70ee11611b721130718 (diff)
power: bq2419x: fix multiple issue
Fixing multiple issue with driver: - pass the enable time of vbus through the desc. - Move rtc configuration to core. - Fix suspend/resume functionality. - Avoid LP0 only when high current charger is connected. - Fix checkpatch error. Change-Id: Iec3c0e6907f5a275fc3d09c5227e7f8a4aacf8d9 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/304807 Reviewed-by: Darbha Sriharsha <dsriharsha@nvidia.com> Tested-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/bq2419x-charger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/power/bq2419x-charger.h b/include/linux/power/bq2419x-charger.h
index 1c1931d0ce37..9f308d10808f 100644
--- a/include/linux/power/bq2419x-charger.h
+++ b/include/linux/power/bq2419x-charger.h
@@ -43,11 +43,11 @@
#define BQ24192_IC_VER 0x28
#define BQ24192i_IC_VER 0x18
-#define BQ2419X_ENABLE_CHARGE_MASK 0x30
#define BQ2419X_CHARGE_CURRENT_MASK ~(0x03)
+#define BQ2419X_ENABLE_CHARGE_MASK 0x30
+#define BQ2419X_ENABLE_VBUS 0x20
#define BQ2419X_ENABLE_CHARGE 0x10
#define BQ2419X_DISABLE_CHARGE 0x00
-#define BQ2419X_ENABLE_VBUS 0x20
#define BQ2419X_REG0 0x0
#define BQ2419X_EN_HIZ BIT(7)