diff options
Diffstat (limited to 'include/linux/of_graph.h')
-rw-r--r-- | include/linux/of_graph.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h index abdb02eaef06..3e058f05ab04 100644 --- a/include/linux/of_graph.h +++ b/include/linux/of_graph.h | |||
@@ -43,11 +43,15 @@ struct of_endpoint { | |||
43 | #ifdef CONFIG_OF | 43 | #ifdef CONFIG_OF |
44 | int of_graph_parse_endpoint(const struct device_node *node, | 44 | int of_graph_parse_endpoint(const struct device_node *node, |
45 | struct of_endpoint *endpoint); | 45 | struct of_endpoint *endpoint); |
46 | int of_graph_get_endpoint_count(const struct device_node *np); | ||
46 | struct device_node *of_graph_get_port_by_id(struct device_node *node, u32 id); | 47 | struct device_node *of_graph_get_port_by_id(struct device_node *node, u32 id); |
47 | struct device_node *of_graph_get_next_endpoint(const struct device_node *parent, | 48 | struct device_node *of_graph_get_next_endpoint(const struct device_node *parent, |
48 | struct device_node *previous); | 49 | struct device_node *previous); |
49 | struct device_node *of_graph_get_endpoint_by_regs( | 50 | struct device_node *of_graph_get_endpoint_by_regs( |
50 | const struct device_node *parent, int port_reg, int reg); | 51 | const struct device_node *parent, int port_reg, int reg); |
52 | struct device_node *of_graph_get_remote_endpoint( | ||
53 | const struct device_node *node); | ||
54 | struct device_node *of_graph_get_port_parent(struct device_node *node); | ||
51 | struct device_node *of_graph_get_remote_port_parent( | 55 | struct device_node *of_graph_get_remote_port_parent( |
52 | const struct device_node *node); | 56 | const struct device_node *node); |
53 | struct device_node *of_graph_get_remote_port(const struct device_node *node); | 57 | struct device_node *of_graph_get_remote_port(const struct device_node *node); |
@@ -61,6 +65,11 @@ static inline int of_graph_parse_endpoint(const struct device_node *node, | |||
61 | return -ENOSYS; | 65 | return -ENOSYS; |
62 | } | 66 | } |
63 | 67 | ||
68 | static inline int of_graph_get_endpoint_count(const struct device_node *np) | ||
69 | { | ||
70 | return 0; | ||
71 | } | ||
72 | |||
64 | static inline struct device_node *of_graph_get_port_by_id( | 73 | static inline struct device_node *of_graph_get_port_by_id( |
65 | struct device_node *node, u32 id) | 74 | struct device_node *node, u32 id) |
66 | { | 75 | { |
@@ -80,6 +89,18 @@ static inline struct device_node *of_graph_get_endpoint_by_regs( | |||
80 | return NULL; | 89 | return NULL; |
81 | } | 90 | } |
82 | 91 | ||
92 | static inline struct device_node *of_graph_get_remote_endpoint( | ||
93 | const struct device_node *node) | ||
94 | { | ||
95 | return NULL; | ||
96 | } | ||
97 | |||
98 | static inline struct device_node *of_graph_get_port_parent( | ||
99 | struct device_node *node) | ||
100 | { | ||
101 | return NULL; | ||
102 | } | ||
103 | |||
83 | static inline struct device_node *of_graph_get_remote_port_parent( | 104 | static inline struct device_node *of_graph_get_remote_port_parent( |
84 | const struct device_node *node) | 105 | const struct device_node *node) |
85 | { | 106 | { |