summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-07-11 07:58:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-11 07:58:33 +0200
commite54183d6d4eb575051e67a020094787c113f238d (patch)
tree3525f2ed456f71250abec15aa2f1a0d47e0c14be /include
parente2da792a523bf4366943545217fee574219b263f (diff)
parentad30a80ddb1bc2e7090768e575bb97f9f7be1255 (diff)
downloadbarebox-e54183d6d4eb575051e67a020094787c113f238d.tar.gz
barebox-e54183d6d4eb575051e67a020094787c113f238d.tar.xz
Merge branch 'for-next/mips'
Diffstat (limited to 'include')
-rw-r--r--include/of.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 8c8f57a7cc..ed6e870473 100644
--- a/include/of.h
+++ b/include/of.h
@@ -111,6 +111,7 @@ extern struct property *of_find_property(const struct device_node *np,
const char *name, int *lenp);
extern const void *of_get_property(const struct device_node *np,
const char *name, int *lenp);
+extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
extern int of_set_property(struct device_node *node, const char *p,
const void *val, int len, int create);
@@ -347,6 +348,12 @@ static inline const void *of_get_property(const struct device_node *np,
return NULL;
}
+static inline struct device_node *of_get_cpu_node(int cpu,
+ unsigned int *thread)
+{
+ return NULL;
+}
+
static inline int of_set_property(struct device_node *node, const char *p,
const void *val, int len, int create)
{
@@ -639,6 +646,9 @@ static inline struct device_node *of_find_node_by_path_or_alias(
#define for_each_node_by_name(dn, name) \
for (dn = of_find_node_by_name(NULL, name); dn; \
dn = of_find_node_by_name(dn, name))
+#define for_each_node_by_type(dn, type) \
+ for (dn = of_find_node_by_type(NULL, type); dn; \
+ dn = of_find_node_by_type(dn, type))
#define for_each_node_by_name_from(dn, root, name) \
for (dn = of_find_node_by_name(root, name); dn; \
dn = of_find_node_by_name(dn, name))