]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/linux/of_clk.h
1 /* SPDX-License-Identifier: GPL-2.0 */
6 #ifndef __LINUX_OF_CLK_H
7 #define __LINUX_OF_CLK_H
9 #if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF)
11 unsigned int of_clk_get_parent_count(struct device_node
*np
);
12 const char *of_clk_get_parent_name(struct device_node
*np
, int index
);
13 void of_clk_init(const struct of_device_id
*matches
);
15 #else /* !CONFIG_COMMON_CLK || !CONFIG_OF */
17 static inline unsigned int of_clk_get_parent_count(struct device_node
*np
)
21 static inline const char *of_clk_get_parent_name(struct device_node
*np
,
26 static inline void of_clk_init(const struct of_device_id
*matches
) {}
28 #endif /* !CONFIG_COMMON_CLK || !CONFIG_OF */
30 #endif /* __LINUX_OF_CLK_H */