diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-10 08:54:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-18 13:54:38 +0200 |
commit | 874f318037b6941ad7261e398a03d177f3383eb1 (patch) | |
tree | 5901171cade532a2056103102a34d83ee3cc5114 /include/of.h | |
parent | da6c4b21a856139b709e466823e4e6ccaf5e195b (diff) | |
download | barebox-874f318037b6941ad7261e398a03d177f3383eb1.tar.gz barebox-874f318037b6941ad7261e398a03d177f3383eb1.tar.xz |
Add configurability via devicetree
This adds the possibility to configure the place for the environment
from the devicetree and to partition devices from the devicetree.
Configuration has the general form of devices with a regular compatible
property. This allows to later add additional drivers or drivers with
different behaviour (for example to add support for redundant environment).
The configuration is all in the /chosen/barebox/ hierarchy of the
devicetree. This separates the configuration from the hardware
description. Also it makes it possible to store the configuration
in a completely separate devicetree (or devicetree overlay). For
the same reason all configuration is done using nodepathes rather
than phandles.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 7b600f038b..b99f0b2dae 100644 --- a/include/of.h +++ b/include/of.h @@ -229,6 +229,8 @@ void *of_flatten_dtb(struct device_node *node); int of_add_memory(struct device_node *node, bool dump); void of_add_memory_bank(struct device_node *node, bool dump, int r, u64 base, u64 size); +struct device_d *of_find_device_by_node_path(const char *path); +int of_find_path(struct device_node *node, const char *propname, char **outpath); #else static inline int of_parse_partitions(struct cdev *cdev, struct device_node *node) |