summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-02-22 07:30:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-02-22 08:59:33 +0100
commit87d6abb654b993948a9eea2169ffe7d5fc631154 (patch)
treecc1e6cb79da2f556956ebb9d64a556da14d272f1 /include
parent28cc86df3d47838342140894db5b46e41b211f4e (diff)
downloadbarebox-87d6abb654b993948a9eea2169ffe7d5fc631154.tar.gz
barebox-87d6abb654b993948a9eea2169ffe7d5fc631154.tar.xz
pbl: provide externally visible fdt_find_mem
of_find_mem can be used for generic DT images for other architectures as well. To support this, move the definition, so it can be used by others in the future. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/pbl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pbl.h b/include/pbl.h
index 5e971f8656..194d5e7508 100644
--- a/include/pbl.h
+++ b/include/pbl.h
@@ -32,4 +32,6 @@ ssize_t pbl_fat_load(struct pbl_bio *, const char *filename, void *dest, size_t
#define IN_PBL 0
#endif
+void fdt_find_mem(const void *fdt, unsigned long *membase, unsigned long *memsize);
+
#endif /* __PBL_H__ */