hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* 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, const char * const *parents,
                int num_parents, u32 rsrc_id, u8 clk_type);
 
static inline struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id,
                    u8 clk_type)
{
   return __imx_clk_scu(name, NULL, 0, rsrc_id, clk_type);
}
 
static inline struct clk_hw *imx_clk_scu2(const char *name, const char * const *parents,
                     int num_parents, u32 rsrc_id, u8 clk_type)
{
   return __imx_clk_scu(name, parents, num_parents, rsrc_id, 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