summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-scu.h
diff options
context:
space:
mode:
authorAisheng Dong <aisheng.dong@nxp.com>2018-12-13 16:43:01 +0100
committerStephen Boyd <sboyd@kernel.org>2018-12-14 22:00:51 +0100
commit2f77296d3df9915490f41fc8a971cba00e0b4a2c (patch)
treee46220c974f17bb437998db43d9c8446f6d6c7eb /drivers/clk/imx/clk-scu.h
parentclk: imx: add imx8qxp clk driver (diff)
downloadlinux-2f77296d3df9915490f41fc8a971cba00e0b4a2c.tar.xz
linux-2f77296d3df9915490f41fc8a971cba00e0b4a2c.zip
clk: imx: add lpcg clock support
The Low-Power Clock Gate (LPCG) modules contain a local programming model to control the clock gates for the peripherals. An LPCG module is used to locally gate the clocks for the associated peripheral. And they're bedind the SCU clock. Cc: Stephen Boyd <sboyd@kernel.org> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Michael Turquette <mturquette@baylibre.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-scu.h b/drivers/clk/imx/clk-scu.h
index 309b4de20b25..52c1746ec988 100644
--- a/drivers/clk/imx/clk-scu.h
+++ b/drivers/clk/imx/clk-scu.h
@@ -12,4 +12,7 @@
int imx_clk_scu_init(void);
struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id, u8 clk_type);
+struct clk_hw *imx_clk_lpcg_scu(const char *name, const char *parent_name,
+ unsigned long flags, void __iomem *reg,
+ u8 bit_idx, bool hw_gate);
#endif