clk-scu.h (5392c5de096a1cad7cc06265a8cbf18de2da22c7) clk-scu.h (5964012ce37e66d2588a9bc82f7184a008851cac)
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2018 NXP
3 * Copyright 2018-2021 NXP
4 * Dong Aisheng <aisheng.dong@nxp.com>
5 */
6
7#ifndef __IMX_CLK_SCU_H
8#define __IMX_CLK_SCU_H
9
10#include <linux/firmware/imx/sci.h>
11#include <linux/of.h>
12
13#define IMX_SCU_GPR_CLK_GATE BIT(0)
14#define IMX_SCU_GPR_CLK_DIV BIT(1)
15#define IMX_SCU_GPR_CLK_MUX BIT(2)
16
4 * Dong Aisheng <aisheng.dong@nxp.com>
5 */
6
7#ifndef __IMX_CLK_SCU_H
8#define __IMX_CLK_SCU_H
9
10#include <linux/firmware/imx/sci.h>
11#include <linux/of.h>
12
13#define IMX_SCU_GPR_CLK_GATE BIT(0)
14#define IMX_SCU_GPR_CLK_DIV BIT(1)
15#define IMX_SCU_GPR_CLK_MUX BIT(2)
16
17struct imx_clk_scu_rsrc_table {
18 const u32 *rsrc;
19 u8 num;
20};
21
17extern struct list_head imx_scu_clks[];
18extern const struct dev_pm_ops imx_clk_lpcg_scu_pm_ops;
22extern struct list_head imx_scu_clks[];
23extern const struct dev_pm_ops imx_clk_lpcg_scu_pm_ops;
24extern const struct imx_clk_scu_rsrc_table imx_clk_scu_rsrc_imx8qxp;
19
25
20int imx_clk_scu_init(struct device_node *np);
26int imx_clk_scu_init(struct device_node *np,
27 const struct imx_clk_scu_rsrc_table *data);
21struct clk_hw *imx_scu_of_clk_src_get(struct of_phandle_args *clkspec,
22 void *data);
23struct clk_hw *imx_clk_scu_alloc_dev(const char *name,
24 const char * const *parents,
25 int num_parents, u32 rsrc_id, u8 clk_type);
26
27struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
28 const char * const *parents, int num_parents,

--- 62 unchanged lines hidden ---
28struct clk_hw *imx_scu_of_clk_src_get(struct of_phandle_args *clkspec,
29 void *data);
30struct clk_hw *imx_clk_scu_alloc_dev(const char *name,
31 const char * const *parents,
32 int num_parents, u32 rsrc_id, u8 clk_type);
33
34struct clk_hw *__imx_clk_scu(struct device *dev, const char *name,
35 const char * const *parents, int num_parents,

--- 62 unchanged lines hidden ---