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>
This commit is contained in:
Simon Glass 2019-12-28 10:44:54 -07:00 committed by Tom Rini
parent 4cf7f12989
commit 807765b067
38 changed files with 50 additions and 12 deletions

View File

@ -9,6 +9,7 @@
#include <common.h>
#include <command.h>
#include <dm.h>
#include <fdt_support.h>
#include <dm/root.h>
#include <image.h>
#include <asm/byteorder.h>

View File

@ -12,6 +12,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <ioports.h>
#include <mpc83xx.h>
#include <asm/mpc8349_pci.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <irq_func.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <netdev.h>
#include <linux/compiler.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <i2c.h>
#include <asm/io.h>
#include <asm/arch/clock.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <i2c.h>
#include <asm/io.h>
#include <asm/arch/clock.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <asm/arch/immap_ls102xa.h>
#include <asm/arch/clock.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <asm/io.h>

View File

@ -2,6 +2,7 @@
/* Copyright 2016-2019 NXP Semiconductors
*/
#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <asm/arch-ls102xa/ls102xa_soc.h>
#include <asm/arch/ls102xa_devdis.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <asm/io.h>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <init.h>
#if defined(CONFIG_OF_LIBFDT)
#include <linux/libfdt.h>

View File

@ -12,6 +12,7 @@
#include <common.h>
#include <eeprom.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <ioports.h>
#include <mpc83xx.h>

View File

@ -6,6 +6,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <ioports.h>
#include <mpc83xx.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <ioports.h>
#include <mpc83xx.h>
#include <asm/mpc8349_pci.h>

View File

@ -4,6 +4,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <ioports.h>
#include <mpc83xx.h>
#include <i2c.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <netdev.h>
#include <linux/compiler.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <hwconfig.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <irq_func.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <netdev.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <dm.h>
#include <fdt_support.h>
#include <dm/platform_data/serial_pl01x.h>
#include <errno.h>
#include <malloc.h>

View File

@ -12,6 +12,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <mpc83xx.h>
#include <spi.h>
#include <linux/libfdt.h>

View File

@ -15,6 +15,7 @@
#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <ioports.h>
#include <mpc83xx.h>

View File

@ -9,6 +9,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <netdev.h>
#include <linux/compiler.h>

View File

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <ioports.h>
#include <mpc83xx.h>
#include <asm/mpc8349_pci.h>

View File

@ -10,6 +10,7 @@
#include <common.h>
#include <eeprom.h>
#include <env.h>
#include <fdt_support.h>
#include <i2c.h>
#include <init.h>
#include <linux/errno.h>

View File

@ -9,6 +9,7 @@
#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <palmas.h>
#include <sata.h>

View File

@ -11,6 +11,7 @@
*/
#include <common.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <palmas.h>
#include <sata.h>

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <ioports.h>
#include <mpc83xx.h>
#include <asm/mpc8349_pci.h>

View File

@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <env.h>
#include <fdt_support.h>
#include <init.h>
#include <netdev.h>
#include <linux/compiler.h>

View File

@ -9,6 +9,7 @@
*/
#include <common.h>
#include <fdt_support.h>
#include <init.h>
#include <linux/libfdt.h>
#include <pci.h>

View File

@ -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);

View File

@ -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,