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>
This commit is contained in:
committed by
Anton Vorontsov
parent
a009d29ea1
commit
e3e8d1c93f
17
include/linux/z2_battery.h
Normal file
17
include/linux/z2_battery.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user