Brooklyn/drivers/clk/imx/clk-scu.h

33 lines
879 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0+ */
/*
2021-09-23 21:59:15 +05:00
* Copyright 2018 NXP
2021-05-27 00:09:36 +05:00
* Dong Aisheng <aisheng.dong@nxp.com>
*/
#ifndef __IMX_CLK_SCU_H
#define __IMX_CLK_SCU_H
#include <linux/firmware/imx/sci.h>
2021-09-23 21:59:15 +05:00
int imx_clk_scu_init(void);
2021-09-23 21:59:15 +05:00
struct clk_hw *__imx_clk_scu(const char *name, const char * const *parents,
int num_parents, u32 rsrc_id, u8 clk_type);
2021-05-27 00:09:36 +05:00
static inline struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id,
u8 clk_type)
2021-05-27 00:09:36 +05:00
{
2021-09-23 21:59:15 +05:00
return __imx_clk_scu(name, NULL, 0, rsrc_id, clk_type);
2021-05-27 00:09:36 +05:00
}
static inline struct clk_hw *imx_clk_scu2(const char *name, const char * const *parents,
int num_parents, u32 rsrc_id, u8 clk_type)
2021-05-27 00:09:36 +05:00
{
2021-09-23 21:59:15 +05:00
return __imx_clk_scu(name, parents, num_parents, rsrc_id, clk_type);
}
2021-09-23 21:59:15 +05:00
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);
2021-05-27 00:09:36 +05:00
#endif