Add fdt helper component
Add a new component that implements helper functions on top of libfdt.
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: I43a4562433b6e81d5f5e4944c2161d5b542f537b
diff --git a/components/common/fdt/fdt_helpers.h b/components/common/fdt/fdt_helpers.h
new file mode 100644
index 0000000..e3fc8fc
--- /dev/null
+++ b/components/common/fdt/fdt_helpers.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
+ */
+
+#include <libfdt.h>
+#include <stdbool.h>
+
+bool dt_get_u32(const void *fdt, int node, const char *prop_name, uint32_t *prop_val);
+bool dt_get_u64(const void *fdt, int node, const char *prop_name, uint64_t *prop_val);