aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/clk_fixed_rate.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-10-12 19:40:29 -0500
committerTom Rini <trini@konsulko.com>2021-10-19 11:25:25 -0400
commit17864406a4aa3286a8e9db6f577105e3e647c65f (patch)
tree549c7c27ad7db734c18fba3c4dd814229b18c5ce /drivers/clk/clk_fixed_rate.c
parentb20b16a794b073807ef8d6840772a92788b3e226 (diff)
downloadu-boot-17864406a4aa3286a8e9db6f577105e3e647c65f.zip
u-boot-17864406a4aa3286a8e9db6f577105e3e647c65f.tar.gz
u-boot-17864406a4aa3286a8e9db6f577105e3e647c65f.tar.bz2
clk: fixed_rate: add dummy disable() functionWIP/2021-10-19-assorted-changes
commit 6bf6d81c1112 ("clk: fixed_rate: add dummy enable() function") implemented .enable, so fixed rate clocks can be used where drivers might call clk_enable(). Implement the .disable op for the same reason; some drivers, e.g. USB PHYs, may attempt to disable clocks at runtime. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'drivers/clk/clk_fixed_rate.c')
-rw-r--r--drivers/clk/clk_fixed_rate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
index e0dc4ab..c5a2a42 100644
--- a/drivers/clk/clk_fixed_rate.c
+++ b/drivers/clk/clk_fixed_rate.c
@@ -26,6 +26,7 @@ static int dummy_enable(struct clk *clk)
const struct clk_ops clk_fixed_rate_ops = {
.get_rate = clk_fixed_rate_get_rate,
.enable = dummy_enable,
+ .disable = dummy_enable,
};
void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev,