Skip to content

Commit c3d06e9

Browse files
committed
[bsp][rockchip] fixup the drivers' configure
Signed-off-by: GuEe-GUI <2991707448@qq.com>
1 parent 8be4b05 commit c3d06e9

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

bsp/rockchip/dm/clk/clk-rk-gate.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
}
2929

3030
#define GATE_NO_SET_RATE(_id, cname, pname, f, o, b, gf) \
31-
(void *)&(struct rockchip_clk_cell) \
32-
{ \
33-
.cell.name = cname, \
34-
.cell.ops = &rockchip_gate_clk_ops, \
35-
.cell.parent_name = pname, \
36-
.cell.parents_nr = 1, \
37-
.cell.flags = f | RT_CLK_F_SET_RATE_PARENT, \
38-
.id = _id, \
39-
.gate_offset = o, \
40-
.gate_shift = b, \
41-
.gate_flags = gf, \
31+
(void *)&(struct rockchip_clk_cell) \
32+
{ \
33+
.cell.name = cname, \
34+
.cell.ops = &rockchip_gate_clk_ops, \
35+
.cell.parent_name = pname, \
36+
.cell.parents_nr = 1, \
37+
.cell.flags = (f) & ~RT_CLK_F_SET_RATE_PARENT, \
38+
.id = _id, \
39+
.gate_offset = o, \
40+
.gate_shift = b, \
41+
.gate_flags = gf, \
4242
}
4343

4444
extern const struct rt_clk_ops rockchip_gate_clk_ops;

bsp/rockchip/dm/regulator/regulator-rk8xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ static rt_err_t append_rk8xx_regulator(struct rk8xx *rk8xx, struct rt_ofw_node *
11151115
rgp = &rk8xx_reg->parent;
11161116
rgp->ops = rk8xx_reg->desc->ops;
11171117
rgp->param = &rk8xx_reg->param;
1118+
rgp->supply_name = rgp->param->name;
11181119
rgp->dev = &rk8xx_reg->device;
11191120

11201121
rgp->dev->ofw_node = np;

0 commit comments

Comments
 (0)