diff options
author | Elaine Zhang <zhangqing@rock-chips.com> | 2017-01-05 14:39:36 +0800 |
---|---|---|
committer | Huang, Tao <huangtao@rock-chips.com> | 2017-01-06 10:48:53 +0800 |
commit | 0536f308d8a988615ce2a1ae0e845deda13882b2 (patch) | |
tree | fd1196ad7bc98f5bb8387f52ac51b3f8bcd76b12 /drivers/clk/rockchip/clk.c | |
parent | 58e23d3e43bd9ffc408f057858570f8f731460fd (diff) |
clk: rockchip: fix up the pll-type for rk3328
fix up the pll type pll_rk3328 description and use.
add the other parts handling parents,like num_parents check
and the init.num_parents parameter.
add ctx->grf.
Change-Id: I17f1b0dc4b8286817f587e02fdea39f2d886f3d0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Diffstat (limited to 'drivers/clk/rockchip/clk.c')
-rw-r--r-- | drivers/clk/rockchip/clk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index f3d69aaa24aa..e96a2e187862 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -348,6 +348,8 @@ struct rockchip_clk_provider * __init rockchip_clk_init(struct device_node *np, ctx->cru_node = np; ctx->grf = ERR_PTR(-EPROBE_DEFER); spin_lock_init(&ctx->lock); + ctx->grf = syscon_regmap_lookup_by_phandle(ctx->cru_node, + "rockchip,grf"); return ctx; |