diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-02-28 12:47:49 +0100 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-04-06 20:35:58 +0400 |
commit | e3e8d1c93f9e6b766424b05f23f2416f22a0329d (patch) | |
tree | 6ec71b13165e353d56be9272551706c878d47028 /include/linux/z2_battery.h | |
parent | a009d29ea104c1bd8805a20018469897c2c2263c (diff) | |
download | kernel_samsung_tuna-e3e8d1c93f9e6b766424b05f23f2416f22a0329d.zip kernel_samsung_tuna-e3e8d1c93f9e6b766424b05f23f2416f22a0329d.tar.gz kernel_samsung_tuna-e3e8d1c93f9e6b766424b05f23f2416f22a0329d.tar.bz2 |
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.h | 17 |
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 0000000..7b97504 --- /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 |