mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
rk2928:m720:compat pmic act8931 and tps65910
This commit is contained in:
@@ -262,6 +262,7 @@ CONFIG_MFD_TPS65910=y
|
||||
CONFIG_MFD_TPS65090=y
|
||||
CONFIG_REGULATOR=y
|
||||
CONFIG_REGULATOR_TPS65910=y
|
||||
CONFIG_REGULATOR_ACT8931=y
|
||||
CONFIG_RK30_PWM_REGULATOR=y
|
||||
CONFIG_MEDIA_SUPPORT=y
|
||||
CONFIG_VIDEO_DEV=y
|
||||
|
||||
@@ -562,6 +562,12 @@ static int __devinit act8931_i2c_probe(struct i2c_client *i2c, const struct i2c_
|
||||
act8931->dev = &i2c->dev;
|
||||
i2c_set_clientdata(i2c, act8931);
|
||||
mutex_init(&act8931->io_lock);
|
||||
|
||||
ret = act8931_reg_read(act8931,0x22);
|
||||
if ((ret < 0) || (ret == 0xff)){
|
||||
printk("The device is not act8931 \n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (pdata) {
|
||||
ret = setup_regulators(act8931, pdata);
|
||||
|
||||
Reference in New Issue
Block a user