Commit 5d26f068 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Bjorn Andersson

remoteproc/davinci: prepare and unprepare the clock where needed

We're currently switching the platform to using the common clock
framework. We need to explicitly prepare and unprepare the rproc
clock.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: default avatarSuman Anna <s-anna@ti.com>
Reviewed-by: default avatarDavid Lechner <david@lechnology.com>
Reviewed-by: default avatarSekhar Nori <nsekhar@ti.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 2310eae9
......@@ -149,9 +149,9 @@ static int da8xx_rproc_start(struct rproc *rproc)
writel(rproc->bootaddr, drproc->bootreg);
ret = clk_enable(dsp_clk);
ret = clk_prepare_enable(dsp_clk);
if (ret) {
dev_err(dev, "clk_enable() failed: %d\n", ret);
dev_err(dev, "clk_prepare_enable() failed: %d\n", ret);
return ret;
}
......@@ -165,7 +165,7 @@ static int da8xx_rproc_stop(struct rproc *rproc)
struct da8xx_rproc *drproc = rproc->priv;
davinci_clk_reset_assert(drproc->dsp_clk);
clk_disable(drproc->dsp_clk);
clk_disable_unprepare(drproc->dsp_clk);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment