diff options
author | Aisheng Dong <aisheng.dong@nxp.com> | 2018-12-13 15:42:54 +0000 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-12-13 22:15:49 -0800 |
commit | fe37b482041709753365bfca739cba24ada297ef (patch) | |
tree | e4cc9beec27190aa013e6d19e145eecfc813fb46 /drivers/clk/imx/clk-scu.h | |
parent | 3a48d918a4615f0287ac2e106981b3987bf75a3d (diff) |
clk: imx: add scu clock common part
Add SCU clock common part which will be used by client clock drivers.
SCU clocks are totally different from the legacy clocks (No much
legacy things can be reused), it's using a firmware interface now based
on SCU protocol. So a new configuration option CONFIG_MXC_CLK_SCU is added.
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
[sboyd@kernel.org: Mark ccm_ipc_handle static]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk-scu.h')
-rw-r--r-- | drivers/clk/imx/clk-scu.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-scu.h b/drivers/clk/imx/clk-scu.h new file mode 100644 index 000000000000..309b4de20b25 --- /dev/null +++ b/drivers/clk/imx/clk-scu.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2018 NXP + * Dong Aisheng <aisheng.dong@nxp.com> + */ + +#ifndef __IMX_CLK_SCU_H +#define __IMX_CLK_SCU_H + +#include <linux/firmware/imx/sci.h> + +int imx_clk_scu_init(void); +struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id, u8 clk_type); + +#endif |