Add a Kconfig option to control PMU fixup, so the next
stage software can dump the PMU node including event
mapping information for debugging purposes.
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
bool "FDT performance monitoring unit (PMU) support"
default n
+config FDT_FIXUPS_PRESERVE_PMU_NODE
+ bool "Preserve PMU node in device-tree"
+ depends on FDT_PMU
+ default n
+ help
+ Preserve PMU node properties for debugging purposes.
+
endif
fdt_plic_fixup(fdt);
fdt_reserved_memory_fixup(fdt);
+
+#ifndef CONFIG_FDT_FIXUPS_PRESERVE_PMU_NODE
fdt_pmu_fixup(fdt);
+#endif
}