Balint Dobszay | bd67074 | 2022-03-03 11:38:14 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: BSD-3-Clause */ |
| 2 | /* |
| 3 | * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #include <libfdt.h> |
| 7 | #include <stdbool.h> |
| 8 | |
| 9 | bool dt_get_u32(const void *fdt, int node, const char *prop_name, uint32_t *prop_val); |
| 10 | bool dt_get_u64(const void *fdt, int node, const char *prop_name, uint64_t *prop_val); |
Balint Dobszay | 9846a0d | 2023-04-18 18:08:28 +0200 | [diff] [blame] | 11 | bool dt_get_u32_by_offset(const void *fdt, int offset, const char **prop_name, uint32_t *prop_val); |
| 12 | bool dt_get_u64_by_offset(const void *fdt, int offset, const char **prop_name, uint64_t *prop_val); |