projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2c8edd
)
rk3288:syb827:set voltage by 10mv/2.4us
author
张晴
<zhangqing@rock-chips.com>
Mon, 28 Apr 2014 02:26:01 +0000
(10:26 +0800)
committer
张晴
<zhangqing@rock-chips.com>
Mon, 28 Apr 2014 02:26:01 +0000
(10:26 +0800)
drivers/regulator/syb827.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/syb827.c
b/drivers/regulator/syb827.c
index ec1ada5e11b394f768e9cb2eaeddb30618ed3216..5deee81604c8c9a6a90e815230face672bb16d68 100755
(executable)
--- a/
drivers/regulator/syb827.c
+++ b/
drivers/regulator/syb827.c
@@
-233,7
+233,7
@@
static int syb827_dcdc_set_voltage_time_sel(struct regulator_dev *dev, unsigne
if (new_volt < 0)
return new_volt;
- return DIV_ROUND_UP(abs(old_volt - new_volt), 10000);
+ return DIV_ROUND_UP(abs(old_volt - new_volt)
*4
, 10000);
}
static int syb827_dcdc_suspend_enable(struct regulator_dev *dev)
{
@@
-498,6
+498,8
@@
static int syb827_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *
printk("The device is not syb827 %x \n",ret);
goto err;
}
+
+ ret = syb827_set_bits(syb827,SYB827_CONTR_REG1,(1 << 6),(1<<6)); //10mv/2.4us
if (syb827->dev->of_node)
pdev = syb827_parse_dt(syb827);