30 unsigned int reg_addr,
unsigned char value)
36 __func__, reg_addr,
value, ret);
41 unsigned int reg_addr,
unsigned char *
value)
91 "reg=%#02x\n",
fet_id, set, reg);
100 for (loops = 0; loops < 100; loops++) {
#define retry(attempts, condition,...)
#define printk(level,...)
static int i2c_writeb(unsigned int bus, uint8_t slave, uint8_t reg, uint8_t data)
Write a byte with one segment in one frame.
static int i2c_readb(unsigned int bus, uint8_t slave, uint8_t reg, uint8_t *data)
Read a byte with two segments in one frame.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
int tps65090_set_charge_enable(unsigned int bus, int enable)
Enable / disable the battery charger.
static int tps65090_i2c_write(unsigned int bus, unsigned int reg_addr, unsigned char value)
int tps65090_fet_disable(unsigned int bus, enum fet_id fet_id)
Disable FET.
int tps65090_fet_enable(unsigned int bus, enum fet_id fet_id)
Enable FET.
int tps65090_is_charging(unsigned int bus)
Check whether we have enabled battery charging.
static int tps65090_fet_set(unsigned int bus, enum fet_id fet_id, int set)
Set the power state for a FET.
int tps65090_get_status(unsigned int bus)
Return the value of the status register.
static int tps65090_i2c_read(unsigned int bus, unsigned int reg_addr, unsigned char *value)
int tps65090_fet_is_enabled(unsigned int bus, enum fet_id fet_id)
Is FET enabled?
#define TPS65090_I2C_ADDR