diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-25 11:09:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-12 16:30:17 +0200 |
commit | 4dee9d16c01cec6f290f9ff25cda72416c8d2d3f (patch) | |
tree | 6ca40f110dfad0658f0f0749b2cd09d81d20f493 /include | |
parent | 9ddd7b037101828457867f21f54745f2f93a5406 (diff) | |
download | barebox-4dee9d16c01cec6f290f9ff25cda72416c8d2d3f.tar.gz barebox-4dee9d16c01cec6f290f9ff25cda72416c8d2d3f.tar.xz |
of: Add common device tree register function
The different architectures duplicate some code around unflattening and
registering the device tree. Add common functions to reduce this
duplication.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-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 d548e51789..1b3ceaff40 100644 --- a/include/of.h +++ b/include/of.h @@ -252,6 +252,8 @@ extern int of_modalias_node(struct device_node *node, char *modalias, int len); extern struct device_node *of_get_root_node(void); extern int of_set_root_node(struct device_node *node); +extern void barebox_register_of(struct device_node *root); +extern void barebox_register_fdt(const void *dtb); extern struct device_d *of_platform_device_create(struct device_node *np, struct device_d *parent); |