Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
7933147e
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
7933147e
编写于
9月 09, 2019
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'regulator-5.3' into regulator-5.4
上级
6cbe29c9
3829100a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
38 addition
and
19 deletion
+38
-19
drivers/regulator/act8945a-regulator.c
drivers/regulator/act8945a-regulator.c
+4
-4
drivers/regulator/axp20x-regulator.c
drivers/regulator/axp20x-regulator.c
+5
-5
drivers/regulator/lp87565-regulator.c
drivers/regulator/lp87565-regulator.c
+4
-4
drivers/regulator/of_regulator.c
drivers/regulator/of_regulator.c
+3
-1
drivers/regulator/slg51000-regulator.c
drivers/regulator/slg51000-regulator.c
+2
-2
drivers/regulator/twl-regulator.c
drivers/regulator/twl-regulator.c
+20
-3
未找到文件。
drivers/regulator/act8945a-regulator.c
浏览文件 @
7933147e
...
...
@@ -169,16 +169,16 @@ static int act8945a_set_mode(struct regulator_dev *rdev, unsigned int mode)
reg
=
ACT8945A_DCDC3_CTRL
;
break
;
case
ACT8945A_ID_LDO1
:
reg
=
ACT8945A_LDO1_
SUS
;
reg
=
ACT8945A_LDO1_
CTRL
;
break
;
case
ACT8945A_ID_LDO2
:
reg
=
ACT8945A_LDO2_
SUS
;
reg
=
ACT8945A_LDO2_
CTRL
;
break
;
case
ACT8945A_ID_LDO3
:
reg
=
ACT8945A_LDO3_
SUS
;
reg
=
ACT8945A_LDO3_
CTRL
;
break
;
case
ACT8945A_ID_LDO4
:
reg
=
ACT8945A_LDO4_
SUS
;
reg
=
ACT8945A_LDO4_
CTRL
;
break
;
default:
return
-
EINVAL
;
...
...
drivers/regulator/axp20x-regulator.c
浏览文件 @
7933147e
...
...
@@ -174,14 +174,14 @@
#define AXP803_DCDC5_1140mV_STEPS 35
#define AXP803_DCDC5_1140mV_END \
(AXP803_DCDC5_1140mV_START + AXP803_DCDC5_1140mV_STEPS)
#define AXP803_DCDC5_NUM_VOLTAGES 6
8
#define AXP803_DCDC5_NUM_VOLTAGES 6
9
#define AXP803_DCDC6_600mV_START 0x00
#define AXP803_DCDC6_600mV_STEPS 50
#define AXP803_DCDC6_600mV_END \
(AXP803_DCDC6_600mV_START + AXP803_DCDC6_600mV_STEPS)
#define AXP803_DCDC6_1120mV_START 0x33
#define AXP803_DCDC6_1120mV_STEPS
14
#define AXP803_DCDC6_1120mV_STEPS
20
#define AXP803_DCDC6_1120mV_END \
(AXP803_DCDC6_1120mV_START + AXP803_DCDC6_1120mV_STEPS)
#define AXP803_DCDC6_NUM_VOLTAGES 72
...
...
@@ -240,7 +240,7 @@
#define AXP806_DCDCA_600mV_END \
(AXP806_DCDCA_600mV_START + AXP806_DCDCA_600mV_STEPS)
#define AXP806_DCDCA_1120mV_START 0x33
#define AXP806_DCDCA_1120mV_STEPS
14
#define AXP806_DCDCA_1120mV_STEPS
20
#define AXP806_DCDCA_1120mV_END \
(AXP806_DCDCA_1120mV_START + AXP806_DCDCA_1120mV_STEPS)
#define AXP806_DCDCA_NUM_VOLTAGES 72
...
...
@@ -774,8 +774,8 @@ static const struct regulator_linear_range axp806_dcdcd_ranges[] = {
AXP806_DCDCD_600mV_END
,
20000
),
REGULATOR_LINEAR_RANGE
(
1600000
,
AXP806_DCDCD_600mV_START
,
AXP806_DCDCD_600mV_END
,
AXP806_DCDCD_
1
600mV_START
,
AXP806_DCDCD_
1
600mV_END
,
100000
),
};
...
...
drivers/regulator/lp87565-regulator.c
浏览文件 @
7933147e
...
...
@@ -163,7 +163,7 @@ static int lp87565_regulator_probe(struct platform_device *pdev)
struct
lp87565
*
lp87565
=
dev_get_drvdata
(
pdev
->
dev
.
parent
);
struct
regulator_config
config
=
{
};
struct
regulator_dev
*
rdev
;
int
i
,
min_idx
=
LP87565_BUCK_0
,
max_idx
=
LP87565_BUCK_3
;
int
i
,
min_idx
,
max_idx
;
platform_set_drvdata
(
pdev
,
lp87565
);
...
...
@@ -182,9 +182,9 @@ static int lp87565_regulator_probe(struct platform_device *pdev)
max_idx
=
LP87565_BUCK_3210
;
break
;
default:
dev_err
(
lp87565
->
dev
,
"Invalid lp config %d
\n
"
,
lp87565
->
dev_type
)
;
return
-
EINVAL
;
min_idx
=
LP87565_BUCK_0
;
max_idx
=
LP87565_BUCK_3
;
break
;
}
for
(
i
=
min_idx
;
i
<=
max_idx
;
i
++
)
{
...
...
drivers/regulator/of_regulator.c
浏览文件 @
7933147e
...
...
@@ -416,8 +416,10 @@ device_node *regulator_of_get_init_node(struct device *dev,
if
(
!
name
)
name
=
child
->
name
;
if
(
!
strcmp
(
desc
->
of_match
,
name
))
if
(
!
strcmp
(
desc
->
of_match
,
name
))
{
of_node_put
(
search
);
return
of_node_get
(
child
);
}
}
of_node_put
(
search
);
...
...
drivers/regulator/slg51000-regulator.c
浏览文件 @
7933147e
...
...
@@ -205,7 +205,7 @@ static int slg51000_of_parse_cb(struct device_node *np,
ena_gpiod
=
devm_gpiod_get_from_of_node
(
chip
->
dev
,
np
,
"enable-gpios"
,
0
,
gflags
,
"gpio-en-ldo"
);
if
(
ena_gpiod
)
{
if
(
!
IS_ERR
(
ena_gpiod
)
)
{
config
->
ena_gpiod
=
ena_gpiod
;
devm_gpiod_unhinge
(
chip
->
dev
,
config
->
ena_gpiod
);
}
...
...
@@ -459,7 +459,7 @@ static int slg51000_i2c_probe(struct i2c_client *client,
GPIOD_OUT_HIGH
|
GPIOD_FLAGS_BIT_NONEXCLUSIVE
,
"slg51000-cs"
);
if
(
cs_gpiod
)
{
if
(
!
IS_ERR
(
cs_gpiod
)
)
{
dev_info
(
dev
,
"Found chip selector property
\n
"
);
chip
->
cs_gpiod
=
cs_gpiod
;
}
...
...
drivers/regulator/twl-regulator.c
浏览文件 @
7933147e
...
...
@@ -359,6 +359,17 @@ static const u16 VINTANA2_VSEL_table[] = {
2500
,
2750
,
};
/* 600mV to 1450mV in 12.5 mV steps */
static
const
struct
regulator_linear_range
VDD1_ranges
[]
=
{
REGULATOR_LINEAR_RANGE
(
600000
,
0
,
68
,
12500
)
};
/* 600mV to 1450mV in 12.5 mV steps, everything above = 1500mV */
static
const
struct
regulator_linear_range
VDD2_ranges
[]
=
{
REGULATOR_LINEAR_RANGE
(
600000
,
0
,
68
,
12500
),
REGULATOR_LINEAR_RANGE
(
1500000
,
69
,
69
,
12500
)
};
static
int
twl4030ldo_list_voltage
(
struct
regulator_dev
*
rdev
,
unsigned
index
)
{
struct
twlreg_info
*
info
=
rdev_get_drvdata
(
rdev
);
...
...
@@ -427,6 +438,8 @@ static int twl4030smps_get_voltage(struct regulator_dev *rdev)
}
static
const
struct
regulator_ops
twl4030smps_ops
=
{
.
list_voltage
=
regulator_list_voltage_linear_range
,
.
set_voltage
=
twl4030smps_set_voltage
,
.
get_voltage
=
twl4030smps_get_voltage
,
};
...
...
@@ -466,7 +479,8 @@ static const struct twlreg_info TWL4030_INFO_##label = { \
}, \
}
#define TWL4030_ADJUSTABLE_SMPS(label, offset, num, turnon_delay, remap_conf) \
#define TWL4030_ADJUSTABLE_SMPS(label, offset, num, turnon_delay, remap_conf, \
n_volt) \
static const struct twlreg_info TWL4030_INFO_##label = { \
.base = offset, \
.id = num, \
...
...
@@ -479,6 +493,9 @@ static const struct twlreg_info TWL4030_INFO_##label = { \
.owner = THIS_MODULE, \
.enable_time = turnon_delay, \
.of_map_mode = twl4030reg_map_mode, \
.n_voltages = n_volt, \
.n_linear_ranges = ARRAY_SIZE(label ## _ranges), \
.linear_ranges = label ## _ranges, \
}, \
}
...
...
@@ -518,8 +535,8 @@ TWL4030_ADJUSTABLE_LDO(VSIM, 0x37, 9, 100, 0x00);
TWL4030_ADJUSTABLE_LDO
(
VDAC
,
0x3b
,
10
,
100
,
0x08
);
TWL4030_ADJUSTABLE_LDO
(
VINTANA2
,
0x43
,
12
,
100
,
0x08
);
TWL4030_ADJUSTABLE_LDO
(
VIO
,
0x4b
,
14
,
1000
,
0x08
);
TWL4030_ADJUSTABLE_SMPS
(
VDD1
,
0x55
,
15
,
1000
,
0x08
);
TWL4030_ADJUSTABLE_SMPS
(
VDD2
,
0x63
,
16
,
1000
,
0x08
);
TWL4030_ADJUSTABLE_SMPS
(
VDD1
,
0x55
,
15
,
1000
,
0x08
,
68
);
TWL4030_ADJUSTABLE_SMPS
(
VDD2
,
0x63
,
16
,
1000
,
0x08
,
69
);
/* VUSBCP is managed *only* by the USB subchip */
TWL4030_FIXED_LDO
(
VINTANA1
,
0x3f
,
1500
,
11
,
100
,
0x08
);
TWL4030_FIXED_LDO
(
VINTDIG
,
0x47
,
1500
,
13
,
100
,
0x08
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录