rk31xx:set tps65910 dc1 and dc2 in pwm mode

This commit is contained in:
张晴
2013-03-28 14:22:15 +08:00
parent 4c49ff60e4
commit df3a148654

View File

@@ -246,14 +246,14 @@ int tps65910_pre_init(struct tps65910 *tps65910){
#endif
#endif
/**********************set arm in pwm ****************/
/*****************set arm and logic (dc1&dc2)in pwm ****************/
val = tps65910_reg_read(tps65910, TPS65910_DCDCCTRL);
if (val<0) {
printk(KERN_ERR "Unable to read TPS65910_DCDCCTRL reg\n");
return val;
}
val &= ~(1<<4);
val &= ~(3<<4);
err = tps65910_reg_write(tps65910, TPS65910_DCDCCTRL, val);
if (err) {
printk(KERN_ERR "Unable to read TPS65910 Reg at offset 0x%x= \