summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@animalcreek.com>2013-08-24 04:21:03 +0200
committerAnton Vorontsov <anton@enomsg.org>2013-08-28 03:17:54 +0200
commitd7bf353fd0aa3e12060ce64c8a7b4aaf4336145c (patch)
tree2c2464a7b173e3f8b387cd618b3f235dc31c8e77 /include
parentab8500-charger: We print an unintended error message (diff)
downloadlinux-d7bf353fd0aa3e12060ce64c8a7b4aaf4336145c.tar.xz
linux-d7bf353fd0aa3e12060ce64c8a7b4aaf4336145c.zip
bq24190_charger: Add support for TI BQ24190 Battery Charger
Add driver support for the Texas Instruments BQ24190 battery charger. Some of the information provided by the device is about the charger and other information is about the battery so create two power_supply objects (one for each) and provide the appropriate information for each one. The device has many fields that go beyond what is reasonable to report or modify using the existing 'POWER_SUPPLY_PROP_*' properties so the driver exports the register fields via sysfs. They are prefixed by 'f_' (for 'field') to make it easier to distinguish between a register field and a "normal" sysfs file exported by the power_supply infrastructure. Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/power/bq24190_charger.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/power/bq24190_charger.h b/include/linux/power/bq24190_charger.h
new file mode 100644
index 000000000000..9f0283721cbc
--- /dev/null
+++ b/include/linux/power/bq24190_charger.h
@@ -0,0 +1,16 @@
+/*
+ * Platform data for the TI bq24190 battery charger driver.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _BQ24190_CHARGER_H_
+#define _BQ24190_CHARGER_H_
+
+struct bq24190_platform_data {
+ unsigned int gpio_int; /* GPIO pin that's connected to INT# */
+};
+
+#endif