diff options
Diffstat (limited to 'machine/fdt.c')
-rw-r--r-- | machine/fdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/machine/fdt.c b/machine/fdt.c index e8a504f..d5beda1 100644 --- a/machine/fdt.c +++ b/machine/fdt.c @@ -126,6 +126,11 @@ const uint32_t *fdt_get_size(const struct fdt_scan_node *node, const uint32_t *v return value; } +uint32_t fdt_get_value(const struct fdt_scan_prop *prop, uint32_t index) +{ + return bswap(prop->value[index]); +} + int fdt_string_list_index(const struct fdt_scan_prop *prop, const char *str) { const char *list = (const char *)prop->value; |