summaryrefslogtreecommitdiff
path: root/include/linux/z2_battery.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-02-28 14:47:49 +0300
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-04-06 20:35:58 +0400
commite3e8d1c93f9e6b766424b05f23f2416f22a0329d (patch)
tree6ec71b13165e353d56be9272551706c878d47028 /include/linux/z2_battery.h
parenta009d29ea104c1bd8805a20018469897c2c2263c (diff)
downloadlinux-e3e8d1c93f9e6b766424b05f23f2416f22a0329d.tar.xz
Driver for Zipit Z2 battery chip
This patch adds driver for Zipit Z2 battery chip called AER915. No details are known about the chip. The chip is available through I2C bus at address 0x55 and it's register 0x02 contains battery voltage. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'include/linux/z2_battery.h')
-rw-r--r--include/linux/z2_battery.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/z2_battery.h b/include/linux/z2_battery.h
new file mode 100644
index 000000000000..7b9750404d22
--- /dev/null
+++ b/include/linux/z2_battery.h
@@ -0,0 +1,17 @@
+#ifndef _LINUX_Z2_BATTERY_H
+#define _LINUX_Z2_BATTERY_H
+
+struct z2_battery_info {
+ int batt_I2C_bus;
+ int batt_I2C_addr;
+ int batt_I2C_reg;
+ int charge_gpio;
+ int min_voltage;
+ int max_voltage;
+ int batt_div;
+ int batt_mult;
+ int batt_tech;
+ char *batt_name;
+};
+
+#endif