blob: 66535ca21a6e0886e4115810f00469816f8cc46a [file] [log] [blame]
Balint Dobszaybd670742022-03-03 11:38:14 +01001/* 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
9bool dt_get_u32(const void *fdt, int node, const char *prop_name, uint32_t *prop_val);
10bool dt_get_u64(const void *fdt, int node, const char *prop_name, uint64_t *prop_val);
Balint Dobszay9846a0d2023-04-18 18:08:28 +020011bool dt_get_u32_by_offset(const void *fdt, int offset, const char **prop_name, uint32_t *prop_val);
12bool dt_get_u64_by_offset(const void *fdt, int offset, const char **prop_name, uint64_t *prop_val);