Aisheng Dong | fe37b48 | 2018-12-13 15:42:54 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2018 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 | |
| 12 | int imx_clk_scu_init(void); |
Aisheng Dong | 666aed2 | 2019-01-30 13:39:15 +0000 | [diff] [blame] | 13 | |
| 14 | struct clk_hw *__imx_clk_scu(const char *name, const char * const *parents, |
| 15 | int num_parents, u32 rsrc_id, u8 clk_type); |
| 16 | |
| 17 | static inline struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id, |
| 18 | u8 clk_type) |
| 19 | { |
| 20 | return __imx_clk_scu(name, NULL, 0, rsrc_id, clk_type); |
| 21 | } |
| 22 | |
| 23 | static inline struct clk_hw *imx_clk_scu2(const char *name, const char * const *parents, |
| 24 | int num_parents, u32 rsrc_id, u8 clk_type) |
| 25 | { |
| 26 | return __imx_clk_scu(name, parents, num_parents, rsrc_id, clk_type); |
| 27 | } |
Aisheng Dong | fe37b48 | 2018-12-13 15:42:54 +0000 | [diff] [blame] | 28 | |
Aisheng Dong | 2f77296 | 2018-12-13 15:43:01 +0000 | [diff] [blame] | 29 | struct clk_hw *imx_clk_lpcg_scu(const char *name, const char *parent_name, |
| 30 | unsigned long flags, void __iomem *reg, |
| 31 | u8 bit_idx, bool hw_gate); |
Aisheng Dong | fe37b48 | 2018-12-13 15:42:54 +0000 | [diff] [blame] | 32 | #endif |