summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2019-01-28 09:40:36 +0100
committerMario Six <mario.six@gdsys.cc>2019-05-21 07:52:34 +0200
commit487bb2bc85a51ce14bb27c183c9ab51090b632d0 (patch)
treea1c3abffb08c83edd7c97828a79c8c9a43b7c67e /drivers/clk
parent7e3974e1f404cf69cc37de408453bd7ddf6b4845 (diff)
mpc83xx_clk: Add enable method
Some DM drivers have hardcoded clk_enable calls when handling clocks (for example the fsl_esdhc driver). To work with these drivers, add an enable method to the MCP83xx clock driver (which does nothing, because the clocks are always enabled). Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/mpc83xx_clk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c
index 489004190e..32d2db9eda 100644
--- a/drivers/clk/mpc83xx_clk.c
+++ b/drivers/clk/mpc83xx_clk.c
@@ -275,6 +275,12 @@ static ulong mpc83xx_clk_get_rate(struct clk *clk)
return priv->speed[clk->id];
}
+static int mpc83xx_clk_enable(struct clk *clk)
+{
+ /* MPC83xx clocks are always enabled */
+ return 0;
+}
+
int get_clocks(void)
{
/* Empty implementation to keep the prototype in common.h happy */
@@ -301,6 +307,7 @@ int get_serial_clock(void)
const struct clk_ops mpc83xx_clk_ops = {
.request = mpc83xx_clk_request,
.get_rate = mpc83xx_clk_get_rate,
+ .enable = mpc83xx_clk_enable,
};
static const struct udevice_id mpc83xx_clk_match[] = {