mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
MFD: TPS65910: Add support for TPS65911 device
The TPS65911 is the next generation of the TPS65910 family of PMIC chips. It adds a few features: - Watchdog Timer - PWM & LED generators - Comparators for system control status It also adds a set of Interrupts and GPIOs, among other things. The driver exports a function to identify between different versions of the tps65910 family, allowing other modules to identify the capabilities of the current chip. Signed-off-by: Jorge Eduardo Candelaria <[email protected]> Acked-by: Samuel Ortiz <[email protected]> Signed-off-by: Liam Girdwood <[email protected]>
This commit is contained in:
parent
3c24019dde
commit
795570561c
2 changed files with 49 additions and 1 deletions
|
|
@ -157,6 +157,7 @@ static int tps65910_i2c_probe(struct i2c_client *i2c,
|
|||
i2c_set_clientdata(i2c, tps65910);
|
||||
tps65910->dev = &i2c->dev;
|
||||
tps65910->i2c_client = i2c;
|
||||
tps65910->id = id->driver_data;
|
||||
tps65910->read = tps65910_i2c_read;
|
||||
tps65910->write = tps65910_i2c_write;
|
||||
mutex_init(&tps65910->io_mutex);
|
||||
|
|
@ -192,7 +193,8 @@ static int tps65910_i2c_remove(struct i2c_client *i2c)
|
|||
}
|
||||
|
||||
static const struct i2c_device_id tps65910_i2c_id[] = {
|
||||
{ "tps65910", 0 },
|
||||
{ "tps65910", TPS65910 },
|
||||
{ "tps65911", TPS65911 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, tps65910_i2c_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue