summaryrefslogtreecommitdiff
path: root/lib/utils/fdt/fdt_fixup.c
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2021-07-10 19:18:12 +0300
committerAnup Patel <anup@brainfault.org>2021-07-11 07:57:57 +0300
commitae72ec091508196e29c07ae46bca106373d31e39 (patch)
tree52334794028e4e4f49206d7b4274476e4b108d62 /lib/utils/fdt/fdt_fixup.c
parent13d40f21d588e17a31624ed415f114987b6bd3d0 (diff)
downloadopensbi-ae72ec091508196e29c07ae46bca106373d31e39.tar.xz
utils: fdt: Add fdt helper functions to parse PMU DT nodes
The PMU DT node bindings are defined in docs/pmu_support.md Add few fdt helper functions to parse the DT node and update the event-counter mapping tables. Reviewed-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/utils/fdt/fdt_fixup.c')
-rw-r--r--lib/utils/fdt/fdt_fixup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/fdt/fdt_fixup.c b/lib/utils/fdt/fdt_fixup.c
index 1465500..ac01ba3 100644
--- a/lib/utils/fdt/fdt_fixup.c
+++ b/lib/utils/fdt/fdt_fixup.c
@@ -15,6 +15,7 @@
#include <sbi/sbi_scratch.h>
#include <sbi/sbi_string.h>
#include <sbi_utils/fdt/fdt_fixup.h>
+#include <sbi_utils/fdt/fdt_pmu.h>
#include <sbi_utils/fdt/fdt_helper.h>
void fdt_cpu_fixup(void *fdt)
@@ -263,6 +264,7 @@ void fdt_fixups(void *fdt)
fdt_plic_fixup(fdt);
fdt_reserved_memory_fixup(fdt);
+ fdt_pmu_fixup(fdt);
}