aboutsummaryrefslogtreecommitdiff
path: root/include/sbi_utils/fdt/fdt_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi_utils/fdt/fdt_helper.h')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 67251f8..d3b065a 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -10,6 +10,18 @@
#define __FDT_HELPER_H__
/**
+ * Fix up the CPU node in the device tree
+ *
+ * This routine updates the "status" property of a CPU node in the device tree
+ * to "disabled" if that hart is in disabled state in OpenSBI.
+ *
+ * It is recommended that platform codes call this helper in their final_init()
+ *
+ * @param fdt: device tree blob
+ */
+void fdt_cpu_fixup(void *fdt);
+
+/**
* Fix up the PLIC node in the device tree
*
* This routine updates the "interrupt-extended" property of the PLIC node in