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:
bdc58cc
)
rk3368: pmic: rk818:adjust dcdc voltage step
author
zhangqing
<zhangqing@rock-chips.com>
Thu, 21 May 2015 18:56:16 +0000
(11:56 -0700)
committer
zhangqing
<zhangqing@rock-chips.com>
Thu, 21 May 2015 18:56:16 +0000
(11:56 -0700)
Signed-off-by: zhangqing <zhangqing@rock-chips.com>
drivers/mfd/rk818.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/rk818.c
b/drivers/mfd/rk818.c
index 71e4575fd8284c0bdc01f4e8759a3b082cf66e29..c72a04a555c21b9c8ca0e7098e2cf58f59fcf026 100755
(executable)
--- a/
drivers/mfd/rk818.c
+++ b/
drivers/mfd/rk818.c
@@
-119,7
+119,7
@@
const static int ldo_set_slp_vol_base_addr[] = {
#define rk818_LDO_SET_SLP_VOL_REG(x) (ldo_set_slp_vol_base_addr[x])
const static int buck_voltage_map[] = {
#define rk818_LDO_SET_SLP_VOL_REG(x) (ldo_set_slp_vol_base_addr[x])
const static int buck_voltage_map[] = {
- 7
00, 712, 725, 737, 750, 762, 775, 787, 800,
+ 7
12, 725, 737, 750, 762, 775, 787, 800,
812, 825, 837, 850,862, 875, 887, 900, 912,
925, 937, 950, 962, 975, 987, 1000, 1012, 1025,
1037, 1050,1062, 1075, 1087, 1100, 1112, 1125, 1137,
812, 825, 837, 850,862, 875, 887, 900, 912,
925, 937, 950, 962, 975, 987, 1000, 1012, 1025,
1037, 1050,1062, 1075, 1087, 1100, 1112, 1125, 1137,
@@
-383,7
+383,7
@@
static int rk818_dcdc_list_voltage(struct regulator_dev *dev, unsigned selector)
switch (buck) {
case 0:
case 1:
switch (buck) {
case 0:
case 1:
- volt = 7
000
00 + selector * 12500;
+ volt = 7
125
00 + selector * 12500;
break;
case 3:
volt = 1800000 + selector * 100000;
break;
case 3:
volt = 1800000 + selector * 100000;
@@
-446,10
+446,10
@@
static int rk818_dcdc_select_min_voltage(struct regulator_dev *dev,
u16 vsel =0;
if (buck == 0 || buck == 1){
u16 vsel =0;
if (buck == 0 || buck == 1){
- if (min_uV < 7
000
00)
+ if (min_uV < 7
125
00)
vsel = 0;
else if (min_uV <= 1500000)
vsel = 0;
else if (min_uV <= 1500000)
- vsel = ((min_uV - 7
000
00) / 12500) ;
+ vsel = ((min_uV - 7
125
00) / 12500) ;
else
return -EINVAL;
}
else
return -EINVAL;
}