summaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:44:54 -0700
committerJagan Teki <jagan@amarulasolutions.com>2020-01-24 23:06:48 +0530
commit7fefef5078d427e5b9e22e19352d492029cea6f2 (patch)
tree7854de2410e873756cad33ab92e825684aae467f /include/fdt_support.h
parent1318a0efade80d853e27280adcaf4812d16c742f (diff)
common: Move device-tree setup functions to fdt_support.h
These functions relate to setting up the device tree for booting the OS. The fdt_support.h header file supports similar functions, so move these there. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 3f4bc643d4..ba14acd7f6 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -12,6 +12,20 @@
#include <asm/u-boot.h>
#include <linux/libfdt.h>
+/**
+ * arch_fixup_fdt() - Write arch-specific information to fdt
+ *
+ * Defined in arch/$(ARCH)/lib/bootm-fdt.c
+ *
+ * @blob: FDT blob to write to
+ * @return 0 if ok, or -ve FDT_ERR_... on failure
+ */
+int arch_fixup_fdt(void *blob);
+
+void ft_cpu_setup(void *blob, bd_t *bd);
+
+void ft_pci_setup(void *blob, bd_t *bd);
+
u32 fdt_getprop_u32_default_node(const void *fdt, int off, int cell,
const char *prop, const u32 dflt);
u32 fdt_getprop_u32_default(const void *fdt, const char *path,