diff options
author | Tom Rini <trini@konsulko.com> | 2017-11-22 07:28:58 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-11-22 07:28:58 -0500 |
commit | d9d76023ea0d567b0630e85d1bef67b5b1a788d3 (patch) | |
tree | 670247b653a049be8aceebc16bf9dcc1d112f9f4 /drivers/clk/rockchip/clk_rk3288.c | |
parent | 16fa2eb95172e63820ee5f3d4052f3362a6de84e (diff) | |
parent | 08790230fe80d46ff6368e0dc1e1be500ca3c4bf (diff) |
Merge git://git.denx.de/u-boot-rockchip
Diffstat (limited to 'drivers/clk/rockchip/clk_rk3288.c')
-rw-r--r-- | drivers/clk/rockchip/clk_rk3288.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index a133810bf6..ac53239363 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -859,11 +859,22 @@ static int rk3288_clk_probe(struct udevice *dev) static int rk3288_clk_bind(struct udevice *dev) { int ret; + struct udevice *sys_child; + struct sysreset_reg *priv; /* The reset driver does not have a device node, so bind it here */ - ret = device_bind_driver(gd->dm_root, "rk3288_sysreset", "reset", &dev); - if (ret) - debug("Warning: No RK3288 reset driver: ret=%d\n", ret); + ret = device_bind_driver(dev, "rockchip_sysreset", "sysreset", + &sys_child); + if (ret) { + debug("Warning: No sysreset driver: ret=%d\n", ret); + } else { + priv = malloc(sizeof(struct sysreset_reg)); + priv->glb_srst_fst_value = offsetof(struct rk3288_cru, + cru_glb_srst_fst_value); + priv->glb_srst_snd_value = offsetof(struct rk3288_cru, + cru_glb_srst_snd_value); + sys_child->priv = priv; + } return 0; } |