diff options
author | Simon Glass <sjg@chromium.org> | 2019-12-28 10:44:54 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-17 13:27:27 -0500 |
commit | 807765b0671d17943c9c1923e18d49ace479794e (patch) | |
tree | 7af28ab7f21c7d4d7214718c3d45c6e9f7a3d856 /include | |
parent | 4cf7f1298970d6ff78c3c8d0a761f33e67f3cb00 (diff) | |
download | u-boot-807765b0671d17943c9c1923e18d49ace479794e.zip u-boot-807765b0671d17943c9c1923e18d49ace479794e.tar.gz u-boot-807765b0671d17943c9c1923e18d49ace479794e.tar.bz2 |
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')
-rw-r--r-- | include/common.h | 12 | ||||
-rw-r--r-- | include/fdt_support.h | 14 |
2 files changed, 14 insertions, 12 deletions
diff --git a/include/common.h b/include/common.h index 4ee14f7..463eeb5 100644 --- a/include/common.h +++ b/include/common.h @@ -59,16 +59,6 @@ void hang (void) __attribute__ ((noreturn)); #include <display_options.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); - /* common/cmd_source.c */ int source (ulong addr, const char *fit_uname); @@ -90,8 +80,6 @@ void upmconfig (unsigned int, unsigned int *, unsigned int); ulong get_tbclk (void); void reset_misc (void); void reset_cpu (ulong addr); -void ft_cpu_setup(void *blob, bd_t *bd); -void ft_pci_setup(void *blob, bd_t *bd); /* $(CPU)/speed.c */ int get_clocks (void); diff --git a/include/fdt_support.h b/include/fdt_support.h index 3f4bc64..ba14acd 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, |