Commit 734d21cc authored by Maxime Ripard's avatar Maxime Ripard Committed by Ulf Hansson

clk: sunxi-ng: Provide a default reset hook

The reset hook was left implemented. Provide a dumb implementation so that
client drivers can depend on it.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent d341ca88
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* the License, or (at your option) any later version. * the License, or (at your option) any later version.
*/ */
#include <linux/delay.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/reset-controller.h> #include <linux/reset-controller.h>
...@@ -49,7 +50,18 @@ static int ccu_reset_deassert(struct reset_controller_dev *rcdev, ...@@ -49,7 +50,18 @@ static int ccu_reset_deassert(struct reset_controller_dev *rcdev,
return 0; return 0;
} }
static int ccu_reset_reset(struct reset_controller_dev *rcdev,
unsigned long id)
{
ccu_reset_assert(rcdev, id);
udelay(10);
ccu_reset_deassert(rcdev, id);
return 0;
}
const struct reset_control_ops ccu_reset_ops = { const struct reset_control_ops ccu_reset_ops = {
.assert = ccu_reset_assert, .assert = ccu_reset_assert,
.deassert = ccu_reset_deassert, .deassert = ccu_reset_deassert,
.reset = ccu_reset_reset,
}; };
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