diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-03 12:52:21 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-06 11:41:28 +0100 |
commit | 3b181a81091d51684f487470da27c56c87e5ecce (patch) | |
tree | c97a62d64ce91d39155d24cb264275f75e8439fd /include | |
parent | 43327fe3745bc044dee8b88b1d3593c53e721b4a (diff) | |
download | barebox-3b181a81091d51684f487470da27c56c87e5ecce.tar.gz barebox-3b181a81091d51684f487470da27c56c87e5ecce.tar.xz |
of: Add initrd helper
Add a helper to set the initrd properties in the unflattened tree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 6154490eb5..1562f4e2f6 100644 --- a/include/of.h +++ b/include/of.h @@ -68,6 +68,9 @@ struct driver_d; int of_match(struct device_d *dev, struct driver_d *drv); +int of_add_initrd(struct device_node *root, resource_size_t start, + resource_size_t end); + struct property *of_find_property(const struct device_node *node, const char *name); struct device_node *of_find_node_by_path(struct device_node *root, const char *path); |