summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-07 00:15:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-09 20:58:27 +0200
commit3510a4b0f596e87c0e810abd8773eb09404bc9ac (patch)
treeb2060de3a194aab7d47a5843b2a4a2893187fd5b /include
parentb3dbaa9a60bb9a2bce9db50941450a6fd1dc6e19 (diff)
downloadbarebox-3510a4b0f596e87c0e810abd8773eb09404bc9ac.tar.gz
barebox-3510a4b0f596e87c0e810abd8773eb09404bc9ac.tar.xz
console/of: evaluate linux,stdout-path property
When a linux,stdout-path property is given in the devicetree activate the corresponding console. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 7b6a23ad71..e6342b667c 100644
--- a/include/of.h
+++ b/include/of.h
@@ -114,6 +114,7 @@ int of_parse_partitions(const char *cdevname,
struct device_node *of_get_root_node(void);
int of_alias_get_id(struct device_node *np, const char *stem);
+int of_device_is_stdout_path(struct device_d *dev);
#else
static inline int of_parse_partitions(const char *cdevname,
struct device_node *node)
@@ -130,6 +131,11 @@ static inline int of_alias_get_id(struct device_node *np, const char *stem)
{
return -ENOENT;
}
+
+static inline int of_device_is_stdout_path(struct device_d *dev)
+{
+ return 0;
+}
#endif
#endif /* __OF_H */