0001
0002
0003
0004
0005
0006 #ifndef __LINUX_OF_CLK_H
0007 #define __LINUX_OF_CLK_H
0008
0009 struct device_node;
0010 struct of_device_id;
0011
0012 #if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF)
0013
0014 unsigned int of_clk_get_parent_count(const struct device_node *np);
0015 const char *of_clk_get_parent_name(const struct device_node *np, int index);
0016 void of_clk_init(const struct of_device_id *matches);
0017
0018 #else
0019
0020 static inline unsigned int of_clk_get_parent_count(const struct device_node *np)
0021 {
0022 return 0;
0023 }
0024 static inline const char *of_clk_get_parent_name(const struct device_node *np,
0025 int index)
0026 {
0027 return NULL;
0028 }
0029 static inline void of_clk_init(const struct of_device_id *matches) {}
0030
0031 #endif
0032
0033 #endif