diff options
| author | Yu Chien Peter Lin <[email protected]> | 2023-11-30 20:42:08 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-06 17:59:44 +0530 |
| commit | 0b3262efc6bcde391da84e49ec978804cc6eac37 (patch) | |
| tree | 9505c7d95177f245cb21cdbeada3f90e0b2e75b3 | |
| parent | 535c661d87e1fc2ce31e08cab03fed0dd2742335 (diff) | |
lib: utils: fdt_fixup: Allow preserving PMU properties
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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
| -rw-r--r-- | lib/utils/fdt/Kconfig | 7 | ||||
| -rw-r--r-- | lib/utils/fdt/fdt_fixup.c | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/utils/fdt/Kconfig b/lib/utils/fdt/Kconfig index 23b003bf..9a42d158 100644 --- a/lib/utils/fdt/Kconfig +++ b/lib/utils/fdt/Kconfig @@ -15,4 +15,11 @@ config FDT_PMU 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 diff --git a/lib/utils/fdt/fdt_fixup.c b/lib/utils/fdt/fdt_fixup.c index e213dedb..5fc76738 100644 --- a/lib/utils/fdt/fdt_fixup.c +++ b/lib/utils/fdt/fdt_fixup.c @@ -394,5 +394,8 @@ void fdt_fixups(void *fdt) fdt_plic_fixup(fdt); fdt_reserved_memory_fixup(fdt); + +#ifndef CONFIG_FDT_FIXUPS_PRESERVE_PMU_NODE fdt_pmu_fixup(fdt); +#endif } |
