libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Subsystems (33)
PATCH 1/1 libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from /usr/include/ instead of using internal ones.
This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.h
and replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h>
#include <libfdt_env.h> -> #include <linux/libfdt_env.h>
---
arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +- arch/arm/cpu/armv7/virt-dt.c | 2 +- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +- arch/arm/cpu/armv8/spin_table.c | 2 +- arch/arm/lib/bootm.c | 2 +- arch/arm/lib/psci-dt.c | 2 +- arch/arm/mach-imx/mx6/litesom.c | 2 +- arch/arm/mach-imx/mx6/opos6ul.c | 2 +- arch/arm/mach-meson/board.c | 2 +- arch/arm/mach-mvebu/arm64-common.c | 2 +- arch/arm/mach-mvebu/armada3700/cpu.c | 2 +- arch/arm/mach-mvebu/armada8k/cpu.c | 2 +- arch/arm/mach-omap2/am33xx/fdt.c | 2 +- arch/arm/mach-omap2/fdt-common.c | 2 +- arch/arm/mach-omap2/omap5/fdt.c | 2 +- arch/arm/mach-socfpga/misc.c | 2 +- arch/arm/mach-socfpga/misc_gen5.c | 2 +- arch/arm/mach-uniphier/board_late_init.c | 2 +- arch/arm/mach-uniphier/boards.c | 2 +- arch/powerpc/cpu/mpc83xx/cpu.c | 2 +- arch/powerpc/cpu/mpc83xx/fdt.c | 2 +- arch/powerpc/cpu/mpc83xx/pci.c | 2 +- arch/powerpc/cpu/mpc85xx/fdt.c | 2 +- arch/powerpc/cpu/mpc85xx/liodn.c | 2 +- arch/powerpc/cpu/mpc85xx/portals.c | 2 +- arch/powerpc/cpu/mpc86xx/fdt.c | 2 +- arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8xx/fdt.c | 2 +- arch/powerpc/cpu/mpc8xxx/fdt.c | 2 +- arch/powerpc/lib/bootm.c | 2 +- arch/sandbox/cpu/cpu.c | 2 +- arch/x86/cpu/intel_common/microcode.c | 2 +- board/Arcturus/ucp1020/ucp1020.c | 2 +- board/armltd/vexpress/vexpress_tc2.c | 2 +- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 2 +- board/el/el6x/el6x.c | 2 +- board/esd/vme8349/vme8349.c | 2 +- board/freescale/b4860qds/pci.c | 2 +- board/freescale/bsc9131rdb/bsc9131rdb.c | 2 +- board/freescale/bsc9132qds/bsc9132qds.c | 2 +- board/freescale/c29xpcie/c29xpcie.c | 2 +- board/freescale/common/cds_pci_ft.c | 2 +- board/freescale/common/fman.c | 4 +- board/freescale/common/p_corenet/pci.c | 2 +- board/freescale/common/sgmii_riser.c | 2 +- board/freescale/ls1043aqds/eth.c | 2 +- board/freescale/ls1088a/ls1088a.c | 2 +- board/freescale/ls2080a/ls2080a.c | 2 +- board/freescale/ls2080aqds/ls2080aqds.c | 2 +- board/freescale/ls2080ardb/ls2080ardb.c | 2 +- board/freescale/mpc8308rdb/mpc8308rdb.c | 2 +- board/freescale/mpc8313erdb/mpc8313erdb.c | 2 +- board/freescale/mpc8315erdb/mpc8315erdb.c | 2 +- board/freescale/mpc8323erdb/mpc8323erdb.c | 2 +- board/freescale/mpc832xemds/mpc832xemds.c | 2 +- board/freescale/mpc8349emds/mpc8349emds.c | 2 +- board/freescale/mpc8349itx/mpc8349itx.c | 2 +- board/freescale/mpc837xemds/mpc837xemds.c | 2 +- board/freescale/mpc8536ds/mpc8536ds.c | 2 +- board/freescale/mpc8541cds/mpc8541cds.c | 2 +- board/freescale/mpc8544ds/mpc8544ds.c | 2 +- board/freescale/mpc8548cds/mpc8548cds.c | 2 +- board/freescale/mpc8555cds/mpc8555cds.c | 2 +- board/freescale/mpc8568mds/mpc8568mds.c | 2 +- board/freescale/mpc8569mds/mpc8569mds.c | 2 +- board/freescale/mpc8572ds/mpc8572ds.c | 2 +- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 2 +- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 2 +- board/freescale/mx6sabreauto/mx6sabreauto.c | 2 +- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6slevk/mx6slevk.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +- board/freescale/p1010rdb/p1010rdb.c | 2 +- board/freescale/p1022ds/p1022ds.c | 2 +- board/freescale/p1023rdb/p1023rdb.c | 2 +- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 +- board/freescale/p1_twr/p1_twr.c | 2 +- board/freescale/qemu-ppce500/qemu-ppce500.c | 2 +- board/freescale/t102xqds/pci.c | 2 +- board/freescale/t102xrdb/pci.c | 2 +- board/freescale/t1040qds/pci.c | 2 +- board/freescale/t104xrdb/pci.c | 2 +- board/freescale/t208xqds/pci.c | 2 +- board/freescale/t208xrdb/pci.c | 2 +- board/freescale/t4qds/pci.c | 2 +- board/freescale/t4rdb/pci.c | 2 +- board/gdsys/mpc8308/hrcon.c | 2 +- board/gdsys/mpc8308/strider.c | 2 +- board/gdsys/p1022/controlcenterd.c | 2 +- board/ids/ids8313/ids8313.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- board/keymile/kmp204x/pci.c | 2 +- board/liebherr/display5/spl.c | 2 +- board/mpc8308_p1m/mpc8308_p1m.c | 2 +- board/phytec/pcm058/pcm058.c | 2 +- board/phytec/pfla02/pfla02.c | 2 +- board/sbc8349/sbc8349.c | 2 +- board/sbc8548/sbc8548.c | 2 +- board/sbc8641d/sbc8641d.c | 2 +- board/socrates/socrates.c | 2 +- board/sunxi/board.c | 2 +- board/toradex/apalis_imx6/apalis_imx6.c | 2 +- board/toradex/colibri_imx6/colibri_imx6.c | 2 +- board/toradex/common/tdx-common.c | 2 +- board/tqc/tqma6/tqma6.c | 2 +- board/tqc/tqma6/tqma6_mba6.c | 2 +- board/tqc/tqma6/tqma6_wru4.c | 2 +- board/udoo/neo/neo.c | 2 +- board/varisys/cyrus/pci.c | 2 +- board/ve8313/ve8313.c | 2 +- board/vscom/baltos/board.c | 2 +- board/xes/common/fsl_8xxx_pci.c | 2 +- board/xes/xpedite520x/xpedite520x.c | 2 +- board/xes/xpedite537x/xpedite537x.c | 2 +- board/xes/xpedite550x/xpedite550x.c | 2 +- cmd/bootefi.c | 4 +- cmd/fdt.c | 2 +- cmd/spl.c | 2 +- common/board_info.c | 2 +- common/boot_fit.c | 2 +- common/bootm_os.c | 2 +- common/bootstage.c | 2 +- common/common_fit.c | 2 +- common/fdt_support.c | 2 +- common/image-fdt.c | 2 +- common/image.c | 2 +- common/lcd_simplefb.c | 2 +- common/spl/spl_fat.c | 2 +- common/spl/spl_fit.c | 2 +- common/spl/spl_nand.c | 2 +- common/spl/spl_net.c | 2 +- common/spl/spl_ram.c | 2 +- common/spl/spl_ymodem.c | 2 +- drivers/core/of_access.c | 2 +- drivers/core/of_addr.c | 2 +- drivers/core/of_extra.c | 2 +- drivers/core/ofnode.c | 2 +- drivers/core/regmap.c | 2 +- drivers/core/root.c | 2 +- drivers/core/util.c | 2 +- drivers/crypto/fsl/sec.c | 2 +- drivers/firmware/psci.c | 2 +- drivers/misc/fsl_portals.c | 2 +- drivers/mmc/exynos_dw_mmc.c | 2 +- drivers/mmc/rockchip_sdhci.c | 2 +- drivers/mmc/s5p_sdhci.c | 2 +- drivers/mmc/sdhci-cadence.c | 2 +- drivers/mmc/socfpga_dw_mmc.c | 2 +- drivers/mmc/stm32_sdmmc2.c | 2 +- drivers/mmc/xenon_sdhci.c | 2 +- drivers/mmc/zynq_sdhci.c | 2 +- drivers/mtd/spi/sunxi_spi_spl.c | 2 +- drivers/net/fsl-mc/mc.c | 2 +- drivers/pci/fsl_pci_init.c | 2 +- drivers/pci/pci-emul-uclass.c | 2 +- drivers/pci/pcie_layerscape_fixup.c | 2 +- drivers/phy/sti_usb_phy.c | 2 +- drivers/pinctrl/pinctrl-single.c | 2 +- drivers/pinctrl/pinctrl-uclass.c | 2 +- drivers/power/pmic/act8846.c | 2 +- drivers/power/pmic/rn5t567.c | 2 +- drivers/power/regulator/pwm_regulator.c | 2 +- drivers/qe/fdt.c | 2 +- drivers/sound/sound-i2s.c | 2 +- drivers/usb/common/common.c | 2 +- drivers/usb/host/dwc3-sti-glue.c | 2 +- drivers/usb/host/ehci-exynos.c | 2 +- drivers/usb/host/ehci-msm.c | 2 +- drivers/usb/host/ehci-tegra.c | 2 +- drivers/usb/host/ehci-vf.c | 2 +- drivers/usb/host/xhci-exynos5.c | 2 +- drivers/usb/phy/rockchip_usb2_phy.c | 2 +- drivers/video/exynos/exynos_dp.c | 2 +- drivers/video/exynos/exynos_dp_lowlevel.c | 2 +- drivers/video/exynos/exynos_fb.c | 2 +- drivers/video/exynos/exynos_mipi_dsi.c | 2 +- include/fdt_support.h | 2 +- include/fdtdec.h | 2 +- include/image.h | 2 +- include/libfdt.h | 318 ---------------------- include/libfdt_env.h | 5 - include/linux/libfdt.h | 307 +++++++++++++++++++++ include/linux/libfdt_env.h | 9 + lib/efi_loader/efi_boottime.c | 2 +- lib/efi_loader/efi_memory.c | 2 +- lib/fdtdec.c | 2 +- lib/fdtdec_common.c | 2 +- lib/fdtdec_test.c | 2 +- lib/libfdt/Makefile | 2 + lib/libfdt/fdt_region.c | 4 +- lib/libfdt/fdt_ro.c | 4 +- lib/of_live.c | 2 +- tools/dtoc/dtb_platdata.py | 2 +- tools/dtoc/test_dtoc.py | 2 +- tools/fdt_host.h | 2 +- tools/ifdtool.c | 2 +- 197 files changed, 514 insertions(+), 519 deletions(-) delete mode 100644 include/libfdt.h delete mode 100644 include/libfdt_env.h
arch/arm/cpu/armv7/ls102xa/fdt.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/io.h> #include <asm/processor.h>
arch/arm/cpu/armv7/virt-dt.c +1 -1
@@ -21,7 +21,7 @@#include <linux/ctype.h> #include <linux/types.h> #include <asm/global_data.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/armv7.h> #include <asm/psci.h>
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +1 -1
@@ -6,7 +6,7 @@#include <common.h> #include <efi_loader.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <phy.h> #ifdef CONFIG_FSL_LSCH3
arch/arm/cpu/armv8/spin_table.c +1 -1
@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/spin_table.h> int spin_table_update_dt (void *fdt)
arch/arm/lib/bootm.c +1 -1
@@ -19,7 +19,7 @@#include <image.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mapmem.h> #include <fdt_support.h> #include <asm/bootm.h>
arch/arm/lib/psci-dt.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <linux/sizes.h> #include <linux/kernel.h>
arch/arm/mach-imx/mx6/litesom.c +1 -1
@@ -77,7 +77,7 @@ int litesom_mmc_init(bd_t *bis)#endif #ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/mx6-ddr.h>
arch/arm/mach-imx/mx6/opos6ul.c +1 -1
@@ -154,7 +154,7 @@ int dram_init(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <asm/arch/opos6ul.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #define USDHC_PAD_CTRL ( \
arch/arm/mach-meson/board.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <asm/arch/gxbb.h> #include <asm/arch/sm.h>
arch/arm/mach-mvebu/arm64-common.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <asm/io.h> #include <asm/system.h>
arch/arm/mach-mvebu/armada3700/cpu.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> #include <asm/system.h> #include <asm/arch/cpu.h>
arch/arm/mach-mvebu/armada8k/cpu.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> #include <asm/system.h> #include <asm/arch/cpu.h>
arch/arm/mach-omap2/am33xx/fdt.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <malloc.h>
arch/arm/mach-omap2/fdt-common.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/omap_common.h>
arch/arm/mach-omap2/omap5/fdt.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <malloc.h>
arch/arm/mach-socfpga/misc.c +1 -1
@@ -8,7 +8,7 @@#include <asm/io.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <altera.h> #include <miiphy.h> #include <netdev.h>
arch/arm/mach-socfpga/misc_gen5.c +1 -1
@@ -8,7 +8,7 @@#include <asm/io.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <altera.h> #include <miiphy.h> #include <netdev.h>
arch/arm/mach-uniphier/board_late_init.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <nand.h> #include <stdio.h> #include <linux/io.h>
arch/arm/mach-uniphier/boards.c +1 -1
@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/kernel.h> #include "init.h"
arch/powerpc/cpu/mpc83xx/cpu.c +1 -1
@@ -15,7 +15,7 @@#include <command.h> #include <mpc83xx.h> #include <asm/processor.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <tsec.h> #include <netdev.h> #include <fsl_esdhc.h>
arch/powerpc/cpu/mpc83xx/fdt.c +1 -1
@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h>
arch/powerpc/cpu/mpc83xx/pci.c +1 -1
@@ -11,7 +11,7 @@#include <pci.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #endif
arch/powerpc/cpu/mpc85xx/fdt.c +1 -1
@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> #include <linux/ctype.h>
arch/powerpc/cpu/mpc85xx/liodn.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/portals.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h>
arch/powerpc/cpu/mpc86xx/fdt.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/mp.h>
arch/powerpc/cpu/mpc8xx/cpu.c +1 -1
@@ -28,7 +28,7 @@#include <asm/io.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #endif
arch/powerpc/cpu/mpc8xx/fdt.c +1 -1
@@ -7,7 +7,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> DECLARE_GLOBAL_DATA_PTR ;
arch/powerpc/cpu/mpc8xxx/fdt.c +1 -1
@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/mp.h> #include <asm/fsl_serdes.h>
arch/powerpc/lib/bootm.c +1 -1
@@ -22,7 +22,7 @@#include <vxworks.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #endif
arch/sandbox/cpu/cpu.c +1 -1
@@ -6,7 +6,7 @@#include <common.h> #include <dm.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <os.h> #include <asm/io.h> #include <asm/state.h>
arch/x86/cpu/intel_common/microcode.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/cpu.h> #include <asm/microcode.h> #include <asm/msr.h>
board/Arcturus/ucp1020/ucp1020.c +1 -1
@@ -15,7 +15,7 @@#include <pci.h> #include <i2c.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/armltd/vexpress/vexpress_tc2.c +1 -1
@@ -11,7 +11,7 @@#include <asm/io.h> #include <asm/u-boot.h> #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define SCC_BASE 0x7fff0000
board/congatec/cgtqmx6eval/cgtqmx6eval.c +1 -1
@@ -767,7 +767,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spi_flash.h> #include <spi.h>
board/el/el6x/el6x.c +1 -1
@@ -481,7 +481,7 @@ int checkboard(void)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> const struct mx6dq_iomux_ddr_regs mx6_ddr_ioregs = { .dram_sdclk_0 = 0x00020030,
board/esd/vme8349/vme8349.c +1 -1
@@ -17,7 +17,7 @@#include <mpc83xx.h> #include <asm/mpc8349_pci.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif #include <asm/io.h> #include <asm/mmu.h>
board/freescale/b4860qds/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/bsc9131rdb/bsc9131rdb.c +1 -1
@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/bsc9132qds/bsc9132qds.c +1 -1
@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/c29xpcie/c29xpcie.c +1 -1
@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/common/cds_pci_ft.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "cadmus.h"
board/freescale/common/fman.c +2 -2
@@ -5,8 +5,8 @@*/ #include <common.h> -#include <libfdt.h> -#include <libfdt_env.h> +#include <linux/libfdt.h> +#include <linux/libfdt_env.h> #include <fdt_support.h> #include <fm_eth.h>
board/freescale/common/p_corenet/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/common/sgmii_riser.c +1 -1
@@ -15,7 +15,7 @@#include <config.h> #include <common.h> #include <net.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <tsec.h> #include <fdt_support.h>
board/freescale/ls1043aqds/eth.c +1 -1
@@ -11,7 +11,7 @@#include <fm_eth.h> #include <fsl_mdio.h> #include <fsl_dtsec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <asm/arch/fsl_serdes.h>
board/freescale/ls1088a/ls1088a.c +1 -1
@@ -13,7 +13,7 @@#include <fsl_sec.h> #include <asm/io.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <asm/arch-fsl-layerscape/soc.h>
board/freescale/ls2080a/ls2080a.c +1 -1
@@ -11,7 +11,7 @@#include <fsl_ddr.h> #include <asm/io.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <asm/arch/soc.h>
board/freescale/ls2080aqds/ls2080aqds.c +1 -1
@@ -11,7 +11,7 @@#include <fsl_ddr.h> #include <asm/io.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <i2c.h>
board/freescale/ls2080ardb/ls2080ardb.c +1 -1
@@ -13,7 +13,7 @@#include <asm/io.h> #include <hwconfig.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <efi_loader.h>
board/freescale/mpc8308rdb/mpc8308rdb.c +1 -1
@@ -9,7 +9,7 @@#include <hwconfig.h> #include <i2c.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h>
board/freescale/mpc8313erdb/mpc8313erdb.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif #include <pci.h> #include <mpc83xx.h>
board/freescale/mpc8315erdb/mpc8315erdb.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <hwconfig.h> #include <i2c.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h>
board/freescale/mpc8323erdb/mpc8323erdb.c +1 -1
@@ -15,7 +15,7 @@#include <i2c.h> #include <miiphy.h> #include <command.h> -#include <libfdt.h> +#include <linux/libfdt.h> #if defined(CONFIG_PCI )#include <pci.h> #endif
board/freescale/mpc832xemds/mpc832xemds.c +1 -1
@@ -17,7 +17,7 @@#endif #include <asm/mmu.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif #if defined(CONFIG_PQ_MDS_PIB )#include "../common/pq-mds-pib.h"
board/freescale/mpc8349emds/mpc8349emds.c +1 -1
@@ -19,7 +19,7 @@#endif #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif DECLARE_GLOBAL_DATA_PTR ;
board/freescale/mpc8349itx/mpc8349itx.c +1 -1
@@ -17,7 +17,7 @@#include <spd_sdram.h> #include <asm/mmu.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif DECLARE_GLOBAL_DATA_PTR ;
board/freescale/mpc837xemds/mpc837xemds.c +1 -1
@@ -12,7 +12,7 @@#include <asm/fsl_mpc83xx_serdes.h> #include <spd_sdram.h> #include <tsec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_esdhc.h> #include <fsl_mdio.h>
board/freescale/mpc8536ds/mpc8536ds.c +1 -1
@@ -17,7 +17,7 @@#include <asm/fsl_serdes.h> #include <spd.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spd_sdram.h> #include <fdt_support.h> #include <fsl_mdio.h>
board/freescale/mpc8541cds/mpc8541cds.c +1 -1
@@ -14,7 +14,7 @@#include <fsl_ddr_sdram.h> #include <ioports.h> #include <spd_sdram.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "../common/cadmus.h"
board/freescale/mpc8544ds/mpc8544ds.c +1 -1
@@ -15,7 +15,7 @@#include <asm/fsl_serdes.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/mpc8548cds/mpc8548cds.c +1 -1
@@ -15,7 +15,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <tsec.h> #include <fsl_mdio.h>
board/freescale/mpc8555cds/mpc8555cds.c +1 -1
@@ -12,7 +12,7 @@#include <fsl_ddr_sdram.h> #include <ioports.h> #include <spd_sdram.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "../common/cadmus.h"
board/freescale/mpc8568mds/mpc8568mds.c +1 -1
@@ -17,7 +17,7 @@#include <spd_sdram.h> #include <i2c.h> #include <ioports.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "bcsr.h"
board/freescale/mpc8569mds/mpc8569mds.c +1 -1
@@ -21,7 +21,7 @@#include <spd_sdram.h> #include <i2c.h> #include <ioports.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_esdhc.h> #include <phy.h>
board/freescale/mpc8572ds/mpc8572ds.c +1 -1
@@ -16,7 +16,7 @@#include <asm/io.h> #include <asm/fsl_serdes.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <tsec.h> #include <fsl_mdio.h>
board/freescale/mpc8610hpcd/mpc8610hpcd.c +1 -1
@@ -14,7 +14,7 @@#include <asm/fsl_serdes.h> #include <i2c.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <spd_sdram.h> #include <netdev.h>
board/freescale/mpc8641hpcn/mpc8641hpcn.c +1 -1
@@ -12,7 +12,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <netdev.h>
board/freescale/mx6sabreauto/mx6sabreauto.c +1 -1
@@ -734,7 +734,7 @@ int board_ehci_power(int port, int on)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT int spl_start_uboot (void )
board/freescale/mx6sabresd/mx6sabresd.c +1 -1
@@ -725,7 +725,7 @@ int checkboard(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT int spl_start_uboot (void )
board/freescale/mx6slevk/mx6slevk.c +1 -1
@@ -254,7 +254,7 @@ int checkboard(void)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define USDHC1_CD_GPIO IMX_GPIO_NR(4, 7)#define USDHC2_CD_GPIO IMX_GPIO_NR(5, 0)
board/freescale/mx6sxsabresd/mx6sxsabresd.c +1 -1
@@ -347,7 +347,7 @@ int checkboard(void) }#ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/mx6-ddr.h>
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +1 -1
@@ -696,7 +696,7 @@ int checkboard(void) }#ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/mx6-ddr.h>
board/freescale/p1010rdb/p1010rdb.c +1 -1
@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/p1022ds/p1022ds.c +1 -1
@@ -17,7 +17,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/p1023rdb/p1023rdb.c +1 -1
@@ -19,7 +19,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_portals.h> #include <fsl_qbman.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <netdev.h> #include <malloc.h>
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +1 -1
@@ -20,7 +20,7 @@#include <asm/fsl_lbc.h> #include <asm/mp.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/p1_twr/p1_twr.c +1 -1
@@ -20,7 +20,7 @@#include <asm/fsl_lbc.h> #include <asm/mp.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/freescale/qemu-ppce500/qemu-ppce500.c +1 -1
@@ -11,7 +11,7 @@#include <asm/mmu.h> #include <asm/fsl_pci.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <netdev.h> #include <fdtdec.h>
board/freescale/t102xqds/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t102xrdb/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t1040qds/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t104xrdb/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t208xqds/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t208xrdb/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t4qds/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/freescale/t4rdb/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/gdsys/mpc8308/hrcon.c +1 -1
@@ -9,7 +9,7 @@#include <hwconfig.h> #include <i2c.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h>
board/gdsys/mpc8308/strider.c +1 -1
@@ -9,7 +9,7 @@#include <hwconfig.h> #include <i2c.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h>
board/gdsys/p1022/controlcenterd.c +1 -1
@@ -32,7 +32,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h>
board/ids/ids8313/ids8313.c +1 -1
@@ -15,7 +15,7 @@#include <common.h> #include <mpc83xx.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR ;/** CPLD contains the info about:
board/keymile/km83xx/km83xx.c +1 -1
@@ -23,7 +23,7 @@#include <asm/mmu.h> #include <asm/processor.h> #include <pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <post.h> #include "../common/common.h"
board/keymile/kmp204x/pci.c +1 -1
@@ -11,7 +11,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> #include <linux/errno.h>
board/liebherr/display5/spl.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/mx6-ddr.h>
board/mpc8308_p1m/mpc8308_p1m.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <i2c.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h>
board/phytec/pcm058/pcm058.c +1 -1
@@ -397,7 +397,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> static const struct mx6dq_iomux_ddr_regs mx6_ddr_ioregs = { .dram_sdclk_0 = 0x00000030,
board/phytec/pfla02/pfla02.c +1 -1
@@ -400,7 +400,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define MX6_PHYFLEX_ERR006282 IMX_GPIO_NR(2, 11)static void phyflex_err006282_workaround (void )
board/sbc8349/sbc8349.c +1 -1
@@ -16,7 +16,7 @@#include <spd_sdram.h> #include <miiphy.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif DECLARE_GLOBAL_DATA_PTR ;
board/sbc8548/sbc8548.c +1 -1
@@ -21,7 +21,7 @@#include <netdev.h> #include <tsec.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> DECLARE_GLOBAL_DATA_PTR ;
board/sbc8641d/sbc8641d.c +1 -1
@@ -20,7 +20,7 @@#include <asm/fsl_pci.h> #include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> DECLARE_GLOBAL_DATA_PTR ;
board/socrates/socrates.c +1 -1
@@ -17,7 +17,7 @@#include <asm/immap_85xx.h> #include <ioports.h> #include <flash.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/io.h> #include <i2c.h>
board/sunxi/board.c +1 -1
@@ -29,7 +29,7 @@#include <asm/io.h> #include <crc.h> #include <environment.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <nand.h> #include <net.h> #include <spl.h>
board/toradex/apalis_imx6/apalis_imx6.c +1 -1
@@ -892,7 +892,7 @@ void ldo_mode_set(int ldo_bypass)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "asm/arch/mx6q-ddr.h" #include "asm/arch/iomux.h" #include "asm/arch/crm_regs.h"
board/toradex/colibri_imx6/colibri_imx6.c +1 -1
@@ -743,7 +743,7 @@ void ldo_mode_set(int ldo_bypass)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "asm/arch/mx6dl-ddr.h" #include "asm/arch/iomux.h" #include "asm/arch/crm_regs.h"
board/toradex/common/tdx-common.c +1 -1
@@ -6,7 +6,7 @@#include <common.h> #include <g_dnl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "tdx-cfg-block.h" #include <asm/setup.h>
board/tqc/tqma6/tqma6.c +1 -1
@@ -20,7 +20,7 @@#include <asm/mach-imx/spi.h> #include <common.h> #include <fsl_esdhc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <i2c.h> #include <mmc.h> #include <power/pfuze100_pmic.h>
board/tqc/tqma6/tqma6_mba6.c +1 -1
@@ -20,7 +20,7 @@#include <common.h> #include <fsl_esdhc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <i2c.h> #include <micrel.h>
board/tqc/tqma6/tqma6_wru4.c +1 -1
@@ -23,7 +23,7 @@#include <common.h> #include <fsl_esdhc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <i2c.h> #include <micrel.h>
board/udoo/neo/neo.c +1 -1
@@ -445,7 +445,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/arch/mx6-ddr.h> static const struct mx6sx_iomux_ddr_regs mx6_ddr_ioregs = {
board/varisys/cyrus/pci.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h>
board/ve8313/ve8313.c +1 -1
@@ -10,7 +10,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <mpc83xx.h> #include <ns16550.h>
board/vscom/baltos/board.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/cpu.h> #include <asm/arch/hardware.h>
board/xes/common/fsl_8xxx_pci.c +1 -1
@@ -11,7 +11,7 @@#include <asm/fsl_serdes.h> #include <asm/io.h> #include <linux/compiler.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h>
board/xes/xpedite520x/xpedite520x.c +1 -1
@@ -14,7 +14,7 @@#include <asm/io.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pca953x.h>
board/xes/xpedite537x/xpedite537x.c +1 -1
@@ -12,7 +12,7 @@#include <asm/fsl_pci.h> #include <asm/io.h> #include <asm/cache.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pca953x.h>
board/xes/xpedite550x/xpedite550x.c +1 -1
@@ -12,7 +12,7 @@#include <asm/fsl_pci.h> #include <asm/io.h> #include <asm/cache.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pca953x.h>
cmd/bootefi.c +2 -2
@@ -13,8 +13,8 @@#include <efi_loader.h> #include <efi_selftest.h> #include <errno.h> -#include <libfdt.h> -#include <libfdt_env.h> +#include <linux/libfdt.h> +#include <linux/libfdt_env.h> #include <memalign.h> #include <asm/global_data.h> #include <asm-generic/sections.h>
cmd/fdt.c +1 -1
@@ -13,7 +13,7 @@#include <linux/ctype.h> #include <linux/types.h> #include <asm/global_data.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <mapmem.h> #include <asm/io.h>
cmd/spl.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <command.h> #include <cmd_spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR ;
common/board_info.c +1 -1
@@ -3,7 +3,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/compiler.h> int __weak checkboard (void )
common/boot_fit.c +1 -1
@@ -11,7 +11,7 @@#include <common.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> static int fdt_offset (const void *fit) {
common/bootm_os.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <bootm.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <vxworks.h>
common/bootstage.c +1 -1
@@ -11,7 +11,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <linux/compiler.h>
common/common_fit.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> ulong fdt_getprop_u32 (const void *fdt,int node,const char *prop)
common/fdt_support.c +1 -1
@@ -13,7 +13,7 @@#include <linux/ctype.h> #include <linux/types.h> #include <asm/global_data.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <exports.h> #include <fdtdec.h>
common/image-fdt.c +1 -1
@@ -13,7 +13,7 @@#include <fdt_support.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mapmem.h> #include <asm/io.h>
common/image.c +1 -1
@@ -22,7 +22,7 @@#include <mapmem.h> #if IMAGE_ENABLE_FIT ||IMAGE_ENABLE_OF_LIBFDT -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fpga.h> #include <xilinx.h>
common/lcd_simplefb.c +1 -1
@@ -11,7 +11,7 @@#include <dm.h> #include <lcd.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <video.h> DECLARE_GLOBAL_DATA_PTR ;
common/spl/spl_fat.c +1 -1
@@ -15,7 +15,7 @@#include <fat.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> static int fat_registered;
common/spl/spl_fit.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #ifndef CONFIG_SYS_BOOTM_LEN
common/spl/spl_nand.c +1 -1
@@ -9,7 +9,7 @@#include <spl.h> #include <asm/io.h> #include <nand.h> -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #include <fdt.h> #if defined(CONFIG_SPL_NAND_RAW_ONLY )
common/spl/spl_net.c +1 -1
@@ -11,7 +11,7 @@#include <errno.h> #include <spl.h> #include <net.h> -#include <libfdt.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR ;
common/spl/spl_ram.c +1 -1
@@ -14,7 +14,7 @@#include <binman_sym.h> #include <mapmem.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifndef CONFIG_SPL_LOAD_FIT_ADDRESS # define CONFIG_SPL_LOAD_FIT_ADDRESS 0
common/spl/spl_ymodem.c +1 -1
@@ -14,7 +14,7 @@#include <xyzModem.h> #include <asm/u-boot.h> #include <asm/utils.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define BUF_SIZE 1024
drivers/core/of_access.c +1 -1
@@ -21,7 +21,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <linux/ctype.h> #include <linux/err.h>
drivers/core/of_addr.c +1 -1
@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_addr.h> #include <linux/err.h>
drivers/core/of_extra.c +1 -1
@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_extra.h> #include <dm/ofnode.h>
drivers/core/ofnode.c +1 -1
@@ -9,7 +9,7 @@#include <dm.h> #include <fdtdec.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_addr.h> #include <dm/ofnode.h>
drivers/core/regmap.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <dm.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> #include <regmap.h>
drivers/core/root.c +1 -1
@@ -11,7 +11,7 @@#include <errno.h> #include <fdtdec.h> #include <malloc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/device.h> #include <dm/device-internal.h> #include <dm/lists.h>
drivers/core/util.c +1 -1
@@ -6,7 +6,7 @@#include <common.h> #include <dm/util.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <vsprintf.h> #ifdef CONFIG_DM_WARN
drivers/crypto/fsl/sec.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #if CONFIG_SYS_FSL_SEC_COMPAT ==2 ||CONFIG_SYS_FSL_SEC_COMPAT >=4 #include <fsl_sec.h>
drivers/firmware/psci.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <dm.h> #include <dm/lists.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/arm-smccc.h> #include <linux/errno.h> #include <linux/printk.h>
drivers/misc/fsl_portals.c +1 -1
@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h>
drivers/mmc/exynos_dw_mmc.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <dwmmc.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <errno.h> #include <asm/arch/dwmmc.h>
drivers/mmc/rockchip_sdhci.c +1 -1
@@ -9,7 +9,7 @@#include <common.h> #include <dm.h> #include <dt-structs.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> #include <sdhci.h>
drivers/mmc/s5p_sdhci.c +1 -1
@@ -10,7 +10,7 @@#include <malloc.h> #include <sdhci.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/gpio.h> #include <asm/arch/mmc.h> #include <asm/arch/clk.h>
drivers/mmc/sdhci-cadence.c +1 -1
@@ -11,7 +11,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/sizes.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mmc.h> #include <sdhci.h>
drivers/mmc/socfpga_dw_mmc.c +1 -1
@@ -11,7 +11,7 @@#include <dwmmc.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <malloc.h>
drivers/mmc/stm32_sdmmc2.c +1 -1
@@ -9,7 +9,7 @@#include <clk.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mmc.h> #include <reset.h> #include <asm/io.h>
drivers/mmc/xenon_sdhci.c +1 -1
@@ -18,7 +18,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <sdhci.h>
drivers/mmc/zynq_sdhci.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <sdhci.h>
drivers/mtd/spi/sunxi_spi_spl.c +1 -1
@@ -8,7 +8,7 @@#include <spl.h> #include <asm/gpio.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT #error CONFIG_SPL_OS_BOOT is not supported yet
drivers/net/fsl-mc/mc.c +1 -1
@@ -8,7 +8,7 @@#include <errno.h> #include <linux/bug.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <net.h> #include <fdt_support.h> #include <fsl-mc/fsl_mc.h>
drivers/pci/fsl_pci_init.c +1 -1
@@ -886,7 +886,7 @@ int fsl_pcie_init_board(int busno)#endif #ifdef CONFIG_OF_BOARD_SETUP -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> void ft_fsl_pci_setup(void *blob, const char *pci_compat,
drivers/pci/pci-emul-uclass.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <dm/lists.h>
drivers/pci/pcie_layerscape_fixup.c +1 -1
@@ -12,7 +12,7 @@#include <asm/io.h> #include <errno.h> #ifdef CONFIG_OF_BOARD_SETUP -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #ifdef CONFIG_ARM #include <asm/arch/clock.h>
drivers/phy/sti_usb_phy.c +1 -1
@@ -12,7 +12,7 @@#include <errno.h> #include <fdtdec.h> #include <generic-phy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <regmap.h> #include <reset-uclass.h> #include <syscon.h>
drivers/pinctrl/pinctrl-single.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <dm/pinctrl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR ;
drivers/pinctrl/pinctrl-uclass.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <linux/list.h> #include <dm.h>
drivers/power/pmic/act8846.c +1 -1
@@ -9,7 +9,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <power/act8846_pmic.h> #include <power/pmic.h>
drivers/power/pmic/rn5t567.c +1 -1
@@ -9,7 +9,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <power/rn5t567_pmic.h> #include <power/pmic.h>
drivers/power/regulator/pwm_regulator.c +1 -1
@@ -13,7 +13,7 @@#include <errno.h> #include <pwm.h> #include <power/regulator.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fdtdec.h>
drivers/qe/fdt.c +1 -1
@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_qe.h>
drivers/sound/sound-i2s.c +1 -1
@@ -8,7 +8,7 @@#include <malloc.h> #include <common.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #include <i2c.h> #include <i2s.h>
drivers/usb/common/common.c +1 -1
@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/usb/otg.h> DECLARE_GLOBAL_DATA_PTR ;
drivers/usb/host/dwc3-sti-glue.c +1 -1
@@ -12,7 +12,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/lists.h> #include <regmap.h> #include <reset-uclass.h>
drivers/usb/host/ehci-exynos.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <usb.h> #include <asm/arch/cpu.h>
drivers/usb/host/ehci-msm.c +1 -1
@@ -12,7 +12,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <usb.h> #include <usb/ehci-ci.h> #include <usb/ulpi.h>
drivers/usb/host/ehci-tegra.c +1 -1
@@ -16,7 +16,7 @@#include <asm/arch-tegra/clk_rst.h> #include <usb.h> #include <usb/ulpi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "ehci.h"
drivers/usb/host/ehci-vf.c +1 -1
@@ -20,7 +20,7 @@#include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/regs-usbphy.h> #include <usb/ehci-ci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #include "ehci.h"
drivers/usb/host/xhci-exynos5.c +1 -1
@@ -16,7 +16,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <usb.h> #include <watchdog.h>
drivers/usb/phy/rockchip_usb2_phy.c +1 -1
@@ -6,7 +6,7 @@#include <common.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "../gadget/dwc2_udc_otg_priv.h"
drivers/video/exynos/exynos_dp.c +1 -1
@@ -11,7 +11,7 @@#include <common.h> #include <display.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <video_bridge.h> #include <linux/compat.h>
drivers/video/exynos/exynos_dp_lowlevel.c +1 -1
@@ -13,7 +13,7 @@#include <asm/arch/dp_info.h> #include <asm/arch/dp.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "exynos_dp_lowlevel.h" /* Declare global data pointer */
drivers/video/exynos/exynos_fb.c +1 -1
@@ -13,7 +13,7 @@#include <div64.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <panel.h> #include <video.h> #include <video_bridge.h>
drivers/video/exynos/exynos_mipi_dsi.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <malloc.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/compat.h> #include <linux/err.h> #include <asm/arch/dsim.h>
include/fdt_support.h +1 -1
@@ -10,7 +10,7 @@#ifdef CONFIG_OF_LIBFDT -#include <libfdt.h> +#include <linux/libfdt.h> u32 fdt_getprop_u32_default_node (const void *fdt,int off,int cell,const char *prop,const u32 dflt);
include/fdtdec.h +1 -1
@@ -14,7 +14,7 @@* changes to support FDT are minimized. */ -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> /*
include/image.h +1 -1
@@ -53,7 +53,7 @@ struct lmb;#if IMAGE_ENABLE_FIT #include <hash.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> # ifdef CONFIG_SPL_BUILD # ifdef CONFIG_SPL_CRC32_SUPPORT
include/libfdt.h deleted +0 -318
318 lines not on this page · raw message
include/libfdt_env.h deleted +0 -5
@@ -1,5 +0,0 @@ -#ifdef USE_HOSTCC -#include "../scripts/dtc/libfdt/libfdt_env.h" -#else -#include <linux/libfdt_env.h> -#endif
include/linux/libfdt.h +307 -0
314 lines not on this page · raw message
include/linux/libfdt_env.h +9 -0
@@ -1,3 +1,11 @@ +#ifdef USE_HOSTCC +#include "../scripts/dtc/libfdt/libfdt_env.h" +#else +/* +* This position of the include guard is intentional. +* Using the same guard name as that of scripts/dtc/libfdt/libfdt_env.h +* prevents it from being included. +*/ #ifndef _LIBFDT_ENV_H#define _LIBFDT_ENV_H
@@ -20,3 +28,4 @@ typedef __be64 fdt64_t;#define strtoul (cp, endp, base) simple_strtoul(cp, endp, base)#endif /* _LIBFDT_ENV_H */ +#endif
lib/efi_loader/efi_boottime.c +1 -1
@@ -12,7 +12,7 @@#include <environment.h> #include <malloc.h> #include <asm/global_data.h> -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #include <u-boot/crc.h> #include <bootm.h> #include <inttypes.h>
lib/efi_loader/efi_memory.c +1 -1
@@ -10,7 +10,7 @@#include <efi_loader.h> #include <malloc.h> #include <asm/global_data.h> -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #include <linux/list_sort.h> #include <inttypes.h> #include <watchdog.h>
lib/fdtdec.c +1 -1
@@ -11,7 +11,7 @@#include <errno.h> #include <fdtdec.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <serial.h> #include <asm/sections.h> #include <linux/ctype.h>
lib/fdtdec_common.c +1 -1
@@ -10,7 +10,7 @@#ifndef USE_HOSTCC #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #else #include "libfdt.h"
lib/fdtdec_test.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <os.h>
lib/libfdt/Makefile +2 -0
@@ -23,3 +23,5 @@ obj-y += fdt_ro.o # U-Boot own file obj-y += fdt_region.o + +ccflags-y := -I$(srctree)/scripts/dtc/libfdt
lib/libfdt/fdt_region.c +2 -2
@@ -5,11 +5,11 @@* SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause */ -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #ifndef USE_HOSTCC #include <fdt.h> -#include <libfdt.h> +#include <linux/libfdt.h> #else #include "fdt_host.h" #endif
lib/libfdt/fdt_ro.c +2 -2
@@ -3,11 +3,11 @@* Copyright (C) 2006 David Gibson, IBM Corporation. * SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause */ -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #ifndef USE_HOSTCC #include <fdt.h> -#include <libfdt.h> +#include <linux/libfdt.h> #else #include "fdt_host.h" #endif
lib/of_live.c +1 -1
@@ -10,7 +10,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <of_live.h> #include <malloc.h> #include <dm/of_access.h>
tools/dtoc/dtb_platdata.py +1 -1
@@ -422,7 +422,7 @@ class DtbPlatdata(object): """ self.out_header() self.out('#include <stdbool.h>\n') - self.out('#include <libfdt.h>\n') + self.out('#include <linux/libfdt.h>\n') # Output the struct definition for name in sorted(structs):
tools/dtoc/test_dtoc.py +1 -1
@@ -33,7 +33,7 @@ HEADER = '''/* */ #include <stdbool.h> -#include <libfdt.h>''' +#include <linux/libfdt.h>''' C_HEADER = '''/* * DO NOT MODIFY
tools/fdt_host.h +1 -1
@@ -8,7 +8,7 @@#define __FDT_HOST_H__/* Make sure to include u-boot version of libfdt include files */ -#include "../include/libfdt.h" +#include "../include/linux/libfdt.h" #include "../include/fdt_support.h" /**
tools/ifdtool.c +1 -1
@@ -19,7 +19,7 @@#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "ifdtool.h" #undef DEBUG
Signature · 1 line
2.7.4
PATCH 1/1 libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Le 04/03/2018 à 17:20, Masahiro Yamada a écrit :
Quoted 12 lines
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from
/usr/include/instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h> #include <libfdt_env.h> -> #include <linux/libfdt_env.h>
Quoted 6 lines
Reported-by Thomas Petazzoni <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>---
arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8xx/fdt.c | 2 +-
For the 2 above files:
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
Quoted 8 lines · Masahiro Yamada
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from
/usr/include/instead of using internal ones.This commit moves the header code:
include/libfdt.h->include/linux/libfdt.h
include/libfdt_env.h->include/linux/libfdt_env.h
Quoted 6 lines
and replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h>
#include <libfdt_env.h> -> #include <linux/libfdt_env.h>Reported-by Thomas Petazzoni <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180305/bf669bad/attachment.sig>
PATCH 1/1 libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
In reply to Masahiro YamadaHi,
Quoted 3 lines · Masahiro Yamada
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from
/usr/include/instead of using internal ones.
Sorry for being late to the party here, but isn't this issue fixed by the patch I sent a few days ago "tools: Include U-Boot libfdt headers from their actual path": https://patchwork.ozlabs.org/patch/880924/ ?
I doubt we need to keep both changes here. What do you think?
Quoted 3,743 lines
This commit moves the header code:
include/libfdt.h->include/linux/libfdt.h
include/libfdt_env.h->include/linux/libfdt_env.hand replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h>
#include <libfdt_env.h> -> #include <linux/libfdt_env.h>Reported-by Thomas Petazzoni <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>---
arch/arm/cpu/armv7/ls102xa/fdt.c | 2 +- arch/arm/cpu/armv7/virt-dt.c | 2 +- arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +- arch/arm/cpu/armv8/spin_table.c | 2 +- arch/arm/lib/bootm.c | 2 +- arch/arm/lib/psci-dt.c | 2 +- arch/arm/mach-imx/mx6/litesom.c | 2 +- arch/arm/mach-imx/mx6/opos6ul.c | 2 +- arch/arm/mach-meson/board.c | 2 +- arch/arm/mach-mvebu/arm64-common.c | 2 +- arch/arm/mach-mvebu/armada3700/cpu.c | 2 +- arch/arm/mach-mvebu/armada8k/cpu.c | 2 +- arch/arm/mach-omap2/am33xx/fdt.c | 2 +- arch/arm/mach-omap2/fdt-common.c | 2 +- arch/arm/mach-omap2/omap5/fdt.c | 2 +- arch/arm/mach-socfpga/misc.c | 2 +- arch/arm/mach-socfpga/misc_gen5.c | 2 +- arch/arm/mach-uniphier/board_late_init.c | 2 +- arch/arm/mach-uniphier/boards.c | 2 +- arch/powerpc/cpu/mpc83xx/cpu.c | 2 +- arch/powerpc/cpu/mpc83xx/fdt.c | 2 +- arch/powerpc/cpu/mpc83xx/pci.c | 2 +- arch/powerpc/cpu/mpc85xx/fdt.c | 2 +- arch/powerpc/cpu/mpc85xx/liodn.c | 2 +- arch/powerpc/cpu/mpc85xx/portals.c | 2 +- arch/powerpc/cpu/mpc86xx/fdt.c | 2 +- arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- arch/powerpc/cpu/mpc8xx/fdt.c | 2 +- arch/powerpc/cpu/mpc8xxx/fdt.c | 2 +- arch/powerpc/lib/bootm.c | 2 +- arch/sandbox/cpu/cpu.c | 2 +- arch/x86/cpu/intel_common/microcode.c | 2 +- board/Arcturus/ucp1020/ucp1020.c | 2 +- board/armltd/vexpress/vexpress_tc2.c | 2 +- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 2 +- board/el/el6x/el6x.c | 2 +- board/esd/vme8349/vme8349.c | 2 +- board/freescale/b4860qds/pci.c | 2 +- board/freescale/bsc9131rdb/bsc9131rdb.c | 2 +- board/freescale/bsc9132qds/bsc9132qds.c | 2 +- board/freescale/c29xpcie/c29xpcie.c | 2 +- board/freescale/common/cds_pci_ft.c | 2 +- board/freescale/common/fman.c | 4 +- board/freescale/common/p_corenet/pci.c | 2 +- board/freescale/common/sgmii_riser.c | 2 +- board/freescale/ls1043aqds/eth.c | 2 +- board/freescale/ls1088a/ls1088a.c | 2 +- board/freescale/ls2080a/ls2080a.c | 2 +- board/freescale/ls2080aqds/ls2080aqds.c | 2 +- board/freescale/ls2080ardb/ls2080ardb.c | 2 +- board/freescale/mpc8308rdb/mpc8308rdb.c | 2 +- board/freescale/mpc8313erdb/mpc8313erdb.c | 2 +- board/freescale/mpc8315erdb/mpc8315erdb.c | 2 +- board/freescale/mpc8323erdb/mpc8323erdb.c | 2 +- board/freescale/mpc832xemds/mpc832xemds.c | 2 +- board/freescale/mpc8349emds/mpc8349emds.c | 2 +- board/freescale/mpc8349itx/mpc8349itx.c | 2 +- board/freescale/mpc837xemds/mpc837xemds.c | 2 +- board/freescale/mpc8536ds/mpc8536ds.c | 2 +- board/freescale/mpc8541cds/mpc8541cds.c | 2 +- board/freescale/mpc8544ds/mpc8544ds.c | 2 +- board/freescale/mpc8548cds/mpc8548cds.c | 2 +- board/freescale/mpc8555cds/mpc8555cds.c | 2 +- board/freescale/mpc8568mds/mpc8568mds.c | 2 +- board/freescale/mpc8569mds/mpc8569mds.c | 2 +- board/freescale/mpc8572ds/mpc8572ds.c | 2 +- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 2 +- board/freescale/mpc8641hpcn/mpc8641hpcn.c | 2 +- board/freescale/mx6sabreauto/mx6sabreauto.c | 2 +- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6slevk/mx6slevk.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +- board/freescale/p1010rdb/p1010rdb.c | 2 +- board/freescale/p1022ds/p1022ds.c | 2 +- board/freescale/p1023rdb/p1023rdb.c | 2 +- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 +- board/freescale/p1_twr/p1_twr.c | 2 +- board/freescale/qemu-ppce500/qemu-ppce500.c | 2 +- board/freescale/t102xqds/pci.c | 2 +- board/freescale/t102xrdb/pci.c | 2 +- board/freescale/t1040qds/pci.c | 2 +- board/freescale/t104xrdb/pci.c | 2 +- board/freescale/t208xqds/pci.c | 2 +- board/freescale/t208xrdb/pci.c | 2 +- board/freescale/t4qds/pci.c | 2 +- board/freescale/t4rdb/pci.c | 2 +- board/gdsys/mpc8308/hrcon.c | 2 +- board/gdsys/mpc8308/strider.c | 2 +- board/gdsys/p1022/controlcenterd.c | 2 +- board/ids/ids8313/ids8313.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- board/keymile/kmp204x/pci.c | 2 +- board/liebherr/display5/spl.c | 2 +- board/mpc8308_p1m/mpc8308_p1m.c | 2 +- board/phytec/pcm058/pcm058.c | 2 +- board/phytec/pfla02/pfla02.c | 2 +- board/sbc8349/sbc8349.c | 2 +- board/sbc8548/sbc8548.c | 2 +- board/sbc8641d/sbc8641d.c | 2 +- board/socrates/socrates.c | 2 +- board/sunxi/board.c | 2 +- board/toradex/apalis_imx6/apalis_imx6.c | 2 +- board/toradex/colibri_imx6/colibri_imx6.c | 2 +- board/toradex/common/tdx-common.c | 2 +- board/tqc/tqma6/tqma6.c | 2 +- board/tqc/tqma6/tqma6_mba6.c | 2 +- board/tqc/tqma6/tqma6_wru4.c | 2 +- board/udoo/neo/neo.c | 2 +- board/varisys/cyrus/pci.c | 2 +- board/ve8313/ve8313.c | 2 +- board/vscom/baltos/board.c | 2 +- board/xes/common/fsl_8xxx_pci.c | 2 +- board/xes/xpedite520x/xpedite520x.c | 2 +- board/xes/xpedite537x/xpedite537x.c | 2 +- board/xes/xpedite550x/xpedite550x.c | 2 +- cmd/bootefi.c | 4 +- cmd/fdt.c | 2 +- cmd/spl.c | 2 +- common/board_info.c | 2 +- common/boot_fit.c | 2 +- common/bootm_os.c | 2 +- common/bootstage.c | 2 +- common/common_fit.c | 2 +- common/fdt_support.c | 2 +- common/image-fdt.c | 2 +- common/image.c | 2 +- common/lcd_simplefb.c | 2 +- common/spl/spl_fat.c | 2 +- common/spl/spl_fit.c | 2 +- common/spl/spl_nand.c | 2 +- common/spl/spl_net.c | 2 +- common/spl/spl_ram.c | 2 +- common/spl/spl_ymodem.c | 2 +- drivers/core/of_access.c | 2 +- drivers/core/of_addr.c | 2 +- drivers/core/of_extra.c | 2 +- drivers/core/ofnode.c | 2 +- drivers/core/regmap.c | 2 +- drivers/core/root.c | 2 +- drivers/core/util.c | 2 +- drivers/crypto/fsl/sec.c | 2 +- drivers/firmware/psci.c | 2 +- drivers/misc/fsl_portals.c | 2 +- drivers/mmc/exynos_dw_mmc.c | 2 +- drivers/mmc/rockchip_sdhci.c | 2 +- drivers/mmc/s5p_sdhci.c | 2 +- drivers/mmc/sdhci-cadence.c | 2 +- drivers/mmc/socfpga_dw_mmc.c | 2 +- drivers/mmc/stm32_sdmmc2.c | 2 +- drivers/mmc/xenon_sdhci.c | 2 +- drivers/mmc/zynq_sdhci.c | 2 +- drivers/mtd/spi/sunxi_spi_spl.c | 2 +- drivers/net/fsl-mc/mc.c | 2 +- drivers/pci/fsl_pci_init.c | 2 +- drivers/pci/pci-emul-uclass.c | 2 +- drivers/pci/pcie_layerscape_fixup.c | 2 +- drivers/phy/sti_usb_phy.c | 2 +- drivers/pinctrl/pinctrl-single.c | 2 +- drivers/pinctrl/pinctrl-uclass.c | 2 +- drivers/power/pmic/act8846.c | 2 +- drivers/power/pmic/rn5t567.c | 2 +- drivers/power/regulator/pwm_regulator.c | 2 +- drivers/qe/fdt.c | 2 +- drivers/sound/sound-i2s.c | 2 +- drivers/usb/common/common.c | 2 +- drivers/usb/host/dwc3-sti-glue.c | 2 +- drivers/usb/host/ehci-exynos.c | 2 +- drivers/usb/host/ehci-msm.c | 2 +- drivers/usb/host/ehci-tegra.c | 2 +- drivers/usb/host/ehci-vf.c | 2 +- drivers/usb/host/xhci-exynos5.c | 2 +- drivers/usb/phy/rockchip_usb2_phy.c | 2 +- drivers/video/exynos/exynos_dp.c | 2 +- drivers/video/exynos/exynos_dp_lowlevel.c | 2 +- drivers/video/exynos/exynos_fb.c | 2 +- drivers/video/exynos/exynos_mipi_dsi.c | 2 +- include/fdt_support.h | 2 +- include/fdtdec.h | 2 +- include/image.h | 2 +- include/libfdt.h | 318 ----------- ----------- include/libfdt_env.h | 5 - include/linux/libfdt.h | 307 +++++++++++++++++++++ include/linux/libfdt_env.h | 9 + lib/efi_loader/efi_boottime.c | 2 +- lib/efi_loader/efi_memory.c | 2 +- lib/fdtdec.c | 2 +- lib/fdtdec_common.c | 2 +- lib/fdtdec_test.c | 2 +- lib/libfdt/Makefile | 2 + lib/libfdt/fdt_region.c | 4 +- lib/libfdt/fdt_ro.c | 4 +- lib/of_live.c | 2 +- tools/dtoc/dtb_platdata.py | 2 +- tools/dtoc/test_dtoc.py | 2 +- tools/fdt_host.h | 2 +- tools/ifdtool.c | 2 +- 197 files changed, 514 insertions(+), 519 deletions(-) delete mode 100644 include/libfdt.h delete mode 100644 include/libfdt_env.harch/arm/cpu/armv7/ls102xa/fdt.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/io.h> #include <asm/processor.h> arch/arm/cpu/armv7/virt- renamed from arch/arm/cpu/armv7/virt-dt.c +0
-0
dt.c
index 707dad4..204187c 100644arch/arm/cpu/armv7/virt-dt.c +1
-1@@ -21,7 +21,7 @@#include <linux/ctype.h> #include <linux/types.h> #include <asm/global_data.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/armv7.h> #include <asm/psci.h> arch/arm/cpu/armv8/fsl-layerscape/fdt.c +1
-1@@ -6,7 +6,7 @@#include <common.h> #include <efi_loader.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <phy.h> #ifdef CONFIG_FSL_LSCH3 arch/arm/cpu/armv8/spin_table.c +1
-1@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/spin_table.h> int spin_table_update_dt (void *fdt)arch/arm/lib/bootm.c +1
-1@@ -19,7 +19,7 @@#include <image.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mapmem.h> #include <fdt_support.h> #include <asm/bootm.h> arch/arm/lib/psci-dt.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <linux/sizes.h> #include <linux/kernel.h> arch/arm/mach- renamed from arch/arm/mach-imx/mx6/litesom.c +0
-0
imx/mx6/litesom.c
index 590e92f..777e7b3 100644arch/arm/mach-imx/mx6/litesom.c +1
-1@@ -77,7 +77,7 @@ int litesom_mmc_init(bd_t *bis)#endif #ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/mx6-ddr.h> arch/arm/mach- renamed from arch/arm/mach-imx/mx6/opos6ul.c +0
-0
imx/mx6/opos6ul.c
index f8d7e8e..2de1321 100644arch/arm/mach-imx/mx6/opos6ul.c +1
-1@@ -154,7 +154,7 @@ int dram_init(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <asm/arch/opos6ul.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #define USDHC_PAD_CTRL ( \arch/arm/mach-meson/board.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <asm/arch/gxbb.h> #include <asm/arch/sm.h> arch/arm/mach- renamed from arch/arm/mach-mvebu/arm64-common.c +0
-0
mvebu/arm64-common.c
index 69cb21d..3c84043 100644arch/arm/mach-mvebu/arm64-common.c +1
-1@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <asm/io.h> #include <asm/system.h> arch/arm/mach- renamed from arch/arm/mach-mvebu/armada3700/cpu.c +0
-0
mvebu/armada3700/cpu.c
index 6499eec..b9214f7 100644arch/arm/mach-mvebu/armada3700/cpu.c +1
-1@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> #include <asm/system.h> #include <asm/arch/cpu.h> arch/arm/mach- renamed from arch/arm/mach-mvebu/armada8k/cpu.c +0
-0
mvebu/armada8k/cpu.c
index 38e7d33..ce7e913 100644arch/arm/mach-mvebu/armada8k/cpu.c +1
-1@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> #include <asm/system.h> #include <asm/arch/cpu.h> arch/arm/mach- renamed from arch/arm/mach-omap2/am33xx/fdt.c +0
-0
omap2/am33xx/fdt.c
index 02e8243..fa99dc7 100644arch/arm/mach-omap2/am33xx/fdt.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <malloc.h> arch/arm/mach- renamed from arch/arm/mach-omap2/fdt-common.c +0
-0
omap2/fdt-common.c
index 9297e9d..3c368ba 100644arch/arm/mach-omap2/fdt-common.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/omap_common.h> arch/arm/mach- renamed from arch/arm/mach-omap2/omap5/fdt.c +0
-0
omap2/omap5/fdt.c
index 1e556da..3aae94d 100644arch/arm/mach-omap2/omap5/fdt.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <malloc.h> arch/arm/mach- renamed from arch/arm/mach-socfpga/misc.c +0
-0
socfpga/misc.c
index 00eff90..692466c 100644arch/arm/mach-socfpga/misc.c +1
-1@@ -8,7 +8,7 @@#include <asm/io.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <altera.h> #include <miiphy.h> #include <netdev.h> arch/arm/mach- renamed from arch/arm/mach-socfpga/misc_gen5.c +0
-0
socfpga/misc_gen5.c
index a7dcacc..177b35f 100644arch/arm/mach-socfpga/misc_gen5.c +1
-1@@ -8,7 +8,7 @@#include <asm/io.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <altera.h> #include <miiphy.h> #include <netdev.h> arch/arm/mach- renamed from arch/arm/mach-uniphier/board_late_init.c +0
-0
uniphier/board_late_init.c
index 6849b3d..adcc929 100644arch/arm/mach-uniphier/board_late_init.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <nand.h> #include <stdio.h> #include <linux/io.h> arch/arm/mach- renamed from arch/arm/mach-uniphier/boards.c +0
-0
uniphier/boards.c
index 9bfc4c2..104ed90 100644arch/arm/mach-uniphier/boards.c +1
-1@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/kernel.h> #include "init.h" arch/powerpc/cpu/mpc83xx/cpu.c +1
-1@@ -15,7 +15,7 @@#include <command.h> #include <mpc83xx.h> #include <asm/processor.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <tsec.h> #include <netdev.h> #include <fsl_esdhc.h> arch/powerpc/cpu/mpc83xx/fdt.c +1
-1@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> arch/powerpc/cpu/mpc83xx/pci.c +1
-1@@ -11,7 +11,7 @@#include <pci.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #endif arch/powerpc/cpu/mpc85xx/fdt.c +1
-1@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> #include <linux/ctype.h> arch/powerpc/cpu/mpc85xx/liodn.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/immap_85xx.h> arch/powerpc/cpu/mpc85xx/portals.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> arch/powerpc/cpu/mpc86xx/fdt.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/mp.h> arch/powerpc/cpu/mpc8xx/cpu.c +1
-1@@ -28,7 +28,7 @@#include <asm/io.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #endif arch/powerpc/cpu/mpc8xx/fdt.c +1
-1@@ -7,7 +7,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> DECLARE_GLOBAL_DATA_PTR ;arch/powerpc/cpu/mpc8xxx/fdt.c +1
-1@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/mp.h> #include <asm/fsl_serdes.h> arch/powerpc/lib/bootm.c +1
-1@@ -22,7 +22,7 @@#include <vxworks.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #endif arch/sandbox/cpu/cpu.c +1
-1@@ -6,7 +6,7 @@#include <common.h> #include <dm.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <os.h> #include <asm/io.h> #include <asm/state.h> arch/x86/cpu/intel_common/microcode.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/cpu.h> #include <asm/microcode.h> #include <asm/msr.h> board/Arcturus/ucp1020/ucp1020.c +1
-1@@ -15,7 +15,7 @@#include <pci.h> #include <i2c.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/armltd/vexpress/vexpress_tc2.c +1
-1@@ -11,7 +11,7 @@#include <asm/io.h> #include <asm/u-boot.h> #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define SCC_BASE 0x7fff0000board/congatec/cgtqmx6eval/cgtqmx6eval.c +1
-1@@ -767,7 +767,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spi_flash.h> #include <spi.h> board/el/el6x/el6x.c +1
-1@@ -481,7 +481,7 @@ int checkboard(void)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> const struct mx6dq_iomux_ddr_regs mx6_ddr_ioregs = { .dram_sdclk_0 = 0x00020030,board/esd/vme8349/vme8349.c +1
-1@@ -17,7 +17,7 @@#include <mpc83xx.h> #include <asm/mpc8349_pci.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif #include <asm/io.h> #include <asm/mmu.h> board/freescale/b4860qds/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/bsc9131rdb/bsc9131rdb.c +1
-1@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/bsc9132qds/bsc9132qds.c +1
-1@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/c29xpcie/c29xpcie.c +1
-1@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/common/cds_pci_ft.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "cadmus.h" board/freescale/common/fman.c +2
-2@@ -5,8 +5,8 @@*/ #include <common.h> -#include <libfdt.h> -#include <libfdt_env.h> +#include <linux/libfdt.h> +#include <linux/libfdt_env.h> #include <fdt_support.h> #include <fm_eth.h> board/freescale/common/p_corenet/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/common/sgmii_riser.c +1
-1@@ -15,7 +15,7 @@#include <config.h> #include <common.h> #include <net.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <tsec.h> #include <fdt_support.h> board/freescale/ls1043aqds/eth.c +1
-1@@ -11,7 +11,7 @@#include <fm_eth.h> #include <fsl_mdio.h> #include <fsl_dtsec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <asm/arch/fsl_serdes.h> board/freescale/ls1088a/ls1088a.c +1
-1@@ -13,7 +13,7 @@#include <fsl_sec.h> #include <asm/io.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <asm/arch-fsl-layerscape/soc.h> board/freescale/ls2080a/ls2080a.c +1
-1@@ -11,7 +11,7 @@#include <fsl_ddr.h> #include <asm/io.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <asm/arch/soc.h> board/freescale/ls2080aqds/ls2080aqds.c +1
-1@@ -11,7 +11,7 @@#include <fsl_ddr.h> #include <asm/io.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <i2c.h> board/freescale/ls2080ardb/ls2080ardb.c +1
-1@@ -13,7 +13,7 @@#include <asm/io.h> #include <hwconfig.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fsl-mc/fsl_mc.h> #include <environment.h> #include <efi_loader.h> board/freescale/mpc8308rdb/mpc8308rdb.c +1
-1@@ -9,7 +9,7 @@#include <hwconfig.h> #include <i2c.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h> board/freescale/mpc8313erdb/mpc8313erdb.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif #include <pci.h> #include <mpc83xx.h> board/freescale/mpc8315erdb/mpc8315erdb.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <hwconfig.h> #include <i2c.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h> board/freescale/mpc8323erdb/mpc8323erdb.c +1
-1@@ -15,7 +15,7 @@#include <i2c.h> #include <miiphy.h> #include <command.h> -#include <libfdt.h> +#include <linux/libfdt.h> #if defined(CONFIG_PCI )#include <pci.h> #endif board/freescale/mpc832xemds/mpc832xemds.c +1
-1@@ -17,7 +17,7 @@#endif #include <asm/mmu.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif #if defined(CONFIG_PQ_MDS_PIB )#include "../common/pq-mds-pib.h" board/freescale/mpc8349emds/mpc8349emds.c +1
-1@@ -19,7 +19,7 @@#endif #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif DECLARE_GLOBAL_DATA_PTR ;board/freescale/mpc8349itx/mpc8349itx.c +1
-1@@ -17,7 +17,7 @@#include <spd_sdram.h> #include <asm/mmu.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif DECLARE_GLOBAL_DATA_PTR ;board/freescale/mpc837xemds/mpc837xemds.c +1
-1@@ -12,7 +12,7 @@#include <asm/fsl_mpc83xx_serdes.h> #include <spd_sdram.h> #include <tsec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_esdhc.h> #include <fsl_mdio.h> board/freescale/mpc8536ds/mpc8536ds.c +1
-1@@ -17,7 +17,7 @@#include <asm/fsl_serdes.h> #include <spd.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spd_sdram.h> #include <fdt_support.h> #include <fsl_mdio.h> board/freescale/mpc8541cds/mpc8541cds.c +1
-1@@ -14,7 +14,7 @@#include <fsl_ddr_sdram.h> #include <ioports.h> #include <spd_sdram.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "../common/cadmus.h" board/freescale/mpc8544ds/mpc8544ds.c +1
-1@@ -15,7 +15,7 @@#include <asm/fsl_serdes.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/mpc8548cds/mpc8548cds.c +1
-1@@ -15,7 +15,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <tsec.h> #include <fsl_mdio.h> board/freescale/mpc8555cds/mpc8555cds.c +1
-1@@ -12,7 +12,7 @@#include <fsl_ddr_sdram.h> #include <ioports.h> #include <spd_sdram.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "../common/cadmus.h" board/freescale/mpc8568mds/mpc8568mds.c +1
-1@@ -17,7 +17,7 @@#include <spd_sdram.h> #include <i2c.h> #include <ioports.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include "bcsr.h" board/freescale/mpc8569mds/mpc8569mds.c +1
-1@@ -21,7 +21,7 @@#include <spd_sdram.h> #include <i2c.h> #include <ioports.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_esdhc.h> #include <phy.h> board/freescale/mpc8572ds/mpc8572ds.c +1
-1@@ -16,7 +16,7 @@#include <asm/io.h> #include <asm/fsl_serdes.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <tsec.h> #include <fsl_mdio.h> board/freescale/mpc8610hpcd/mpc8610hpcd.c +1
-1@@ -14,7 +14,7 @@#include <asm/fsl_serdes.h> #include <i2c.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <spd_sdram.h> #include <netdev.h> board/freescale/mpc8641hpcn/mpc8641hpcn.c +1
-1@@ -12,7 +12,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <netdev.h> board/freescale/mx6sabreauto/mx6sabreauto.c +1
-1@@ -734,7 +734,7 @@ int board_ehci_power(int port, int on)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT int spl_start_uboot (void )board/freescale/mx6sabresd/mx6sabresd.c +1
-1@@ -725,7 +725,7 @@ int checkboard(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT int spl_start_uboot (void )board/freescale/mx6slevk/mx6slevk.c +1
-1@@ -254,7 +254,7 @@ int checkboard(void)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define USDHC1_CD_GPIO IMX_GPIO_NR(4, 7)#define USDHC2_CD_GPIO IMX_GPIO_NR(5, 0)board/freescale/mx6sxsabresd/mx6sxsabresd.c +1
-1@@ -347,7 +347,7 @@ int checkboard(void) }#ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/mx6-ddr.h> board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +1
-1@@ -696,7 +696,7 @@ int checkboard(void) }#ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/mx6-ddr.h> board/freescale/p1010rdb/p1010rdb.c +1
-1@@ -11,7 +11,7 @@#include <asm/immap_85xx.h> #include <asm/io.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/p1022ds/p1022ds.c +1
-1@@ -17,7 +17,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/p1023rdb/p1023rdb.c +1
-1@@ -19,7 +19,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_portals.h> #include <fsl_qbman.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <netdev.h> #include <malloc.h> board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +1
-1@@ -20,7 +20,7 @@#include <asm/fsl_lbc.h> #include <asm/mp.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/p1_twr/p1_twr.c +1
-1@@ -20,7 +20,7 @@#include <asm/fsl_lbc.h> #include <asm/mp.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/freescale/qemu-ppce500/qemu-ppce500.c +1
-1@@ -11,7 +11,7 @@#include <asm/mmu.h> #include <asm/fsl_pci.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <netdev.h> #include <fdtdec.h> board/freescale/t102xqds/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t102xrdb/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t1040qds/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t104xrdb/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t208xqds/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t208xrdb/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t4qds/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/freescale/t4rdb/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/gdsys/mpc8308/hrcon.c +1
-1@@ -9,7 +9,7 @@#include <hwconfig.h> #include <i2c.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h> board/gdsys/mpc8308/strider.c +1
-1@@ -9,7 +9,7 @@#include <hwconfig.h> #include <i2c.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h> board/gdsys/p1022/controlcenterd.c +1
-1@@ -32,7 +32,7 @@#include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_mdio.h> #include <tsec.h> board/ids/ids8313/ids8313.c +1
-1@@ -15,7 +15,7 @@#include <common.h> #include <mpc83xx.h> #include <spi.h> -#include <libfdt.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR ;/** CPLD contains the info about: board/keymile/km83xx/km83xx.c +1
-1@@ -23,7 +23,7 @@#include <asm/mmu.h> #include <asm/processor.h> #include <pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <post.h> #include "../common/common.h" board/keymile/kmp204x/pci.c +1
-1@@ -11,7 +11,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> #include <linux/errno.h> board/liebherr/display5/spl.c +1
-1@@ -7,7 +7,7 @@#include <common.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/mx6-ddr.h> board/mpc8308_p1m/mpc8308_p1m.c +1
-1@@ -7,7 +7,7 @@#include <common.h> #include <i2c.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pci.h> #include <mpc83xx.h> board/phytec/pcm058/pcm058.c +1
-1@@ -397,7 +397,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> static const struct mx6dq_iomux_ddr_regs mx6_ddr_ioregs = { .dram_sdclk_0 = 0x00000030,board/phytec/pfla02/pfla02.c +1
-1@@ -400,7 +400,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD #include <asm/arch/mx6-ddr.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define MX6_PHYFLEX_ERR006282 IMX_GPIO_NR(2, 11)static void phyflex_err006282_workaround (void )board/sbc8349/sbc8349.c +1
-1@@ -16,7 +16,7 @@#include <spd_sdram.h> #include <miiphy.h> #if defined(CONFIG_OF_LIBFDT ) -#include <libfdt.h> +#include <linux/libfdt.h> #endif DECLARE_GLOBAL_DATA_PTR ;board/sbc8548/sbc8548.c +1
-1@@ -21,7 +21,7 @@#include <netdev.h> #include <tsec.h> #include <miiphy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> DECLARE_GLOBAL_DATA_PTR ;board/sbc8641d/sbc8641d.c +1
-1@@ -20,7 +20,7 @@#include <asm/fsl_pci.h> #include <fsl_ddr_sdram.h> #include <asm/fsl_serdes.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> DECLARE_GLOBAL_DATA_PTR ;board/socrates/socrates.c +1
-1@@ -17,7 +17,7 @@#include <asm/immap_85xx.h> #include <ioports.h> #include <flash.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/io.h> #include <i2c.h> board/sunxi/board.c +1
-1@@ -29,7 +29,7 @@#include <asm/io.h> #include <crc.h> #include <environment.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <nand.h> #include <net.h> #include <spl.h> board/toradex/apalis_imx6/apalis_imx6.c +1
-1@@ -892,7 +892,7 @@ void ldo_mode_set(int ldo_bypass)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "asm/arch/mx6q-ddr.h" #include "asm/arch/iomux.h" #include "asm/arch/crm_regs.h" board/toradex/colibri_imx6/colibri_imx6.c +1
-1@@ -743,7 +743,7 @@ void ldo_mode_set(int ldo_bypass)#ifdef CONFIG_SPL_BUILD #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "asm/arch/mx6dl-ddr.h" #include "asm/arch/iomux.h" #include "asm/arch/crm_regs.h" board/toradex/common/tdx-common.c +1
-1@@ -6,7 +6,7 @@#include <common.h> #include <g_dnl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "tdx-cfg-block.h" #include <asm/setup.h> board/tqc/tqma6/tqma6.c +1
-1@@ -20,7 +20,7 @@#include <asm/mach-imx/spi.h> #include <common.h> #include <fsl_esdhc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <i2c.h> #include <mmc.h> #include <power/pfuze100_pmic.h> board/tqc/tqma6/tqma6_mba6.c +1
-1@@ -20,7 +20,7 @@#include <common.h> #include <fsl_esdhc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <i2c.h> #include <micrel.h> board/tqc/tqma6/tqma6_wru4.c +1
-1@@ -23,7 +23,7 @@#include <common.h> #include <fsl_esdhc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <i2c.h> #include <micrel.h> board/udoo/neo/neo.c +1
-1@@ -445,7 +445,7 @@ int board_late_init(void)#ifdef CONFIG_SPL_BUILD -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/arch/mx6-ddr.h> static const struct mx6sx_iomux_ddr_regs mx6_ddr_ioregs = {board/varisys/cyrus/pci.c +1
-1@@ -8,7 +8,7 @@#include <command.h> #include <pci.h> #include <asm/fsl_pci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/fsl_serdes.h> board/ve8313/ve8313.c +1
-1@@ -10,7 +10,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <mpc83xx.h> #include <ns16550.h> board/vscom/baltos/board.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #include <asm/arch/cpu.h> #include <asm/arch/hardware.h> board/xes/common/fsl_8xxx_pci.c +1
-1@@ -11,7 +11,7 @@#include <asm/fsl_serdes.h> #include <asm/io.h> #include <linux/compiler.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> board/xes/xpedite520x/xpedite520x.c +1
-1@@ -14,7 +14,7 @@#include <asm/io.h> #include <asm/cache.h> #include <asm/mmu.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pca953x.h> board/xes/xpedite537x/xpedite537x.c +1
-1@@ -12,7 +12,7 @@#include <asm/fsl_pci.h> #include <asm/io.h> #include <asm/cache.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pca953x.h> board/xes/xpedite550x/xpedite550x.c +1
-1@@ -12,7 +12,7 @@#include <asm/fsl_pci.h> #include <asm/io.h> #include <asm/cache.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <pca953x.h> cmd/bootefi.c +2
-2@@ -13,8 +13,8 @@#include <efi_loader.h> #include <efi_selftest.h> #include <errno.h> -#include <libfdt.h> -#include <libfdt_env.h> +#include <linux/libfdt.h> +#include <linux/libfdt_env.h> #include <memalign.h> #include <asm/global_data.h> #include <asm-generic/sections.h> cmd/fdt.c +1
-1@@ -13,7 +13,7 @@#include <linux/ctype.h> #include <linux/types.h> #include <asm/global_data.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <mapmem.h> #include <asm/io.h> cmd/spl.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <command.h> #include <cmd_spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR ;common/board_info.c +1
-1@@ -3,7 +3,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/compiler.h> int __weak checkboard (void )common/boot_fit.c +1
-1@@ -11,7 +11,7 @@#include <common.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> static int fdt_offset (const void *fit) {common/bootm_os.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <bootm.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <vxworks.h> common/bootstage.c +1
-1@@ -11,7 +11,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <linux/compiler.h> common/common_fit.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> ulong fdt_getprop_u32 (const void *fdt,int node,const char *prop)common/fdt_support.c +1
-1@@ -13,7 +13,7 @@#include <linux/ctype.h> #include <linux/types.h> #include <asm/global_data.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <exports.h> #include <fdtdec.h> common/image-fdt.c +1
-1@@ -13,7 +13,7 @@#include <fdt_support.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mapmem.h> #include <asm/io.h> common/image.c +1
-1@@ -22,7 +22,7 @@#include <mapmem.h> #if IMAGE_ENABLE_FIT ||IMAGE_ENABLE_OF_LIBFDT -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fpga.h> #include <xilinx.h> common/lcd_simplefb.c +1
-1@@ -11,7 +11,7 @@#include <dm.h> #include <lcd.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <video.h> DECLARE_GLOBAL_DATA_PTR ;common/spl/spl_fat.c +1
-1@@ -15,7 +15,7 @@#include <fat.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> static int fat_registered;common/spl/spl_fit.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <errno.h> #include <image.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <spl.h> #ifndef CONFIG_SYS_BOOTM_LEN common/spl/spl_nand.c +1
-1@@ -9,7 +9,7 @@#include <spl.h> #include <asm/io.h> #include <nand.h> -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #include <fdt.h> #if defined(CONFIG_SPL_NAND_RAW_ONLY )common/spl/spl_net.c +1
-1@@ -11,7 +11,7 @@#include <errno.h> #include <spl.h> #include <net.h> -#include <libfdt.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR ;common/spl/spl_ram.c +1
-1@@ -14,7 +14,7 @@#include <binman_sym.h> #include <mapmem.h> #include <spl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifndef CONFIG_SPL_LOAD_FIT_ADDRESS # define CONFIG_SPL_LOAD_FIT_ADDRESS 0common/spl/spl_ymodem.c +1
-1@@ -14,7 +14,7 @@#include <xyzModem.h> #include <asm/u-boot.h> #include <asm/utils.h> -#include <libfdt.h> +#include <linux/libfdt.h> #define BUF_SIZE 1024drivers/core/of_access.c +1
-1@@ -21,7 +21,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <linux/ctype.h> #include <linux/err.h> drivers/core/of_addr.c +1
-1@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_addr.h> #include <linux/err.h> drivers/core/of_extra.c +1
-1@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_extra.h> #include <dm/ofnode.h> drivers/core/ofnode.c +1
-1@@ -9,7 +9,7 @@#include <dm.h> #include <fdtdec.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_addr.h> #include <dm/ofnode.h> drivers/core/regmap.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <dm.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> #include <regmap.h> drivers/core/root.c +1
-1@@ -11,7 +11,7 @@#include <errno.h> #include <fdtdec.h> #include <malloc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/device.h> #include <dm/device-internal.h> #include <dm/lists.h> drivers/core/util.c +1
-1@@ -6,7 +6,7 @@#include <common.h> #include <dm/util.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <vsprintf.h> #ifdef CONFIG_DM_WARN drivers/crypto/fsl/sec.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #if CONFIG_SYS_FSL_SEC_COMPAT ==2 ||CONFIG_SYS_FSL_SEC_COMPAT >=4 #include <fsl_sec.h> drivers/firmware/psci.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <dm.h> #include <dm/lists.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/arm-smccc.h> #include <linux/errno.h> #include <linux/printk.h> drivers/misc/fsl_portals.c +1
-1@@ -6,7 +6,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> drivers/mmc/exynos_dw_mmc.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <dwmmc.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <errno.h> #include <asm/arch/dwmmc.h> drivers/mmc/rockchip_sdhci.c +1
-1@@ -9,7 +9,7 @@#include <common.h> #include <dm.h> #include <dt-structs.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> #include <sdhci.h> drivers/mmc/s5p_sdhci.c +1
-1@@ -10,7 +10,7 @@#include <malloc.h> #include <sdhci.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/gpio.h> #include <asm/arch/mmc.h> #include <asm/arch/clk.h> drivers/mmc/sdhci-cadence.c +1
-1@@ -11,7 +11,7 @@#include <linux/io.h> #include <linux/iopoll.h> #include <linux/sizes.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mmc.h> #include <sdhci.h> drivers/mmc/socfpga_dw_mmc.c +1
-1@@ -11,7 +11,7 @@#include <dwmmc.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <malloc.h> drivers/mmc/stm32_sdmmc2.c +1
-1@@ -9,7 +9,7 @@#include <clk.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mmc.h> #include <reset.h> #include <asm/io.h> drivers/mmc/xenon_sdhci.c +1
-1@@ -18,7 +18,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <sdhci.h> drivers/mmc/zynq_sdhci.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <sdhci.h> drivers/mtd/spi/sunxi_spi_spl.c +1
-1@@ -8,7 +8,7 @@#include <spl.h> #include <asm/gpio.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT #error CONFIG_SPL_OS_BOOT is not supported yetdrivers/net/fsl-mc/mc.c +1
-1@@ -8,7 +8,7 @@#include <errno.h> #include <linux/bug.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <net.h> #include <fdt_support.h> #include <fsl-mc/fsl_mc.h> drivers/pci/fsl_pci_init.c +1
-1@@ -886,7 +886,7 @@ int fsl_pcie_init_board(int busno)#endif #ifdef CONFIG_OF_BOARD_SETUP -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> void ft_fsl_pci_setup(void *blob, const char *pci_compat,drivers/pci/pci-emul- renamed from drivers/pci/pci-emul-uclass.c +0
-0
uclass.c
index 0f8e3c9..dcea192 100644drivers/pci/pci-emul-uclass.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <dm/lists.h> drivers/pci/pcie_layerscape_fixup.c +1
-1@@ -12,7 +12,7 @@#include <asm/io.h> #include <errno.h> #ifdef CONFIG_OF_BOARD_SETUP -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #ifdef CONFIG_ARM #include <asm/arch/clock.h> drivers/phy/sti_usb_phy.c +1
-1@@ -12,7 +12,7 @@#include <errno.h> #include <fdtdec.h> #include <generic-phy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <regmap.h> #include <reset-uclass.h> #include <syscon.h> drivers/pinctrl/pinctrl-single.c +1
-1@@ -7,7 +7,7 @@#include <common.h> #include <dm.h> #include <dm/pinctrl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR ;drivers/pinctrl/pinctrl-uclass.c +1
-1@@ -5,7 +5,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <linux/list.h> #include <dm.h> drivers/power/pmic/act8846.c +1
-1@@ -9,7 +9,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <power/act8846_pmic.h> #include <power/pmic.h> drivers/power/pmic/rn5t567.c +1
-1@@ -9,7 +9,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <power/rn5t567_pmic.h> #include <power/pmic.h> drivers/power/regulator/pwm_regulator.c +1
-1@@ -13,7 +13,7 @@#include <errno.h> #include <pwm.h> #include <power/regulator.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fdtdec.h> drivers/qe/fdt.c +1
-1@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_qe.h> drivers/sound/sound-i2s.c +1
-1@@ -8,7 +8,7 @@#include <malloc.h> #include <common.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #include <i2c.h> #include <i2s.h> drivers/usb/common/common.c +1
-1@@ -8,7 +8,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/usb/otg.h> DECLARE_GLOBAL_DATA_PTR ;drivers/usb/host/dwc3- renamed from drivers/usb/host/dwc3-sti-glue.c +0
-0
sti-glue.c
index 67b2561..ce9335e 100644drivers/usb/host/dwc3-sti-glue.c +1
-1@@ -12,7 +12,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/lists.h> #include <regmap.h> #include <reset-uclass.h> drivers/usb/host/ehci- renamed from drivers/usb/host/ehci-exynos.c +0
-0
exynos.c
index 30297b0..a2c6d5a 100644drivers/usb/host/ehci-exynos.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <usb.h> #include <asm/arch/cpu.h> drivers/usb/host/ehci-msm.c +1
-1@@ -12,7 +12,7 @@#include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <usb.h> #include <usb/ehci-ci.h> #include <usb/ulpi.h> drivers/usb/host/ehci- renamed from drivers/usb/host/ehci-tegra.c +0
-0
tegra.c
index 1c72330..f317cf0 100644drivers/usb/host/ehci-tegra.c +1
-1@@ -16,7 +16,7 @@#include <asm/arch-tegra/clk_rst.h> #include <usb.h> #include <usb/ulpi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "ehci.h" drivers/usb/host/ehci-vf.c +1
-1@@ -20,7 +20,7 @@#include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/regs-usbphy.h> #include <usb/ehci-ci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #include "ehci.h" drivers/usb/host/xhci- renamed from drivers/usb/host/xhci-exynos5.c +0
-0
exynos5.c
index bf72865..6f08d5d 100644drivers/usb/host/xhci-exynos5.c +1
-1@@ -16,7 +16,7 @@#include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <usb.h> #include <watchdog.h> drivers/usb/phy/rockchip_usb2_phy.c +1
-1@@ -6,7 +6,7 @@#include <common.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "../gadget/dwc2_udc_otg_priv.h" drivers/video/exynos/exynos_dp.c +1
-1@@ -11,7 +11,7 @@#include <common.h> #include <display.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <video_bridge.h> #include <linux/compat.h> drivers/video/exynos/exynos_dp_lowlevel.c +1
-1@@ -13,7 +13,7 @@#include <asm/arch/dp_info.h> #include <asm/arch/dp.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "exynos_dp_lowlevel.h" /* Declare global data pointer */ drivers/video/exynos/exynos_fb.c +1
-1@@ -13,7 +13,7 @@#include <div64.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <panel.h> #include <video.h> #include <video_bridge.h> drivers/video/exynos/exynos_mipi_dsi.c +1
-1@@ -10,7 +10,7 @@#include <common.h> #include <malloc.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/compat.h> #include <linux/err.h> #include <asm/arch/dsim.h> include/fdt_support.h +1
-1@@ -10,7 +10,7 @@#ifdef CONFIG_OF_LIBFDT -#include <libfdt.h> +#include <linux/libfdt.h> u32 fdt_getprop_u32_default_node (const void *fdt,int off,int cell,const char *prop,const u32 dflt);include/fdtdec.h +1
-1@@ -14,7 +14,7 @@* changes to support FDT are minimized. */ -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> /* include/image.h +1
-1@@ -53,7 +53,7 @@ struct lmb;#if IMAGE_ENABLE_FIT #include <hash.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> # ifdef CONFIG_SPL_BUILD # ifdef CONFIG_SPL_CRC32_SUPPORT include/libfdt.h deleted +0
-29@@ -1,318 +0,0 @@ -#ifndef UBOOT_LIBFDT_H -#define UBOOT_LIBFDT_H -/* -* SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause -*/ - -#ifdef USE_HOSTCC -#include "../scripts/dtc/libfdt/libfdt.h" -#else -#include <linux/libfdt.h> -#endif - -/* U-Boot local hacks */ - -#ifndef SWIG /* Not available in Python */ -struct fdt_region { -int offset; -int size; -}; - -/* -* Flags for fdt_find_regions() -* -* Add a region for the string table (always the last region) -*/ -#define FDT_REG_ADD_STRING_TAB (1 << 0) - -/* -* Add all supernodes of a matching node/property, useful for creating a
- * valid subset tree
- */include/libfdt.h deleted +0
-15-#define FDT_REG_SUPERNODES (1 << 1) - -/* Add the FDT_BEGIN_NODE tags of subnodes, including their names */ -#define FDT_REG_DIRECT_SUBNODES (1 << 2) - -/* Add all subnodes of a matching node */ -#define FDT_REG_ALL_SUBNODES (1 << 3) - -/* Add a region for the mem_rsvmap table (always the first region) */ -#define FDT_REG_ADD_MEM_RSVMAP (1 << 4) - -/* Indicates what an fdt part is (node, property, value) */ -#define FDT_IS_NODE (1 << 0) -#define FDT_IS_PROP (1 << 1) -#define FDT_IS_VALUE (1 << 2)/* not supported */
-#defineFDT_IS_COMPAT(1 << 3) /* used
internally */
-#defineFDT_NODE_HAS_PROP(1 << 4) /* node
contains prop */include/libfdt.h deleted +0
-2- -#define FDT_ANY_GLOBAL (FDT_IS_NODE | FDT_IS_PROP |
FDT_IS_VALUE| \include/libfdt.h deleted +0
-2- FDT_IS_COMPAT) -#define FDT_IS_ANY 0x1f/* all the above */
include/libfdt.h deleted +0
-9- -/* We set a reasonable limit on the number of nested nodes */ -#define FDT_MAX_DEPTH 32 - -/* Decribes what we want to include from the current tag */ -enum want_t { -WANT_NOTHING , -WANT_NODES_ONLY ,/* No properties */ -WANT_NODES_AND_PROPS ,/* Everything for one level */
include/libfdt.h deleted +0
-1-WANT_ALL_NODES_AND_PROPS /* Everything for all levels */
include/libfdt.h deleted +0
-7-}; - -/* Keeps track of the state at parent nodes */ -struct fdt_subnode_stack { -int offset;/* Offset of node */ -enum want_t want;/* The 'want' value here */ -int included;/* 1 if we included this node, 0 if not */
include/libfdt.h deleted +0
-5-}; - -struct fdt_region_ptrs { -int depth;/* Current tree depth */ -int done;/* What we have completed scanning */
include/libfdt.h deleted +0
-1-enum want_t want;/* What we are currently including */
include/libfdt.h deleted +0
-1-char *end;/* Pointer to end of full node path */
include/libfdt.h deleted +0
-1-int nextoffset;/* Next node offset to check */
include/libfdt.h deleted +0
-5-}; - -/* The state of our finding algortihm */ -struct fdt_region_state { -struct fdt_subnode_stack stack[FDT_MAX_DEPTH ];/* node stack */
include/libfdt.h deleted +0
-1-struct fdt_region *region;/* Contains list of regions found */
include/libfdt.h deleted +0
-1-int count;/* Numnber of regions found */
include/libfdt.h deleted +0
-3-const void *fdt;/* FDT blob */ -int max_regions;/* Maximum regions to find */ -int can_merge;/* 1 if we can merge with previous region */
include/libfdt.h deleted +0
-1-int start;/* Start position of current region */
include/libfdt.h deleted +0
-1-struct fdt_region_ptrs ptrs;/* Pointers for what we are up to */
include/libfdt.h deleted +0
-7-}; - -/** -* fdt_find_regions() - find regions in device tree -* -* Given a list of nodes to include and properties to exclude, find -* the regions of the device tree which describe those included parts.
- *
- * The intent is to get a list of regions which will be invariant provided
- * those parts are invariant. For example, if you request a list of regions
- * for all nodes but exclude the property "data", then you will get the
- * same region contents regardless of any change to "data" properties.
- *
- * This function can be used to produce a byte-stream to send to a hashing
- * function to verify that critical parts of the FDT have not changed.
- *
- * Nodes which are given in 'inc' are included in the region list, as
- * are the names of the immediate subnodes nodes (but not the properties
- * or subnodes of those subnodes).
- *
- * For eaxample "/" means to include the root node, all root properties
- * and theFDT_BEGIN_NODEandFDT_END_NODEof all subnodes of /. The latter
- * ensures that we capture the names of the subnodes. In a hashing situation
- * it prevents the root node from changing at all Any change to non- excluded
- * properties, names of subnodes or number of subnodes would be detected.
- *
- * When used with FITs this provides the ability to hash and sign parts of
- * the FIT based on different configurations in the FIT. Then it is
- * impossible to change anything about that configuration (include images
- * attached to the configuration), but it may be possible to add new
- * configurations, new images or new signatures within the existing
- * framework.
- *
- * Adding new properties to a device tree may result in the string table
- * being extended (if the new property names are different from those
- * already added). This function can optionally include a region for
- * the string table so that this can be part of the hash too.
- *
- * The device tree header is not included in the list.
- *
- * @fdt: Device tree to check
- * @inc: List of node paths to included
- * @inc_count: Number of node paths in list
- * @exc_prop: List of properties names to exclude
- * @exc_prop_count: Number of properties in exclude list
- * @region: Returns list of regions
- * @max_region: Maximum length of region list
- * @path: Pointer to a temporary string for the function to
use for
- * building path names
- * @path_len: Length of path, must be large enough to hold the
longest
- * path in the tree
- * @add_string_tab: 1 to add a region for the string table
- * @return number of regions in list. If this is >max_regions then the
- * region array was exhausted. You should increasemax_regionsand try
- * the call again.
- */
-int fdt_find_regions(const void *fdt, char * const inc[], intinc_count,include/libfdt.h deleted +0
-8- char * const exc_prop[], int exc_prop_count, - struct fdt_region region[], int max_regions, - char *path, int path_len, int add_string_tab); - -/** -* fdt_first_region() - find regions in device tree -* -* Given a nodes and properties to include and properties to exclude, find
- * the regions of the device tree which describe those included parts.
- *
- * The use for this function is twofold. Firstly it provides a convenient
- * way of performing a structure-aware grep of the tree. For example it is
- * possible to grep for a node and get all the properties associated with
- * that node. Trees can be subsetted easily, by specifying the nodes that
- * are required, and then writing out the regions returned by this function.
- * This is useful for small resource-constrained systems, such as boot
- * loaders, which want to use an FDT but do not need to know about all of
- * it.
- *
- * Secondly it makes it easy to hash parts of the tree and detect changes.
- * The intent is to get a list of regions which will be invariant provided
- * those parts are invariant. For example, if you request a list of regions
- * for all nodes but exclude the property "data", then you will get the
- * same region contents regardless of any change to "data" properties.
- *
- * This function can be used to produce a byte-stream to send to a hashing
- * function to verify that critical parts of the FDT have not changed.
- * Note that semantically null changes in order could still cause false
- * hash misses. Such reordering might happen if the tree is regenerated
- * from source, and nodes are reordered (the bytes-stream will be emitted
- * in a different order and many hash functions will detect this). However
- * if an existing tree is modified using libfdt functions, such as
- *fdt_add_subnode()andfdt_setprop(), then this problem is avoided.
- *
- * The nodes/properties toinclude/excludeare defined by a function
- * provided by the caller. This function is called for each node and
- * property, and must return:
- *
- * 0 - to exclude this part
- * 1 - to include this part
- * -1 - forFDT_IS_PROPonly: no information is available, so
include
- * if its containing node is included
- *
- * The last case is only used to deal with properties. Often a property is
- * included if its containing node is included - this is the case where
- * -1 is returned.. However if the property is specifically required to be
- * included/excluded, then 0 or 1 can be returned. Note that including a
- * property when theFDT_REG_SUPERNODESflag is given will force its
- * containing node to be included since it is not valid to have a property
- * that is not in a node.
- *
- * Using the information provided, the inclusion of a node can be controlled
- * either by a node name or its compatible string, or any other property
- * that the function can determine.
- *
- * As an example, including node "/" means to include the root node and all
- * root properties. A flag provides a way of also including supernodes (of
- * which there is none for the root node), and another flag includes
- * immediate subnodes, so in this case we would get theFDT_BEGIN_NODEand
- *FDT_END_NODEof all subnodes of /.
- *
- * The subnode feature helps in a hashing situation since it prevents the
- * root node from changing at all. Any change to non-excluded properties,
- * names of subnodes or number of subnodes would be detected.
- *
- * When used with FITs this provides the ability to hash and sign parts of
- * the FIT based on different configurations in the FIT. Then it is
- * impossible to change anything about that configuration (include images
- * attached to the configuration), but it may be possible to add new
- * configurations, new images or new signatures within the existing
- * framework.
- *
- * Adding new properties to a device tree may result in the string table
- * being extended (if the new property names are different from those
- * already added). This function can optionally include a region for
- * the string table so that this can be part of the hash too. This is always
- * the last region.
- *
- * The FDT also has amem_rsvmaptable which can also be included, and is
- * always the first region if so.
- *
- * The device tree header is not included in the region list. Since the
- * contents of the FDT are changing (shrinking, often), the caller will need
- * to regenerate the header anyway.
- *
- * @fdt: Device tree to check
- * @h_include: Function to call to determine whether to
include a part or
- * not:
- *
- * @priv: Private pointer as passed tofdt_find_regions()
- * @fdt: Pointer to FDT blob
- * @offset: Offset of this node / property
- * @type: Type of this part,FDT_IS_...
- * @data: Pointer to data (node name, property name,
compatible
- * string, value (not yet supported)
- * @size: Size of data, or 0 if none
- * @return 0 to exclude, 1 to include, -1 if no
information is
- * available
- * @priv: Private pointer passed toh_include
- * @region: Returns list of regions, sorted by offset
- * @max_regions: Maximum length of region list
- * @path: Pointer to a temporary string for the function to
use for
- * building path names
- * @path_len: Length of path, must be large enough to hold the
longest
- * path in the tree
- * @flags: Various flags that control the region algortihm,
see
- *FDT_REG_...
- * @return number of regions in list. If this is >max_regions then the
- * region array was exhausted. You should increasemax_regionsand try
- * the call again. Only the firstmax_regionselements are available in the
- * array.
- *
- * On error a -ve value is return, which can be:
- *
- * -FDT_ERR_BADSTRUCTURE (too deep or more END tags than BEGIN
tags
- * -FDT_ERR_BADLAYOUT
- * -FDT_ERR_NOSPACE (path area is too small)
- */include/libfdt.h deleted +0
-2-int fdt_first_region(const void *fdt, - int (*h_include)(void *priv, const void *fdt,int offset,
include/libfdt.h deleted +0
-1- int type, const char *data, intsize),
include/libfdt.h deleted +0
-7- void *priv, struct fdt_region *region, - char *path, int path_len, int flags, - struct fdt_region_state *info); - -/** fdt_next_region() - find next region -* -* See fdt_first_region() for full description. This function finds the
- * next region according to the provided parameters, which must be the same
- * as passed tofdt_first_region().
- *
- * This function can additionally return -FDT_ERR_NOTFOUND when there are no
- * more regions
- */include/libfdt.h deleted +0
-2-int fdt_next_region(const void *fdt, - int (*h_include)(void *priv, const void *fdt, intoffset,
include/libfdt.h deleted +0
-1- int type, const char *data, intsize),
include/libfdt.h deleted +0
-6- void *priv, struct fdt_region *region, - char *path, int path_len, int flags, - struct fdt_region_state *info); - -/** -* fdt_add_alias_regions() - find aliases that point to existing regions
- *
- * Once a device tree grep is complete some of the nodes will be present
- * and some will have been dropped. This function checks all the alias nodes
- * to figure out which points point to nodes which are still present. These
- * aliases need to be kept, along with the nodes they reference.
- *
- * Given a list of regions function finds the aliases that still apply and
- * adds more regions to the list for these. This function is called after
- *fdt_next_region()has finished returning regions and requires the same
- * state.
- *
- * @fdt: Device tree file to reference
- * @region: List of regions that will be kept
- * @count: Number of regions
- * @max_regions: Number of entries that can fit in @region
- * @info: Region state as returned fromfdt_next_region()
- * @return new number of regions in @region (i.e. count + the number added)
- * or -FDT_ERR_NOSPACE if there was not enough space.
- */
-int fdt_add_alias_regions(const void *fdt, structfdt_region*region, int count,include/libfdt.h deleted +0
-1- int max_regions, struct fdt_region_state*info);
include/libfdt.h deleted +0
-3-#endif /* SWIG */ - -extern struct fdt_header *working_fdt;/* Pointer to the working fdt */
include/libfdt.h deleted +0
-5- -/* adding a ramdisk needs 0x44 bytes in version 2008.10 */ -#define FDT_RAMDISK_OVERHEAD 0x80 - -#endif /* UBOOT_LIBFDT_H */ include/libfdt_env.h deleted +0
-5@@ -1,5 +0,0 @@ -#ifdef USE_HOSTCC -#include "../scripts/dtc/libfdt/libfdt_env.h" -#else -#include <linux/libfdt_env.h> -#endif include/linux/libfdt.h +19
-0@@ -2,7 +2,314 @@#ifndef _INCLUDE_LIBFDT_H_#define _INCLUDE_LIBFDT_H_ +#ifndef USE_HOSTCC #include <linux/libfdt_env.h> +#endif #include "../../scripts/dtc/libfdt/libfdt.h" +/* U-Boot local hacks */ + +#ifndef SWIG /* Not available in Python */ +struct fdt_region { +int offset; +int size; +}; + +/* +* Flags for fdt_find_regions() +* +* Add a region for the string table (always the last region) +*/ +#define FDT_REG_ADD_STRING_TAB (1 << 0) + +/* +* Add all supernodes of a matching node/property, useful for creating a
+ * valid subset tree
+ */include/linux/libfdt.h +15
-0+#define FDT_REG_SUPERNODES (1 << 1) + +/* Add the FDT_BEGIN_NODE tags of subnodes, including their names */ +#define FDT_REG_DIRECT_SUBNODES (1 << 2) + +/* Add all subnodes of a matching node */ +#define FDT_REG_ALL_SUBNODES (1 << 3) + +/* Add a region for the mem_rsvmap table (always the first region) */ +#define FDT_REG_ADD_MEM_RSVMAP (1 << 4) + +/* Indicates what an fdt part is (node, property, value) */ +#define FDT_IS_NODE (1 << 0) +#define FDT_IS_PROP (1 << 1) +#define FDT_IS_VALUE (1 << 2)/* not supported */
+#defineFDT_IS_COMPAT(1 << 3) /* used
internally */
+#defineFDT_NODE_HAS_PROP(1 << 4) /* node
contains prop */include/linux/libfdt.h +2
-0+ +#define FDT_ANY_GLOBAL (FDT_IS_NODE | FDT_IS_PROP |
FDT_IS_VALUE| \include/linux/libfdt.h +2
-0+ FDT_IS_COMPAT) +#define FDT_IS_ANY 0x1f/* all the above */
include/linux/libfdt.h +9
-0+ +/* We set a reasonable limit on the number of nested nodes */ +#define FDT_MAX_DEPTH 32 + +/* Decribes what we want to include from the current tag */ +enum want_t { +WANT_NOTHING , +WANT_NODES_ONLY ,/* No properties */ +WANT_NODES_AND_PROPS ,/* Everything for one level */
include/linux/libfdt.h +1
-0+WANT_ALL_NODES_AND_PROPS /* Everything for all levels */
include/linux/libfdt.h +7
-0+}; + +/* Keeps track of the state at parent nodes */ +struct fdt_subnode_stack { +int offset;/* Offset of node */ +enum want_t want;/* The 'want' value here */ +int included;/* 1 if we included this node, 0 if not */
include/linux/libfdt.h +5
-0+}; + +struct fdt_region_ptrs { +int depth;/* Current tree depth */ +int done;/* What we have completed scanning */
include/linux/libfdt.h +1
-0+enum want_t want;/* What we are currently including */
include/linux/libfdt.h +1
-0+char *end;/* Pointer to end of full node path */
include/linux/libfdt.h +1
-0+int nextoffset;/* Next node offset to check */
include/linux/libfdt.h +5
-0+}; + +/* The state of our finding algortihm */ +struct fdt_region_state { +struct fdt_subnode_stack stack[FDT_MAX_DEPTH ];/* node stack */
include/linux/libfdt.h +1
-0+struct fdt_region *region;/* Contains list of regions found */
include/linux/libfdt.h +1
-0+int count;/* Numnber of regions found */
include/linux/libfdt.h +3
-0+const void *fdt;/* FDT blob */ +int max_regions;/* Maximum regions to find */ +int can_merge;/* 1 if we can merge with previous region */
include/linux/libfdt.h +1
-0+int start;/* Start position of current region */
include/linux/libfdt.h +1
-0+struct fdt_region_ptrs ptrs;/* Pointers for what we are up to */
include/linux/libfdt.h +7
-0+}; + +/** +* fdt_find_regions() - find regions in device tree +* +* Given a list of nodes to include and properties to exclude, find +* the regions of the device tree which describe those included parts.
+ *
+ * The intent is to get a list of regions which will be invariant provided
+ * those parts are invariant. For example, if you request a list of regions
+ * for all nodes but exclude the property "data", then you will get the
+ * same region contents regardless of any change to "data" properties.
+ *
+ * This function can be used to produce a byte-stream to send to a hashing
+ * function to verify that critical parts of the FDT have not changed.
+ *
+ * Nodes which are given in 'inc' are included in the region list, as
+ * are the names of the immediate subnodes nodes (but not the properties
+ * or subnodes of those subnodes).
+ *
+ * For eaxample "/" means to include the root node, all root properties
+ * and theFDT_BEGIN_NODEandFDT_END_NODEof all subnodes of /. The latter
+ * ensures that we capture the names of the subnodes. In a hashing situation
+ * it prevents the root node from changing at all Any change to non- excluded
+ * properties, names of subnodes or number of subnodes would be detected.
+ *
+ * When used with FITs this provides the ability to hash and sign parts of
+ * the FIT based on different configurations in the FIT. Then it is
+ * impossible to change anything about that configuration (include images
+ * attached to the configuration), but it may be possible to add new
+ * configurations, new images or new signatures within the existing
+ * framework.
+ *
+ * Adding new properties to a device tree may result in the string table
+ * being extended (if the new property names are different from those
+ * already added). This function can optionally include a region for
+ * the string table so that this can be part of the hash too.
+ *
+ * The device tree header is not included in the list.
+ *
+ * @fdt: Device tree to check
+ * @inc: List of node paths to included
+ * @inc_count: Number of node paths in list
+ * @exc_prop: List of properties names to exclude
+ * @exc_prop_count: Number of properties in exclude list
+ * @region: Returns list of regions
+ * @max_region: Maximum length of region list
+ * @path: Pointer to a temporary string for the function to
use for
+ * building path names
+ * @path_len: Length of path, must be large enough to hold the
longest
+ * path in the tree
+ * @add_string_tab: 1 to add a region for the string table
+ * @return number of regions in list. If this is >max_regions then the
+ * region array was exhausted. You should increasemax_regionsand try
+ * the call again.
+ */
+int fdt_find_regions(const void *fdt, char * const inc[], intinc_count,include/linux/libfdt.h +8
-0+ char * const exc_prop[], int exc_prop_count, + struct fdt_region region[], int max_regions, + char *path, int path_len, int add_string_tab); + +/** +* fdt_first_region() - find regions in device tree +* +* Given a nodes and properties to include and properties to exclude, find
+ * the regions of the device tree which describe those included parts.
+ *
+ * The use for this function is twofold. Firstly it provides a convenient
+ * way of performing a structure-aware grep of the tree. For example it is
+ * possible to grep for a node and get all the properties associated with
+ * that node. Trees can be subsetted easily, by specifying the nodes that
+ * are required, and then writing out the regions returned by this function.
+ * This is useful for small resource-constrained systems, such as boot
+ * loaders, which want to use an FDT but do not need to know about all of
+ * it.
+ *
+ * Secondly it makes it easy to hash parts of the tree and detect changes.
+ * The intent is to get a list of regions which will be invariant provided
+ * those parts are invariant. For example, if you request a list of regions
+ * for all nodes but exclude the property "data", then you will get the
+ * same region contents regardless of any change to "data" properties.
+ *
+ * This function can be used to produce a byte-stream to send to a hashing
+ * function to verify that critical parts of the FDT have not changed.
+ * Note that semantically null changes in order could still cause false
+ * hash misses. Such reordering might happen if the tree is regenerated
+ * from source, and nodes are reordered (the bytes-stream will be emitted
+ * in a different order and many hash functions will detect this). However
+ * if an existing tree is modified using libfdt functions, such as
+ *fdt_add_subnode()andfdt_setprop(), then this problem is avoided.
+ *
+ * The nodes/properties toinclude/excludeare defined by a function
+ * provided by the caller. This function is called for each node and
+ * property, and must return:
+ *
+ * 0 - to exclude this part
+ * 1 - to include this part
+ * -1 - forFDT_IS_PROPonly: no information is available, so
include
+ * if its containing node is included
+ *
+ * The last case is only used to deal with properties. Often a property is
+ * included if its containing node is included - this is the case where
+ * -1 is returned.. However if the property is specifically required to be
+ * included/excluded, then 0 or 1 can be returned. Note that including a
+ * property when theFDT_REG_SUPERNODESflag is given will force its
+ * containing node to be included since it is not valid to have a property
+ * that is not in a node.
+ *
+ * Using the information provided, the inclusion of a node can be controlled
+ * either by a node name or its compatible string, or any other property
+ * that the function can determine.
+ *
+ * As an example, including node "/" means to include the root node and all
+ * root properties. A flag provides a way of also including supernodes (of
+ * which there is none for the root node), and another flag includes
+ * immediate subnodes, so in this case we would get theFDT_BEGIN_NODEand
+ *FDT_END_NODEof all subnodes of /.
+ *
+ * The subnode feature helps in a hashing situation since it prevents the
+ * root node from changing at all. Any change to non-excluded properties,
+ * names of subnodes or number of subnodes would be detected.
+ *
+ * When used with FITs this provides the ability to hash and sign parts of
+ * the FIT based on different configurations in the FIT. Then it is
+ * impossible to change anything about that configuration (include images
+ * attached to the configuration), but it may be possible to add new
+ * configurations, new images or new signatures within the existing
+ * framework.
+ *
+ * Adding new properties to a device tree may result in the string table
+ * being extended (if the new property names are different from those
+ * already added). This function can optionally include a region for
+ * the string table so that this can be part of the hash too. This is always
+ * the last region.
+ *
+ * The FDT also has amem_rsvmaptable which can also be included, and is
+ * always the first region if so.
+ *
+ * The device tree header is not included in the region list. Since the
+ * contents of the FDT are changing (shrinking, often), the caller will need
+ * to regenerate the header anyway.
+ *
+ * @fdt: Device tree to check
+ * @h_include: Function to call to determine whether to
include a part or
+ * not:
+ *
+ * @priv: Private pointer as passed tofdt_find_regions()
+ * @fdt: Pointer to FDT blob
+ * @offset: Offset of this node / property
+ * @type: Type of this part,FDT_IS_...
+ * @data: Pointer to data (node name, property name,
compatible
+ * string, value (not yet supported)
+ * @size: Size of data, or 0 if none
+ * @return 0 to exclude, 1 to include, -1 if no
information is
+ * available
+ * @priv: Private pointer passed toh_include
+ * @region: Returns list of regions, sorted by offset
+ * @max_regions: Maximum length of region list
+ * @path: Pointer to a temporary string for the function to
use for
+ * building path names
+ * @path_len: Length of path, must be large enough to hold the
longest
+ * path in the tree
+ * @flags: Various flags that control the region algortihm,
see
+ *FDT_REG_...
+ * @return number of regions in list. If this is >max_regions then the
+ * region array was exhausted. You should increasemax_regionsand try
+ * the call again. Only the firstmax_regionselements are available in the
+ * array.
+ *
+ * On error a -ve value is return, which can be:
+ *
+ * -FDT_ERR_BADSTRUCTURE (too deep or more END tags than BEGIN
tags
+ * -FDT_ERR_BADLAYOUT
+ * -FDT_ERR_NOSPACE (path area is too small)
+ */include/linux/libfdt.h +2
-0+int fdt_first_region(const void *fdt, + int (*h_include)(void *priv, const void *fdt,int offset,
include/linux/libfdt.h +1
-0+ int type, const char *data, intsize),
include/linux/libfdt.h +7
-0+ void *priv, struct fdt_region *region, + char *path, int path_len, int flags, + struct fdt_region_state *info); + +/** fdt_next_region() - find next region +* +* See fdt_first_region() for full description. This function finds the
+ * next region according to the provided parameters, which must be the same
+ * as passed tofdt_first_region().
+ *
+ * This function can additionally return -FDT_ERR_NOTFOUND when there are no
+ * more regions
+ */include/linux/libfdt.h +2
-0+int fdt_next_region(const void *fdt, + int (*h_include)(void *priv, const void *fdt, intoffset,
include/linux/libfdt.h +1
-0+ int type, const char *data, intsize),
include/linux/libfdt.h +6
-0+ void *priv, struct fdt_region *region, + char *path, int path_len, int flags, + struct fdt_region_state *info); + +/** +* fdt_add_alias_regions() - find aliases that point to existing regions
+ *
+ * Once a device tree grep is complete some of the nodes will be present
+ * and some will have been dropped. This function checks all the alias nodes
+ * to figure out which points point to nodes which are still present. These
+ * aliases need to be kept, along with the nodes they reference.
+ *
+ * Given a list of regions function finds the aliases that still apply and
+ * adds more regions to the list for these. This function is called after
+ *fdt_next_region()has finished returning regions and requires the same
+ * state.
+ *
+ * @fdt: Device tree file to reference
+ * @region: List of regions that will be kept
+ * @count: Number of regions
+ * @max_regions: Number of entries that can fit in @region
+ * @info: Region state as returned fromfdt_next_region()
+ * @return new number of regions in @region (i.e. count + the number added)
+ * or -FDT_ERR_NOSPACE if there was not enough space.
+ */
+int fdt_add_alias_regions(const void *fdt, structfdt_region*region, int count,include/linux/libfdt.h +1
-0+ int max_regions, struct fdt_region_state*info);
include/linux/libfdt.h +3
-0+#endif /* SWIG */ + +extern struct fdt_header *working_fdt;/* Pointer to the working fdt */
include/linux/libfdt.h +4
-0+ +/* adding a ramdisk needs 0x44 bytes in version 2008.10 */ +#define FDT_RAMDISK_OVERHEAD 0x80 +#endif /* _INCLUDE_LIBFDT_H_ */ include/linux/libfdt_env.h +6
-0@@ -1,3 +1,11 @@ +#ifdef USE_HOSTCC +#include "../scripts/dtc/libfdt/libfdt_env.h" +#else +/* +* This position of the include guard is intentional. +* Using the same guard name as that of
scripts/dtc/libfdt/libfdt_env.h
+ * prevents it from being included.
+ */
#ifndef_LIBFDT_ENV_H
#define_LIBFDT_ENV_Hinclude/linux/libfdt_env.h +1
-0@@ -20,3 +28,4 @@ typedef __be64 fdt64_t;#define strtoul (cp, endp, base) simple_strtoul(cp, endp, base)#endif /* _LIBFDT_ENV_H */ +#endif lib/efi_loader/efi_boottime.c +1
-1@@ -12,7 +12,7 @@#include <environment.h> #include <malloc.h> #include <asm/global_data.h> -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #include <u-boot/crc.h> #include <bootm.h> #include <inttypes.h> lib/efi_loader/efi_memory.c +1
-1@@ -10,7 +10,7 @@#include <efi_loader.h> #include <malloc.h> #include <asm/global_data.h> -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #include <linux/list_sort.h> #include <inttypes.h> #include <watchdog.h> lib/fdtdec.c +1
-1@@ -11,7 +11,7 @@#include <errno.h> #include <fdtdec.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <serial.h> #include <asm/sections.h> #include <linux/ctype.h> lib/fdtdec_common.c +1
-1@@ -10,7 +10,7 @@#ifndef USE_HOSTCC #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #else #include "libfdt.h" lib/fdtdec_test.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <os.h> lib/libfdt/Makefile +2
-0@@ -23,3 +23,5 @@ obj-y += fdt_ro.o # U-Boot own file obj-y += fdt_region.o + +ccflags-y := -I$(srctree)/scripts/dtc/libfdtlib/libfdt/fdt_region.c +2
-2@@ -5,11 +5,11 @@* SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause */ -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #ifndef USE_HOSTCC #include <fdt.h> -#include <libfdt.h> +#include <linux/libfdt.h> #else #include "fdt_host.h" #endif lib/libfdt/fdt_ro.c +2
-2@@ -3,11 +3,11 @@* Copyright (C) 2006 David Gibson, IBM Corporation. * SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause */ -#include <libfdt_env.h> +#include <linux/libfdt_env.h> #ifndef USE_HOSTCC #include <fdt.h> -#include <libfdt.h> +#include <linux/libfdt.h> #else #include "fdt_host.h" #endif lib/of_live.c +1
-1@@ -10,7 +10,7 @@*/ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <of_live.h> #include <malloc.h> #include <dm/of_access.h> tools/dtoc/dtb_platdata.py +1
-1@@ -422,7 +422,7 @@ class DtbPlatdata(object): """ self.out_header() self.out('#include <stdbool.h>\n') - self.out('#include <libfdt.h>\n') + self.out('#include <linux/libfdt.h>\n') # Output the struct definition for name in sorted(structs):tools/dtoc/test_dtoc.py +1
-1@@ -33,7 +33,7 @@ HEADER = '''/* */ #include <stdbool.h> -#include <libfdt.h>''' +#include <linux/libfdt.h>''' C_HEADER = '''/* * DO NOT MODIFYtools/fdt_host.h +1
-1@@ -8,7 +8,7 @@#define __FDT_HOST_H__/* Make sure to include u-boot version of libfdt include files */ -#include "../include/libfdt.h" +#include "../include/linux/libfdt.h" #include "../include/fdt_support.h" /** tools/ifdtool.c +1
-1@@ -19,7 +19,7 @@#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "ifdtool.h" #undef DEBUG
Signature · 10 lines
Paul Kocialkowski, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 484 bytes Desc: This is a digitally signed message part URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180306/a6c1efa1/attachment-0001.sig>
PATCH 1/1 libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Quoted 7 lines · Paul Kocialkowski
Hi,
Quoted 3 lines · Masahiro Yamada
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from
/usr/include/instead of using internal ones.
Quoted 5 lines
Sorry for being late to the party here, but isn't this issue fixed by the patch I sent a few days ago "tools: Include U-Boot libfdt headers from their actual path": https://patchwork.ozlabs.org/patch/880924/ ?
I doubt we need to keep both changes here. What do you think?
I did both, intentionally. This patch fails for me on host tools, without your patch. However, trying harder to match the Linux kernel structure will be helpful long term I think.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180306/1cf5e9a9/attachment.sig>
PATCH 1/1 libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
In reply to Paul Kocialkowski2018-03-06 17:39 GMT+09:00 Paul Kocialkowski <[email protected]>:
Quoted 7 lines
Hi,
Quoted 3 lines · Masahiro Yamada
Thomas reported U-Boot failed to build host tools if libfdt-devel package is installed because tools include libfdt headers from
/usr/include/instead of using internal ones.
Quoted 5 lines
Sorry for being late to the party here, but isn't this issue fixed by the patch I sent a few days ago "tools: Include U-Boot libfdt headers from their actual path": https://patchwork.ozlabs.org/patch/880924/ ?
I doubt we need to keep both changes here. What do you think?
I noticed your patch just today.
Right, seems your patch fixed the issue.
Signature · 2 lines
Best Regards Masahiro Yamada