diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-06 15:37:05 -0600 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-19 07:01:12 +0200 |
commit | 3848f14be42ef28a5f00b1ebab861ecfe06148c1 (patch) | |
tree | b82b72b0877f0995beb3bc6a52338f34e24df25b /cpukit/include/libfdt.h | |
parent | libfdt: Add fdt_check_full() function (diff) | |
download | rtems-3848f14be42ef28a5f00b1ebab861ecfe06148c1.tar.bz2 |
pylibfdt: Add functions to update properties
Allow updating and creating properties, including special methods for
integers.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'cpukit/include/libfdt.h')
-rw-r--r-- | cpukit/include/libfdt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/include/libfdt.h b/cpukit/include/libfdt.h index 79e4d82619..c99d28fea5 100644 --- a/cpukit/include/libfdt.h +++ b/cpukit/include/libfdt.h @@ -1345,10 +1345,13 @@ static inline int fdt_property_u64(void *fdt, const char *name, uint64_t val) fdt64_t tmp = cpu_to_fdt64(val); return fdt_property(fdt, name, &tmp, sizeof(tmp)); } + +#ifndef SWIG /* Not available in Python */ static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val) { return fdt_property_u32(fdt, name, val); } +#endif /** * fdt_property_placeholder - add a new property and return a ptr to its value |