diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2023-01-31 09:46:37 +0100 |
---|---|---|
committer | Abel Vesa <abel.vesa@linaro.org> | 2023-01-31 13:45:14 +0100 |
commit | 7757731053406dd00ad39fd136092ff05ec6fffe (patch) | |
tree | b3e97d65e54b37881542fe08a59b7f2aa446f658 /drivers/clk/imx/clk.h | |
parent | clk: imx6q: add ethernet refclock mux support (diff) | |
download | linux-7757731053406dd00ad39fd136092ff05ec6fffe.tar.xz linux-7757731053406dd00ad39fd136092ff05ec6fffe.zip |
clk: imx: add imx_obtain_fixed_of_clock()
Add imx_obtain_fixed_of_clock() to optionally add clock not configured in
the devicetree.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230131084642.709385-15-o.rempel@pengutronix.de
Diffstat (limited to 'drivers/clk/imx/clk.h')
-rw-r--r-- | drivers/clk/imx/clk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index afc1ea0f5bcf..3d94722bbf99 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -288,6 +288,9 @@ struct clk * imx_obtain_fixed_clock( struct clk_hw *imx_obtain_fixed_clock_hw( const char *name, unsigned long rate); +struct clk_hw *imx_obtain_fixed_of_clock(struct device_node *np, + const char *name, unsigned long rate); + struct clk_hw *imx_get_clk_hw_by_name(struct device_node *np, const char *name); struct clk_hw *imx_clk_hw_gate_exclusive(const char *name, const char *parent, |