summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-25 18:59:16 -0600
committerSimon Glass <sjg@chromium.org>2016-09-18 21:04:39 -0600
commitbabdbde68f1b993289462394f209f4010c761246 (patch)
tree4f058c7234cbb8ba2400447d9c9f8fabd6d85e8c /lib
parentda5f74998b9e5e6b706608a4ca625ef0ee195150 (diff)
downloadu-boot-imx-babdbde68f1b993289462394f209f4010c761246.zip
u-boot-imx-babdbde68f1b993289462394f209f4010c761246.tar.gz
u-boot-imx-babdbde68f1b993289462394f209f4010c761246.tar.bz2
dtoc: Support finding the offset of a property
Add a way to find the byte offset of a property within the device tree. This is only supported with the normal libfdt implementation since fdtget does not provide this information. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libfdt/libfdt.swig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfdt/libfdt.swig b/lib/libfdt/libfdt.swig
index 0cb7977..b24c72b 100644
--- a/lib/libfdt/libfdt.swig
+++ b/lib/libfdt/libfdt.swig
@@ -108,3 +108,6 @@ int fdt_delprop(void *fdt, int nodeoffset, const char *name);
const char *fdt_strerror(int errval);
int fdt_pack(void *fdt);
+
+int fdt_totalsize(const void *fdt);
+int fdt_off_dt_struct(const void *fdt);