diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2020-03-17 17:59:42 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-18 07:10:14 +0300 |
commit | 6af55769eb8cd5b9c7fdcd959586e0bc0fce3994 (patch) | |
tree | e73e27ae65e4baab3c9b19e38155ecef29fce88b /include/sbi_utils/fdt/fdt_helper.h | |
parent | 666be6d62beffc380faf8700cc532142222826d8 (diff) | |
download | opensbi-6af55769eb8cd5b9c7fdcd959586e0bc0fce3994.tar.xz |
lib: utils: Move PLIC DT fix up codes to fdt_helper.c
Now that we have a dedicated fdt_helper.c file for DT releated
helper routines, move plic_fdt_fixup() codes from plic.c to
fdt_helper.c and rename it to fdt_plic_fixup() at the same time,
to keep name consistency in the same file.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi_utils/fdt/fdt_helper.h')
-rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index a6c3073..67251f8 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -10,6 +10,19 @@ #define __FDT_HELPER_H__ /** + * Fix up the PLIC node in the device tree + * + * This routine updates the "interrupt-extended" property of the PLIC node in + * the device tree to hide the M-mode external interrupt from CPUs. + * + * It is recommended that platform codes call this helper in their final_init() + * + * @param fdt: device tree blob + * @param compat: PLIC node compatible string + */ +void fdt_plic_fixup(void *fdt, const char *compat); + +/** * Fix up the reserved memory node in the device tree * * This routine inserts a child node of the reserved memory node in the device |