diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-30 16:45:14 -0500 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2009-01-04 06:17:39 -0500 |
commit | 4008e879e1325c29362aa2c3fa4b527273ae15a8 (patch) | |
tree | 1fe1e210e6031a6a19d42b88645f94641a23f7db /include/linux | |
parent | 7e386e6e0e4f34f0545e8923e22fe4dd61ef9d48 (diff) |
power_supply: Add battery health reporting for WM8350
Implement support for reporting battery health in the WM8350 battery
interface. Since we are now able to report this via the classs remove
the diagnostics from the interrupt handler.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/wm8350/core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h index 2a7abeebe777..afeff6f1316c 100644 --- a/include/linux/mfd/wm8350/core.h +++ b/include/linux/mfd/wm8350/core.h | |||
@@ -58,6 +58,7 @@ | |||
58 | #define WM8350_OVER_CURRENT_INT_STATUS_MASK 0x25 | 58 | #define WM8350_OVER_CURRENT_INT_STATUS_MASK 0x25 |
59 | #define WM8350_GPIO_INT_STATUS_MASK 0x26 | 59 | #define WM8350_GPIO_INT_STATUS_MASK 0x26 |
60 | #define WM8350_COMPARATOR_INT_STATUS_MASK 0x27 | 60 | #define WM8350_COMPARATOR_INT_STATUS_MASK 0x27 |
61 | #define WM8350_CHARGER_OVERRIDES 0xE2 | ||
61 | #define WM8350_MISC_OVERRIDES 0xE3 | 62 | #define WM8350_MISC_OVERRIDES 0xE3 |
62 | #define WM8350_COMPARATOR_OVERRIDES 0xE7 | 63 | #define WM8350_COMPARATOR_OVERRIDES 0xE7 |
63 | #define WM8350_STATE_MACHINE_STATUS 0xE9 | 64 | #define WM8350_STATE_MACHINE_STATUS 0xE9 |
@@ -533,6 +534,12 @@ | |||
533 | #define WM8350_DC1_STS 0x0001 | 534 | #define WM8350_DC1_STS 0x0001 |
534 | 535 | ||
535 | /* | 536 | /* |
537 | * R226 (0xE2) - Charger status | ||
538 | */ | ||
539 | #define WM8350_CHG_BATT_HOT_OVRDE 0x8000 | ||
540 | #define WM8350_CHG_BATT_COLD_OVRDE 0x4000 | ||
541 | |||
542 | /* | ||
536 | * R227 (0xE3) - Misc Overrides | 543 | * R227 (0xE3) - Misc Overrides |
537 | */ | 544 | */ |
538 | #define WM8350_USB_LIMIT_OVRDE 0x0400 | 545 | #define WM8350_USB_LIMIT_OVRDE 0x0400 |