forked from Minki/linux
2f77296d3d
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>
19 lines
455 B
C
19 lines
455 B
C
/* 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);
|
|
|
|
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
|