From: 张晴 Date: Thu, 28 Mar 2013 06:22:15 +0000 (+0800) Subject: rk31xx:set tps65910 dc1 and dc2 in pwm mode X-Git-Tag: firefly_0821_release~7326 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df3a148654ec2a0b5100a88deb80f758079cd34a;p=firefly-linux-kernel-4.4.55.git rk31xx:set tps65910 dc1 and dc2 in pwm mode --- diff --git a/arch/arm/mach-rk30/board-pmu-tps65910.c b/arch/arm/mach-rk30/board-pmu-tps65910.c index ede21b277e56..f9062668e8c2 100755 --- a/arch/arm/mach-rk30/board-pmu-tps65910.c +++ b/arch/arm/mach-rk30/board-pmu-tps65910.c @@ -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= \