diff options
Diffstat (limited to 'drivers')
351 files changed, 354 insertions, 4 deletions
diff --git a/drivers/ata/libata.c b/drivers/ata/libata.c index d41200f6c26..47e2c5c1cc4 100644 --- a/drivers/ata/libata.c +++ b/drivers/ata/libata.c @@ -5,6 +5,8 @@ * port from the libata of linux kernel */ +#include <common.h> +#include <compiler.h> #include <libata.h> u64 ata_id_n_sectors(u16 *id) diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c index 46b7677783f..554175bc005 100644 --- a/drivers/ata/mtk_ahci.c +++ b/drivers/ata/mtk_ahci.c @@ -10,6 +10,7 @@ #include <common.h> #include <ahci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <dm/of_access.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index b78e311fc3b..1012cb53742 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -38,6 +38,7 @@ #include <dm.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <fis.h> diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c index 9c7f14e98f4..6c7cc24cbd9 100644 --- a/drivers/bios_emulator/atibios.c +++ b/drivers/bios_emulator/atibios.c @@ -46,6 +46,7 @@ * BIOS in u-boot. ****************************************************************************/ #include <common.h> +#include <compiler.h> #include <bios_emul.h> #include <errno.h> #include <log.h> diff --git a/drivers/block/blkcache.c b/drivers/block/blkcache.c index eca66198edf..b53420a3a88 100644 --- a/drivers/block/blkcache.c +++ b/drivers/block/blkcache.c @@ -9,6 +9,7 @@ #include <log.h> #include <malloc.h> #include <part.h> +#include <asm/global_data.h> #include <linux/ctype.h> #include <linux/list.h> diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index f57f690d3c0..9d7d68c007f 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -11,6 +11,7 @@ #include <os.h> #include <malloc.h> #include <sandboxblockdev.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/errno.h> #include <dm/device-internal.h> diff --git a/drivers/bootcount/bootcount_ram.c b/drivers/bootcount/bootcount_ram.c index 078c84d5eca..8cc30cf40ef 100644 --- a/drivers/bootcount/bootcount_ram.c +++ b/drivers/bootcount/bootcount_ram.c @@ -7,6 +7,7 @@ #include <common.h> #include <cpu_func.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c index cb9ebbb4f9c..2c7983d0cea 100644 --- a/drivers/cache/cache-v5l2.c +++ b/drivers/cache/cache-v5l2.c @@ -9,6 +9,7 @@ #include <cache.h> #include <dm.h> #include <hang.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/ofnode.h> #include <linux/bitops.h> diff --git a/drivers/cache/sandbox_cache.c b/drivers/cache/sandbox_cache.c index 9050c4cf340..0fb767e4339 100644 --- a/drivers/cache/sandbox_cache.c +++ b/drivers/cache/sandbox_cache.c @@ -7,6 +7,7 @@ #include <cache.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index bac1d98e197..cca6d674122 100644 --- a/drivers/clk/altera/clk-agilex.c +++ b/drivers/clk/altera/clk-agilex.c @@ -5,6 +5,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c index 1812152d56f..578597a16e8 100644 --- a/drivers/clk/altera/clk-arria10.c +++ b/drivers/clk/altera/clk-arria10.c @@ -13,6 +13,7 @@ #include <dm/lists.h> #include <dm/util.h> #include <linux/bitops.h> +#include <asm/global_data.h> #include <asm/arch/clock_manager.h> diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index a0906716250..97f00f505dd 100644 --- a/drivers/clk/aspeed/clk_ast2500.c +++ b/drivers/clk/aspeed/clk_ast2500.c @@ -7,6 +7,7 @@ #include <clk-uclass.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/scu_ast2500.h> #include <dm/lists.h> diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c index f72d384047f..acb7eca7414 100644 --- a/drivers/clk/aspeed/clk_ast2600.c +++ b/drivers/clk/aspeed/clk_ast2600.c @@ -10,6 +10,7 @@ #include <dm/lists.h> #include <linux/delay.h> #include <asm/arch/scu_ast2600.h> +#include <asm/global_data.h> #include <dt-bindings/clock/ast2600-clock.h> #include <dt-bindings/reset/ast2600-reset.h> diff --git a/drivers/clk/at91/compat.c b/drivers/clk/at91/compat.c index e514f26656e..ba288cab9dc 100644 --- a/drivers/clk/at91/compat.c +++ b/drivers/clk/at91/compat.c @@ -9,6 +9,7 @@ #include <common.h> #include <clk-uclass.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/lists.h> #include <dm/util.h> diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 660e2319214..1fa42d728b5 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -4,10 +4,9 @@ * Wenyou.Yang <wenyou.yang@atmel.com> */ +#include <common.h> #include <asm/io.h> #include <clk-uclass.h> -#include <common.h> - #include "pmc.h" static int at91_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index d5c4e3cbe51..b87288da7a2 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -20,6 +20,7 @@ #include <linux/bug.h> #include <linux/clk-provider.h> #include <linux/err.h> +#include <asm/global_data.h> static inline const struct clk_ops *clk_dev_ops(struct udevice *dev) { diff --git a/drivers/clk/clk_octeon.c b/drivers/clk/clk_octeon.c index ce274549da0..fa50265184f 100644 --- a/drivers/clk/clk_octeon.c +++ b/drivers/clk/clk_octeon.c @@ -5,6 +5,7 @@ #include <clk-uclass.h> #include <dm.h> +#include <asm/global_data.h> #include <dt-bindings/clock/octeon-clock.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c index 5a10d4640d7..ef06a7fb9f6 100644 --- a/drivers/clk/clk_pic32.c +++ b/drivers/clk/clk_pic32.c @@ -10,6 +10,7 @@ #include <div64.h> #include <time.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index d4f10485919..0df87e7bf44 100644 --- a/drivers/clk/clk_stm32mp1.c +++ b/drivers/clk/clk_stm32mp1.c @@ -17,6 +17,7 @@ #include <time.h> #include <vsprintf.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dt-bindings/clock/stm32mp1-clks.h> #include <dt-bindings/clock/stm32mp1-clksrc.h> diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c index bf32d8317ab..3e3320900d5 100644 --- a/drivers/clk/clk_zynq.c +++ b/drivers/clk/clk_zynq.c @@ -11,6 +11,7 @@ #include <clk-uclass.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c index c5ced1f132c..0255ccaf8a4 100644 --- a/drivers/clk/mpc83xx_clk.c +++ b/drivers/clk/mpc83xx_clk.c @@ -11,6 +11,7 @@ #include <dm.h> #include <log.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dt-bindings/clk/mpc83xx-clk.h> #include <asm/arch/soc.h> diff --git a/drivers/clk/renesas/clk-rcar-gen2.c b/drivers/clk/renesas/clk-rcar-gen2.c index 16da10c8dd8..b423c9414b2 100644 --- a/drivers/clk/renesas/clk-rcar-gen2.c +++ b/drivers/clk/renesas/clk-rcar-gen2.c @@ -15,6 +15,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dt-bindings/clock/renesas-cpg-mssr.h> diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c index 30a101fe862..3223becd753 100644 --- a/drivers/clk/renesas/clk-rcar-gen3.c +++ b/drivers/clk/renesas/clk-rcar-gen3.c @@ -16,6 +16,7 @@ #include <errno.h> #include <log.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c index a2a5939d4b1..6b746f4c658 100644 --- a/drivers/clk/rockchip/clk_px30.c +++ b/drivers/clk/rockchip/clk_px30.c @@ -14,6 +14,7 @@ #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru_px30.h> #include <asm/arch-rockchip/hardware.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 6226d55658e..221a5bd400f 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -14,6 +14,7 @@ #include <malloc.h> #include <mapmem.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru.h> diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c index a05efcfbaba..5a838b9e9a5 100644 --- a/drivers/clk/rockchip/clk_rk3308.c +++ b/drivers/clk/rockchip/clk_rk3308.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cru_rk3308.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 55ebac7057d..f8cbda44551 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -18,6 +18,7 @@ #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru.h> #include <asm/arch-rockchip/hardware.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <dt-bindings/clock/rk3399-cru.h> diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c index 1e22db0cb71..555155b16da 100644 --- a/drivers/clk/rockchip/clk_rv1108.c +++ b/drivers/clk/rockchip/clk_rv1108.c @@ -12,6 +12,7 @@ #include <log.h> #include <malloc.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru_rv1108.h> diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index e44b90ad6ab..c999df213a8 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <fdtdec.h> #include <asm/io.h> #include "clk.h" diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c index 7e8f3afb2d6..da1509b043a 100644 --- a/drivers/core/device-remove.c +++ b/drivers/core/device-remove.c @@ -18,6 +18,7 @@ #include <dm/uclass-internal.h> #include <dm/util.h> #include <power-domain.h> +#include <asm/global_data.h> int device_chld_unbind(struct udevice *dev, struct driver *drv) { diff --git a/drivers/core/device.c b/drivers/core/device.c index 8629df8defb..82a00989604 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -11,6 +11,7 @@ #include <common.h> #include <cpu_func.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk.h> #include <fdtdec.h> diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index ed55f69de12..83a50b6a3a7 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -12,6 +12,7 @@ #include <dm.h> #include <fdt_support.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device-internal.h> diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c index 0a12e9b26f8..9960e6b310b 100644 --- a/drivers/core/of_access.c +++ b/drivers/core/of_access.c @@ -22,6 +22,7 @@ #include <common.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <linux/bug.h> #include <linux/libfdt.h> #include <dm/of_access.h> diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 7a5f4c0a73d..26c9d040564 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -16,6 +16,7 @@ #include <dm/ofnode.h> #include <linux/err.h> #include <linux/ioport.h> +#include <asm/global_data.h> int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) { diff --git a/drivers/core/read.c b/drivers/core/read.c index 4d9b5dd0384..14fd1214d62 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -8,6 +8,7 @@ #include <dm.h> #include <dm/of_access.h> #include <mapmem.h> +#include <asm/global_data.h> #include <asm/types.h> #include <asm/io.h> #include <linux/ioport.h> diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 4baacabd015..b51ce108c14 100644 --- a/drivers/core/regmap.c +++ b/drivers/core/regmap.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> diff --git a/drivers/core/root.c b/drivers/core/root.c index 2bfa75b4725..26dd79dcffd 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -11,6 +11,7 @@ #include <fdtdec.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <dm/acpi.h> #include <dm/device.h> diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index f38122d54b5..1a4ea7a57a6 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -13,6 +13,7 @@ #include <errno.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <dm/device.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 1d1e49efea9..abddbef57b8 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -7,6 +7,7 @@ #include <cpu.h> #include <dm.h> #include <thermal.h> +#include <asm/global_data.h> #include <asm/system.h> #include <asm/arch/sci/sci.h> #include <asm/arch/sys_proto.h> diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index 0b10c173a3e..b30dceba37c 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -10,6 +10,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <linux/bitops.h> diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c index e91fe644580..f5ae35e1325 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <u-boot/rsa-mod-exp.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/ddr/altera/sdram_agilex.c b/drivers/ddr/altera/sdram_agilex.c index a4ceb36461d..65ecdd022c4 100644 --- a/drivers/ddr/altera/sdram_agilex.c +++ b/drivers/ddr/altera/sdram_agilex.c @@ -13,6 +13,7 @@ #include <log.h> #include <ram.h> #include <reset.h> +#include <asm/global_data.h> #include "sdram_soc64.h" #include <wait_bit.h> #include <asm/arch/firewall.h> diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c index 3c58f59f3ab..4a8f8dea1c4 100644 --- a/drivers/ddr/altera/sdram_arria10.c +++ b/drivers/ddr/altera/sdram_arria10.c @@ -13,6 +13,7 @@ #include <wait_bit.h> #include <watchdog.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/fpga_manager.h> #include <asm/arch/misc.h> diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c index 03a270f2639..3caa2e14f94 100644 --- a/drivers/ddr/altera/sdram_s10.c +++ b/drivers/ddr/altera/sdram_s10.c @@ -15,6 +15,7 @@ #include <log.h> #include <ram.h> #include <reset.h> +#include <asm/global_data.h> #include "sdram_s10.h" #include <wait_bit.h> #include <asm/arch/firewall.h> diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c index 5aba655e5f1..a08f0953e55 100644 --- a/drivers/ddr/altera/sdram_soc64.c +++ b/drivers/ddr/altera/sdram_soc64.c @@ -21,6 +21,7 @@ #include <asm/arch/system_manager.h> #include <asm/arch/reset_manager.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <linux/sizes.h> diff --git a/drivers/ddr/imx/imx8m/helper.c b/drivers/ddr/imx/imx8m/helper.c index 5ebf54f5f4a..f23904bf712 100644 --- a/drivers/ddr/imx/imx8m/helper.c +++ b/drivers/ddr/imx/imx8m/helper.c @@ -6,6 +6,7 @@ #include <common.h> #include <log.h> #include <spl.h> +#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/demo/demo-shape.c b/drivers/demo/demo-shape.c index 8129317ba1b..b6b29bcb31b 100644 --- a/drivers/demo/demo-shape.c +++ b/drivers/demo/demo-shape.c @@ -10,6 +10,7 @@ #include <log.h> #include <malloc.h> #include <dm-demo.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/demo/demo-uclass.c b/drivers/demo/demo-uclass.c index a020ecb24fa..815f8de6453 100644 --- a/drivers/demo/demo-uclass.c +++ b/drivers/demo/demo-uclass.c @@ -13,6 +13,7 @@ #include <fdtdec.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/list.h> diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c index 44e1ac54c3f..4bea7fd900d 100644 --- a/drivers/fpga/socfpga_arria10.c +++ b/drivers/fpga/socfpga_arria10.c @@ -4,6 +4,7 @@ */ #include <image.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/fpga_manager.h> #include <asm/arch/reset_manager.h> diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c index 8ce140a2e1a..6b394869dbf 100644 --- a/drivers/fpga/zynqmppl.c +++ b/drivers/fpga/zynqmppl.c @@ -7,6 +7,7 @@ #include <console.h> #include <common.h> +#include <compiler.h> #include <cpu_func.h> #include <log.h> #include <zynqmppl.h> diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 0c06301a81c..7a7cfe86114 100644 --- a/drivers/gpio/74x164_gpio.c +++ b/drivers/gpio/74x164_gpio.c @@ -13,6 +13,7 @@ #include <dm.h> #include <fdtdec.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <dm/device_compat.h> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c index f4582b1467c..edc5a8093b0 100644 --- a/drivers/gpio/altera_pio.c +++ b/drivers/gpio/altera_pio.c @@ -9,6 +9,7 @@ #include <errno.h> #include <malloc.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index e7b8f231ccf..f615fce32e1 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -11,6 +11,7 @@ #include <fdtdec.h> #include <malloc.h> #include <asm/arch/hardware.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <linux/bitops.h> #include <mach/gpio.h> diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index 9a52a5e414f..d106e9846df 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -11,6 +11,7 @@ #include <fdtdec.h> #include <malloc.h> #include <asm/io.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <dt-bindings/gpio/gpio.h> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index beae34f233a..daaac5e7844 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -7,6 +7,7 @@ #include <clk.h> #include <dm.h> #include <malloc.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/pinctrl.h> #include <errno.h> diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index ee7de4c17e9..f14be871e8d 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -7,6 +7,7 @@ #include <clk.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index bad6b71e0c3..4a9b74e1ca1 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -16,6 +16,7 @@ #include <fdtdec.h> #include <malloc.h> #include <acpi/acpi_device.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <dm/device_compat.h> #include <linux/bug.h> diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c index 68d72eedc5a..20af35de2cf 100644 --- a/drivers/gpio/intel_broadwell_gpio.c +++ b/drivers/gpio/intel_broadwell_gpio.c @@ -12,6 +12,7 @@ #include <pci.h> #include <syscon.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/pci.h> diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 11d4be04f56..63a07b9592a 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -34,6 +34,7 @@ #include <pch.h> #include <pci.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/pci.h> diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index af6c8383aa6..e1ff84c1c03 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 4b2b18fdb53..5775a22abd4 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -9,6 +9,7 @@ #include <common.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/gpio/nx_gpio.c b/drivers/gpio/nx_gpio.c index 52851e58b69..e2565d70953 100644 --- a/drivers/gpio/nx_gpio.c +++ b/drivers/gpio/nx_gpio.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 336ece47785..316a28efa6b 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -20,6 +20,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <dm/device-internal.h> diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index 6d38646ef66..359646266c9 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -28,6 +28,7 @@ #include <i2c.h> #include <log.h> #include <asm-generic/gpio.h> +#include <asm/global_data.h> #include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index 253a9ba2f84..975a2af3ccb 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> #include <linux/bitops.h> diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 796fe3e1104..76f35ac5d92 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -10,6 +10,7 @@ #include <fdtdec.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> #include <dm/device-internal.h> diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c index fcce90c53c2..339392dcd35 100644 --- a/drivers/gpio/vybrid_gpio.c +++ b/drivers/gpio/vybrid_gpio.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> #include <asm/io.h> diff --git a/drivers/hwspinlock/hwspinlock-uclass.c b/drivers/hwspinlock/hwspinlock-uclass.c index 9da79455ed3..8997243421c 100644 --- a/drivers/hwspinlock/hwspinlock-uclass.c +++ b/drivers/hwspinlock/hwspinlock-uclass.c @@ -11,6 +11,7 @@ #include <dm/device-internal.h> #include <dm/device_compat.h> #include <linux/compat.h> +#include <asm/global_data.h> static inline const struct hwspinlock_ops * hwspinlock_dev_ops(struct udevice *dev) diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c index 3eb6db4878d..aca8de94369 100644 --- a/drivers/i2c/at91_i2c.c +++ b/drivers/i2c/at91_i2c.c @@ -6,6 +6,7 @@ */ #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <clk.h> diff --git a/drivers/i2c/cros_ec_tunnel.c b/drivers/i2c/cros_ec_tunnel.c index 970b91cfd30..75828b6e7c2 100644 --- a/drivers/i2c/cros_ec_tunnel.c +++ b/drivers/i2c/cros_ec_tunnel.c @@ -9,6 +9,7 @@ #include <cros_ec.h> #include <errno.h> #include <i2c.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c index 879ddc67b69..39bcacc17a7 100644 --- a/drivers/i2c/exynos_hs_i2c.c +++ b/drivers/i2c/exynos_hs_i2c.c @@ -13,6 +13,7 @@ #include <asm/arch/clk.h> #include <asm/arch/cpu.h> #include <asm/arch/pinmux.h> +#include <asm/global_data.h> #include <linux/delay.h> #include "s3c24x0_i2c.h" diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 875d30762e3..52835759686 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -11,6 +11,7 @@ #include <i2c.h> /* Functional interface */ #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/fsl_i2c.h> /* HW definitions */ #include <clk.h> diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c index da50d86cc8b..85cf75ecd92 100644 --- a/drivers/i2c/i2c_core.c +++ b/drivers/i2c/i2c_core.c @@ -10,6 +10,7 @@ #include <common.h> #include <i2c.h> #include <linker_lists.h> +#include <asm/global_data.h> struct i2c_adapter *i2c_get_adapter(int index) { diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index f91a96a3aa3..ba7817478c3 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -13,6 +13,7 @@ #include <gdsys_fpga.h> #endif #include <log.h> +#include <asm/global_data.h> #include <asm/unaligned.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c index 83301bbf1b3..d975e782649 100644 --- a/drivers/i2c/iproc_i2c.c +++ b/drivers/i2c/iproc_i2c.c @@ -4,6 +4,7 @@ * */ +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <config.h> diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c index 928e02b7af1..ad730e0e79f 100644 --- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c +++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <linux/delay.h> diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 8d6e208a0b8..4ca206115f8 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -7,6 +7,7 @@ * Peng Fan <peng.fan@nxp.com> */ +#include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> #include <common.h> diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index d21a84c4fa8..55858cf653f 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -11,6 +11,7 @@ #include <i2c.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm-generic/gpio.h> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index 37b1a06ee03..5df69f14598 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -10,6 +10,7 @@ #include <common.h> #include <i2c.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 0362ec67632..3c91515bffb 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -18,6 +18,7 @@ #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c index c63a7325576..07cda0fa679 100644 --- a/drivers/i2c/nx_i2c.c +++ b/drivers/i2c/nx_i2c.c @@ -7,6 +7,7 @@ #include <asm/arch/reset.h> #include <asm/arch/clk.h> #include <asm/arch/nx_gpio.h> +#include <asm/global_data.h> #include <linux/delay.h> #define I2C_WRITE 0 diff --git a/drivers/i2c/ocores_i2c.c b/drivers/i2c/ocores_i2c.c index 48ed1d5bffb..088ba9a6a3c 100644 --- a/drivers/i2c/ocores_i2c.c +++ b/drivers/i2c/ocores_i2c.c @@ -13,6 +13,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 0c8915605db..56f0f69885e 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -16,6 +16,7 @@ #else #include <asm/arch/s3c24x0_cpu.h> #endif +#include <asm/global_data.h> #include <asm/io.h> #include <i2c.h> #include "s3c24x0_i2c.h" diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index f857307e6a4..26a87006698 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -10,6 +10,7 @@ #include <common.h> #include <i2c.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index 1031066b8c4..db69c18cb6d 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -25,6 +25,7 @@ #endif #endif #include <i2c.h> +#include <asm/global_data.h> #include <linux/delay.h> #if defined(CONFIG_SOFT_I2C_GPIO_SCL) diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c index 88e4e9a5c9d..588f6bdcc4b 100644 --- a/drivers/i2c/tegra186_bpmp_i2c.c +++ b/drivers/i2c/tegra186_bpmp_i2c.c @@ -9,6 +9,7 @@ #include <log.h> #include <misc.h> #include <asm/arch-tegra/bpmp_abi.h> +#include <asm/global_data.h> #include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index 1ea11fd67b4..565d99e7e57 100644 --- a/drivers/input/i8042.c +++ b/drivers/input/i8042.c @@ -14,6 +14,7 @@ #include <input.h> #include <keyboard.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 8dd93a3e11e..ff21a08388a 100644 --- a/drivers/mailbox/k3-sec-proxy.c +++ b/drivers/mailbox/k3-sec-proxy.c @@ -9,6 +9,7 @@ #include <common.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <linux/types.h> diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 90f9cd246a0..af65c559dc6 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -16,6 +16,7 @@ #include <errno.h> #include <atsha204a-i2c.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <u-boot/crc.h> diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index f460b1a64c8..e77b3af770e 100644 --- a/drivers/misc/fs_loader.c +++ b/drivers/misc/fs_loader.c @@ -11,6 +11,7 @@ #include <fs.h> #include <fs_loader.h> #include <log.h> +#include <asm/global_data.h> #include <linux/string.h> #include <mapmem.h> #include <malloc.h> diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index be181229370..38111c52548 100644 --- a/drivers/misc/imx8/fuse.c +++ b/drivers/misc/imx8/fuse.c @@ -9,6 +9,7 @@ #include <fuse.h> #include <asm/arch/sci/sci.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <linux/arm-smccc.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index 72a34732637..035a600f71c 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -7,6 +7,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c index 20b74fbb18d..27ecce710fc 100644 --- a/drivers/misc/imx8/scu_api.c +++ b/drivers/misc/imx8/scu_api.c @@ -8,6 +8,7 @@ #include <common.h> #include <hang.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <asm/arch/sci/sci.h> diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index f2366d6592d..dbee7f77db3 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -8,6 +8,7 @@ #include <log.h> #include <malloc.h> #include <time.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dm/root.h> #include <mailbox.h> diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index 7dd3de34c99..827a50e954f 100644 --- a/drivers/misc/test_drv.c +++ b/drivers/misc/test_drv.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <dm/test.h> +#include <asm/global_data.h> /* Records the last testbus device that was removed */ static struct udevice *testbus_removed; diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index d7dbc23fd0b..2b5ceeab94b 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <sdhci.h> #include <asm/arch/clk.h> +#include <asm/global_data.h> #define ATMEL_SDHC_MIN_FREQ 400000 #define ATMEL_SDHC_GCK_RATE 240000000 diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c index 2b79356a20e..a17ed8c11cb 100644 --- a/drivers/mmc/ca_dw_mmc.c +++ b/drivers/mmc/ca_dw_mmc.c @@ -7,6 +7,7 @@ #include <common.h> #include <dwmmc.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index b4ff1c3fb4b..544798bb71d 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -7,6 +7,7 @@ #include <common.h> #include <dwmmc.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index b5f3fd134d4..6014e1c5cac 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -21,6 +21,7 @@ #include <fsl_esdhc.h> #include <fdt_support.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 8ac859797f0..e0e132698e3 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -21,6 +21,7 @@ #include <mmc.h> #include <part.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index fa6181d85fa..0fa037224fb 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -15,6 +15,7 @@ #include <malloc.h> #include <part.h> #include <mmc.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/io.h> #include <linux/errno.h> diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index bb5d0922beb..2cec5b9ae32 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -10,6 +10,7 @@ #include <errno.h> #include <fdtdec.h> #include <malloc.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index f931e4b3c1d..6e4f527e5d8 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -9,6 +9,7 @@ #include <errno.h> #include <malloc.h> #include <sdhci.h> +#include <asm/global_data.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index ae3af3927db..61e48ee0f62 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -9,6 +9,7 @@ #include <common.h> #include <malloc.h> #include <mmc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/unaligned.h> #include <errno.h> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index bfbba46c5dc..d63d7b3a2c1 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -13,6 +13,7 @@ #include <malloc.h> #include <sdhci.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index 556dd380466..2096a67f54e 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -7,6 +7,7 @@ #include <dm.h> #include <malloc.h> #include <sdhci.h> +#include <asm/global_data.h> #include <linux/mbus.h> #define MVSDH_NAME "mv_sdh" diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index 03d5150b207..8ec1f57a1b7 100644 --- a/drivers/mmc/mvebu_mmc.c +++ b/drivers/mmc/mvebu_mmc.c @@ -13,6 +13,7 @@ #include <malloc.h> #include <part.h> #include <mmc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 52f044e37a1..da44511d989 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -35,6 +35,7 @@ #include <palmas.h> #endif #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/mmc_host_def.h> #ifdef CONFIG_OMAP54XX diff --git a/drivers/mmc/pic32_sdhci.c b/drivers/mmc/pic32_sdhci.c index fb37c6756c4..fe555106a1d 100644 --- a/drivers/mmc/pic32_sdhci.c +++ b/drivers/mmc/pic32_sdhci.c @@ -9,6 +9,8 @@ #include <dm.h> #include <sdhci.h> #include <clk.h> +#include <linux/errno.h> +#include <mach/pic32.h> struct pic32_sdhci_plat { struct mmc_config cfg; diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 2acb8c6efa0..9ad92648a34 100644 --- a/drivers/mmc/renesas-sdhi.c +++ b/drivers/mmc/renesas-sdhi.c @@ -11,6 +11,7 @@ #include <malloc.h> #include <mmc.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/compat.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 3cf56e0ac40..dee84263c3f 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <sdhci.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <asm/gpio.h> #include <asm/arch/mmc.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 2b726c26b87..327a05ad11d 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitfield.h> #include <linux/bitops.h> diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index af342f2c290..830e29cdd41 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -22,6 +22,7 @@ #include <linux/io.h> #include <linux/sizes.h> #include "sh_mmcif.h" +#include <asm/global_data.h> #define DRIVER_NAME "sh_mmcif" diff --git a/drivers/mmc/sh_sdhi.c b/drivers/mmc/sh_sdhi.c index b8865b1ca6e..b2d0fac9636 100644 --- a/drivers/mmc/sh_sdhi.c +++ b/drivers/mmc/sh_sdhi.c @@ -24,6 +24,7 @@ #include <linux/sizes.h> #include <asm/arch/rmobile.h> #include <asm/arch/sh_sdhi.h> +#include <asm/global_data.h> #include <clk.h> #define DRIVER_NAME "sh-sdhi" diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index aa0d3a22221..d6d2d572141 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -13,6 +13,7 @@ #include <dwmmc.h> #include <errno.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/intel-smc.h> #include <linux/libfdt.h> diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c index 8ecd575152d..6194768fd72 100644 --- a/drivers/mmc/sti_sdhci.c +++ b/drivers/mmc/sti_sdhci.c @@ -11,6 +11,7 @@ #include <reset-uclass.h> #include <sdhci.h> #include <asm/arch/sdhci.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 6c0c840bbb1..e9c7d3a2e00 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -10,6 +10,7 @@ #include <fdtdec.h> #include <mmc.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/pinctrl.h> #include <linux/compat.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index d6356944019..e292f2903d8 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -17,6 +17,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c index 0011811250b..7bac599a54a 100644 --- a/drivers/mtd/altera_qspi.c +++ b/drivers/mtd/altera_qspi.c @@ -11,6 +11,7 @@ #include <flash.h> #include <log.h> #include <mtd.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 9e3a652f445..b4512e3a5fc 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -26,6 +26,7 @@ #include <init.h> #include <irq_func.h> #include <log.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/byteorder.h> diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index 9360d4ed172..c53ec657a34 100644 --- a/drivers/mtd/mtd_uboot.c +++ b/drivers/mtd/mtd_uboot.c @@ -12,6 +12,7 @@ #include <linux/err.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> +#include <asm/global_data.h> #include <mtd.h> #define MTD_NAME_MAX_LEN 20 diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 698968bc116..6557faddf94 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -4574,6 +4574,7 @@ ident_done: EXPORT_SYMBOL(nand_get_flash_type); #if CONFIG_IS_ENABLED(OF_CONTROL) +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; static int nand_dt_init(struct mtd_info *mtd, struct nand_chip *chip, int node) diff --git a/drivers/mtd/nand/raw/octeontx_nand.c b/drivers/mtd/nand/raw/octeontx_nand.c index 9997135ef93..e0ccc7b0d90 100644 --- a/drivers/mtd/nand/raw/octeontx_nand.c +++ b/drivers/mtd/nand/raw/octeontx_nand.c @@ -23,6 +23,7 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/nand_bch.h> #include <linux/mtd/nand_ecc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/types.h> #include <asm/dma-mapping.h> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index f6233756d85..8ff58a70387 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <fdtdec.h> #include <nand.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/bitops.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index 12fc065b320..7bc6ec7beea 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -29,6 +29,7 @@ #include <malloc.h> #include <memalign.h> #include <nand.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/bitops.h> diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index a530127cb77..6310253efa6 100644 --- a/drivers/mtd/nand/raw/tegra_nand.c +++ b/drivers/mtd/nand/raw/tegra_nand.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/pic32_flash.c b/drivers/mtd/pic32_flash.c index a58a2c4b6c3..ea0dbe9eeee 100644 --- a/drivers/mtd/pic32_flash.c +++ b/drivers/mtd/pic32_flash.c @@ -12,6 +12,7 @@ #include <flash.h> #include <init.h> #include <irq_func.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <mach/pic32.h> #include <wait_bit.h> diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c index 8a644ad9b38..2c61ce7b6e6 100644 --- a/drivers/mtd/renesas_rpc_hf.c +++ b/drivers/mtd/renesas_rpc_hf.c @@ -21,6 +21,7 @@ #include <wait_bit.h> #include <linux/bitops.h> #include <mtd/cfi_flash.h> +#include <asm/global_data.h> #define RPC_CMNCR 0x0000 /* R/W */ #define RPC_CMNCR_MD BIT(31) diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c index 3017022abbb..12d132152d3 100644 --- a/drivers/mtd/spi/sf-uclass.c +++ b/drivers/mtd/spi/sf-uclass.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <spi.h> #include <spi_flash.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include "sf_internal.h" diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index c16dff959b1..632ab3c1e5d 100644 --- a/drivers/net/ag7xxx.c +++ b/drivers/net/ag7xxx.c @@ -16,6 +16,7 @@ #include <malloc.h> #include <net.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/compiler.h> #include <linux/delay.h> diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index 456b7b98e91..eb4cd96763b 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -18,6 +18,7 @@ #include <miiphy.h> #include <net.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/dma-mapping.h> #include <asm/io.h> #include "altera_tse.h" diff --git a/drivers/net/dwmac_s700.c b/drivers/net/dwmac_s700.c index efe3d1dade6..744b58bdd1a 100644 --- a/drivers/net/dwmac_s700.c +++ b/drivers/net/dwmac_s700.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <clk.h> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index e3b29a9c3e7..ec21157d710 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -18,6 +18,7 @@ #include <net.h> #include <netdev.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <power/regulator.h> diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 5bfe3781a17..c9cf6a987e1 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -11,6 +11,7 @@ #include <image.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <linux/bug.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c index c36d40c9111..c20aef4ab28 100644 --- a/drivers/net/fsl_mcdmafec.c +++ b/drivers/net/fsl_mcdmafec.c @@ -18,6 +18,7 @@ #include <config.h> #include <net.h> #include <miiphy.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/mii.h> #include <asm/immap.h> diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c index 0d672374fda..af3d076160f 100644 --- a/drivers/net/ftmac100.c +++ b/drivers/net/ftmac100.c @@ -12,6 +12,7 @@ #include <env.h> #include <malloc.h> #include <net.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/io.h> diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index a50a5b3f33a..f9096604840 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -12,6 +12,7 @@ #include <net.h> #include <phy.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/periph.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index ef013c9c97e..725173f6273 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -20,6 +20,7 @@ #include <linux/bug.h> #include <linux/compat.h> #include <linux/delay.h> +#include <asm/global_data.h> #include "ldpaa_eth.h" #ifdef CONFIG_PHYLIB diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 6e26467700a..57ea45e2dc7 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -7,6 +7,7 @@ #include <cpu_func.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> /* diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index cb343b446f5..43bb761483e 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -18,6 +18,7 @@ #include <net.h> #include <miiphy.h> #include <asm/fec.h> +#include <asm/global_data.h> #include <asm/immap.h> #include <linux/delay.h> #include <linux/mii.h> diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index ec81320a86d..0987266c96e 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -8,6 +8,7 @@ #include <config.h> #include <net.h> #include <netdev.h> +#include <asm/global_data.h> #include <linux/delay.h> #ifdef CONFIG_MCF547x_8x diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c index 12be584638f..282c2599d3c 100644 --- a/drivers/net/mpc8xx_fec.c +++ b/drivers/net/mpc8xx_fec.c @@ -11,6 +11,7 @@ #include <net.h> #include <netdev.h> #include <asm/cpm_8xx.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 2452859f814..ce5b8eed64b 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -18,6 +18,7 @@ #include <malloc.h> #include <miiphy.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 3192cf55091..4a4268c2b2c 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -21,6 +21,7 @@ #include <config.h> #include <malloc.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index d266e6d0f37..1cf522b8fe5 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -17,6 +17,7 @@ #include <cpu_func.h> #include <dm.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/net/octeontx/smi.c b/drivers/net/octeontx/smi.c index 58436419f1b..91dcd05e4b3 100644 --- a/drivers/net/octeontx/smi.c +++ b/drivers/net/octeontx/smi.c @@ -10,6 +10,7 @@ #include <pci.h> #include <pci_ids.h> #include <phy.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/ctype.h> #include <linux/delay.h> diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 9d9f746e1db..3228672fc4a 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c @@ -11,6 +11,7 @@ #include <phy.h> #include <dm.h> #include <fdt_support.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c index 59a32c49130..24d617553e7 100644 --- a/drivers/net/phy/miiphybb.c +++ b/drivers/net/phy/miiphybb.c @@ -16,6 +16,7 @@ #include <ioports.h> #include <ppc_asm.tmpl> #include <miiphy.h> +#include <asm/global_data.h> #define BB_MII_RELOCATE(v,off) (v += (v?off:0)) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 662ea2b98cc..a2be3987364 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -17,6 +17,7 @@ #include <miiphy.h> #include <phy.h> #include <errno.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index e2feb17048c..74105c0b7d6 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -5,11 +5,11 @@ * Copyright (C) 2018 Xilinx, Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <phy.h> -#include <config.h> -#include <common.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c index 9eba55affb1..5a678d1cf95 100644 --- a/drivers/net/pic32_eth.c +++ b/drivers/net/pic32_eth.c @@ -14,6 +14,7 @@ #include <console.h> #include <time.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <linux/delay.h> #include <linux/mii.h> diff --git a/drivers/net/qe/dm_qe_uec.c b/drivers/net/qe/dm_qe_uec.c index a33068cc706..b08c79244c9 100644 --- a/drivers/net/qe/dm_qe_uec.c +++ b/drivers/net/qe/dm_qe_uec.c @@ -12,6 +12,7 @@ #include <errno.h> #include <memalign.h> #include <miiphy.h> +#include <asm/global_data.h> #include <asm/io.h> #include "dm_qe_uec.h" diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index 34e2b8f9e96..6953b7286a3 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -22,6 +22,7 @@ #include <linux/mii.h> #include <wait_bit.h> #include <asm/io.h> +#include <asm/global_data.h> #include <asm/gpio.h> /* Registers */ diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c index 8273f73c911..ce66ff781ff 100644 --- a/drivers/net/sandbox-raw.c +++ b/drivers/net/sandbox-raw.c @@ -13,6 +13,7 @@ #include <env.h> #include <malloc.h> #include <net.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index a389e2bd0d1..37459dfa0a4 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <net.h> #include <asm/eth.h> +#include <asm/global_data.h> #include <asm/test.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 1666a8cdb21..3143a5813a6 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -20,6 +20,7 @@ #include <asm/cache.h> #include <linux/delay.h> #include <linux/errno.h> +#include <asm/global_data.h> #include <asm/io.h> #ifdef CONFIG_DM_ETH diff --git a/drivers/net/sni_ave.c b/drivers/net/sni_ave.c index 0ebe86a333b..ab51552ed88 100644 --- a/drivers/net/sni_ave.c +++ b/drivers/net/sni_ave.c @@ -16,6 +16,7 @@ #include <reset.h> #include <syscon.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 0f6b6bb537e..a6cdda81a76 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -13,6 +13,7 @@ #include <cpu_func.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/gpio.h> diff --git a/drivers/net/ti/cpsw-common.c b/drivers/net/ti/cpsw-common.c index ca93edb70e3..3140f2515fb 100644 --- a/drivers/net/ti/cpsw-common.c +++ b/drivers/net/ti/cpsw-common.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <fdt_support.h> +#include <asm/global_data.h> #include <asm/io.h> #include <cpsw.h> #include <dm/device_compat.h> diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c index 35b796c9136..5e8f683c29e 100644 --- a/drivers/net/ti/keystone_net.c +++ b/drivers/net/ti/keystone_net.c @@ -8,6 +8,7 @@ #include <common.h> #include <command.h> #include <console.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <dm.h> diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index 343ab69d194..2ce6271afe8 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -12,6 +12,7 @@ #include <log.h> #include <net.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <phy.h> #include <miiphy.h> diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 6b447537f66..43fc36dc6a8 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -13,6 +13,7 @@ #include <dm.h> #include <console.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <phy.h> #include <miiphy.h> diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index 1d09c5ac4f6..e72a60c1318 100644 --- a/drivers/pci/fsl_pci_init.c +++ b/drivers/pci/fsl_pci_init.c @@ -9,6 +9,7 @@ #include <log.h> #include <malloc.h> #include <asm/fsl_serdes.h> +#include <asm/global_data.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index ba65f47e808..dfd54b339f4 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index a7453e57552..d8f9239523c 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -17,6 +17,7 @@ #include <common.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <command.h> diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 374c4aa2432..9a440f57d6e 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -13,6 +13,7 @@ #include <dm.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <dm/of_access.h> diff --git a/drivers/pci/pci_octeontx.c b/drivers/pci/pci_octeontx.c index 16932839a58..46855c5cd3a 100644 --- a/drivers/pci/pci_octeontx.c +++ b/drivers/pci/pci_octeontx.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 4a21813a82f..a14a4db3c2f 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -38,6 +38,7 @@ #include <video.h> #include <video_fb.h> #include <acpi/acpi_s3.h> +#include <asm/global_data.h> #include <linux/screen_info.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index 7ec149d178c..93e57cf0cf1 100644 --- a/drivers/pci/pcie_dw_mvebu.c +++ b/drivers/pci/pcie_dw_mvebu.c @@ -14,6 +14,7 @@ #include <dm.h> #include <log.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> #include <linux/delay.h> diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index 15270627b0d..77f1a1b48f1 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -14,6 +14,7 @@ #include <reset.h> #include <syscon.h> #include <asm/arch-rockchip/clock.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c index 5e00fcda97a..33a5c3cc208 100644 --- a/drivers/pci/pcie_dw_ti.c +++ b/drivers/pci/pcie_dw_ti.c @@ -11,6 +11,7 @@ #include <power-domain.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers/pci/pcie_ecam_generic.c index 7d1f13d637c..e83e5aff206 100644 --- a/drivers/pci/pcie_ecam_generic.c +++ b/drivers/pci/pcie_ecam_generic.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index b061b31cae5..3c2a2a47611 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -13,6 +13,7 @@ #include <pci.h> #include <asm/fsl_pci.h> #include <asm/fsl_serdes.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> #include "pcie_fsl.h" diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c index b4964757c78..60195cfe1b6 100644 --- a/drivers/pci/pcie_intel_fpga.c +++ b/drivers/pci/pcie_intel_fpga.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 25b5272d4ed..3c7c4ca18e8 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -7,6 +7,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c index 041a526f0b5..14983cce4f2 100644 --- a/drivers/pci/pcie_layerscape_ep.c +++ b/drivers/pci/pcie_layerscape_ep.c @@ -7,6 +7,7 @@ #include <common.h> #include <asm/arch/fsl_serdes.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/devres.h> #include <errno.h> #include <pci_ep.h> diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c index 40f0ef10ac4..8b924d404c2 100644 --- a/drivers/pci/pcie_layerscape_fixup_common.c +++ b/drivers/pci/pcie_layerscape_fixup_common.c @@ -11,6 +11,7 @@ #include <init.h> #include <asm/arch/clock.h> #include <asm/arch/soc.h> +#include <linux/libfdt.h> #include "pcie_layerscape_fixup_common.h" void ft_pci_setup(void *blob, struct bd_info *bd) diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c index be9cb6285c8..255e73181d5 100644 --- a/drivers/pci/pcie_layerscape_gen4.c +++ b/drivers/pci/pcie_layerscape_gen4.c @@ -10,6 +10,7 @@ #include <log.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c index 517e7b5cebd..b055ed51654 100644 --- a/drivers/pci/pcie_layerscape_rc.c +++ b/drivers/pci/pcie_layerscape_rc.c @@ -7,6 +7,7 @@ #include <common.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pci/pcie_phytium.c b/drivers/pci/pcie_phytium.c index 03ea04ceaa9..752e1703215 100644 --- a/drivers/pci/pcie_phytium.c +++ b/drivers/pci/pcie_phytium.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> #include <pci.h> +#include <asm/global_data.h> #include <asm/io.h> /** diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c index 027745e42e8..b0c91c0f430 100644 --- a/drivers/pci/pcie_rockchip.c +++ b/drivers/pci/pcie_rockchip.c @@ -14,6 +14,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <generic-phy.h> #include <pci.h> diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c index 00879a2d729..ae9a65b0a9e 100644 --- a/drivers/pci/pcie_xilinx.c +++ b/drivers/pci/pcie_xilinx.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <pci.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c index aa89701de8f..5555cf5a8c9 100644 --- a/drivers/pci_endpoint/pci_ep-uclass.c +++ b/drivers/pci_endpoint/pci_ep-uclass.c @@ -12,6 +12,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> #include <linux/log2.h> #include <pci_ep.h> diff --git a/drivers/pci_endpoint/pcie-cadence-ep.c b/drivers/pci_endpoint/pcie-cadence-ep.c index 7313428fe0c..d58c64982b2 100644 --- a/drivers/pci_endpoint/pcie-cadence-ep.c +++ b/drivers/pci_endpoint/pcie-cadence-ep.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <pci_ep.h> +#include <asm/global_data.h> #include <linux/sizes.h> #include <linux/log2.h> #include "pcie-cadence.h" diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c index 4606de6f48e..12523d18a80 100644 --- a/drivers/phy/marvell/comphy_a3700.c +++ b/drivers/phy/marvell/comphy_a3700.c @@ -6,6 +6,7 @@ #include <common.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index b2203277c41..cd54e7f8890 100644 --- a/drivers/phy/marvell/comphy_core.c +++ b/drivers/phy/marvell/comphy_core.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <linux/err.h> diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c index b0fcb13f1c9..a323de7c76d 100644 --- a/drivers/phy/marvell/comphy_cp110.c +++ b/drivers/phy/marvell/comphy_cp110.c @@ -6,6 +6,7 @@ #include <common.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/ptrace.h> #include <asm/arch/cpu.h> diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index cb991437321..2a9604cdcc4 100644 --- a/drivers/phy/omap-usb2-phy.c +++ b/drivers/phy/omap-usb2-phy.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <errno.h> diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 6744b8b2275..62b8ba3a4a8 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -9,6 +9,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/lists.h> #include <generic-phy.h> diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index bc6c0feed04..44ca4bc7919 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -10,6 +10,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index a45a318e474..ca63b856e13 100644 --- a/drivers/phy/rockchip/phy-rockchip-typec.c +++ b/drivers/phy/rockchip/phy-rockchip-typec.c @@ -11,6 +11,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/lists.h> #include <generic-phy.h> diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c index 87c1bcddb4a..ce4caafce7e 100644 --- a/drivers/phy/sti_usb_phy.c +++ b/drivers/phy/sti_usb_phy.c @@ -6,6 +6,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <bitfield.h> #include <dm.h> diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c index 98fe6c6fce3..b5b3c3f1522 100644 --- a/drivers/phy/ti-pipe3-phy.c +++ b/drivers/phy/ti-pipe3-phy.c @@ -8,6 +8,7 @@ #include <dm.h> #include <dm/device.h> #include <generic-phy.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> #include <syscon.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index 14408da2e7e..eb673a9f69c 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -7,6 +7,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <mach/ar71xx_regs.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index b1c78bead3b..0d534268e96 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -7,6 +7,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <mach/ar71xx_regs.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c index 64d78213a86..2640c8fcefc 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> #include <asm/io.h> #include "pinctrl-exynos.h" diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index b11a40e11a3..ee362d8464f 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -7,6 +7,7 @@ #include <dm.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/device_compat.h> #include <dm/lists.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c index c15da6be0ea..79c63c7caec 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c +++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/pinctrl.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index 4797d3250f9..b9d389e70f5 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -20,6 +20,7 @@ #include <config.h> #include <dm.h> #include <malloc.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index 5ced4fea888..536c6aff96e 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -10,6 +10,7 @@ #include <errno.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <dm/pinctrl.h> #include <dm/root.h> #include <asm/system.h> diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c index 4518c05d468..6b01f47657c 100644 --- a/drivers/pinctrl/nexell/pinctrl-nexell.c +++ b/drivers/pinctrl/nexell/pinctrl-nexell.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> #include <asm/io.h> #include "pinctrl-nexell.h" #include "pinctrl-s5pxx18.h" diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c index adc687a3b57..863eb1455d2 100644 --- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c +++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <dm/root.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 48c7bde3752..1596dcc4747 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -6,6 +6,7 @@ #include <common.h> #include <malloc.h> #include <mapmem.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 2e5db2c6c2f..46af44ecb1f 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <dm/device.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index 449a0aa8b5f..e6b10a377b6 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -6,6 +6,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/io.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 3a5143adc38..b7ae2f6adab 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/pinctrl.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index ddaad55ddc5..b7aab12f11c 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <dm/pinctrl.h> #include <asm/hardware.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index c5baf5d211e..20cdbb0702e 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -12,6 +12,7 @@ #include <errno.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <linux/bug.h> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index 7919e54e8de..b0f30aa1f75 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,6 +5,7 @@ #include <common.h> #include <malloc.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/libfdt.h> #include <linux/err.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index a19758d59d7..54d97ac0ae3 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/renesas/pfc-r7s72100.c b/drivers/pinctrl/renesas/pfc-r7s72100.c index 82bdf05b24b..a445cdba713 100644 --- a/drivers/pinctrl/renesas/pfc-r7s72100.c +++ b/drivers/pinctrl/renesas/pfc-r7s72100.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index ec1cb9b652f..630513ba3a2 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -12,6 +12,7 @@ #include <fdtdec.h> #include <linux/bitops.h> #include <linux/libfdt.h> +#include <asm/global_data.h> #include "pinctrl-rockchip.h" diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index ec369aedd32..e2fae2dbc86 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -8,6 +8,7 @@ #include <log.h> #include <malloc.h> #include <power-domain-uclass.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/power-domain.h> #include <dm/device-internal.h> diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index 341c83b1365..c4cd07ffaf4 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -7,6 +7,7 @@ #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/power-domain.h> #include <asm/mach-imx/sys_proto.h> diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index 31c9139c646..cb9238972f2 100644 --- a/drivers/power/pmic/bd71837.c +++ b/drivers/power/pmic/bd71837.c @@ -8,6 +8,7 @@ #include <dm.h> #include <i2c.h> #include <log.h> +#include <asm/global_data.h> #include <power/pmic.h> #include <power/regulator.h> #include <power/bd71837.h> diff --git a/drivers/power/pmic/mc34708.c b/drivers/power/pmic/mc34708.c index 66253a4a43b..40d732224b6 100644 --- a/drivers/power/pmic/mc34708.c +++ b/drivers/power/pmic/mc34708.c @@ -10,6 +10,7 @@ #include <errno.h> #include <fsl_pmic.h> #include <i2c.h> +#include <asm/global_data.h> #include <power/pmic.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/power/pmic/mp5416.c b/drivers/power/pmic/mp5416.c index 458c4df688c..6180adf77e2 100644 --- a/drivers/power/pmic/mp5416.c +++ b/drivers/power/pmic/mp5416.c @@ -10,6 +10,7 @@ #include <power/pmic.h> #include <power/regulator.h> #include <power/mp5416.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/power/pmic/pca9450.c b/drivers/power/pmic/pca9450.c index c7f8b809540..a886647f193 100644 --- a/drivers/power/pmic/pca9450.c +++ b/drivers/power/pmic/pca9450.c @@ -9,6 +9,7 @@ #include <dm.h> #include <i2c.h> #include <log.h> +#include <asm/global_data.h> #include <power/pmic.h> #include <power/regulator.h> #include <power/pca9450.h> diff --git a/drivers/power/regulator/pwm_regulator.c b/drivers/power/regulator/pwm_regulator.c index 18e57db0763..ca59f3ae3e1 100644 --- a/drivers/power/regulator/pwm_regulator.c +++ b/drivers/power/regulator/pwm_regulator.c @@ -12,6 +12,7 @@ #include <errno.h> #include <log.h> #include <pwm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <power/regulator.h> diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c index 30c30430bea..01212d630a9 100644 --- a/drivers/pwm/pwm-sifive.c +++ b/drivers/pwm/pwm-sifive.c @@ -18,6 +18,7 @@ #include <dm.h> #include <pwm.h> #include <regmap.h> +#include <asm/global_data.h> #include <linux/io.h> #include <linux/log2.h> #include <linux/bitfield.h> diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index a64fc4a0527..9cf09803457 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -12,6 +12,7 @@ #include <pwm.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/pwm.h> #include <linux/bitops.h> diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c index 614635526fe..e3d5ee456b0 100644 --- a/drivers/pwm/sunxi_pwm.c +++ b/drivers/pwm/sunxi_pwm.c @@ -10,6 +10,7 @@ #include <pwm.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/pwm.h> #include <asm/arch/gpio.h> diff --git a/drivers/qe/fdt.c b/drivers/qe/fdt.c index fd7f14955ad..6195c7c4442 100644 --- a/drivers/qe/fdt.c +++ b/drivers/qe/fdt.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_qe.h> diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 259e4e3e678..97883ffc879 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -9,6 +9,7 @@ #include <common.h> #include <malloc.h> #include <command.h> +#include <asm/global_data.h> #include <linux/errno.h> #include <asm/io.h> #include <linux/immap_qe.h> diff --git a/drivers/ram/aspeed/sdram_ast2500.c b/drivers/ram/aspeed/sdram_ast2500.c index 905ef304e25..141b19b57ac 100644 --- a/drivers/ram/aspeed/sdram_ast2500.c +++ b/drivers/ram/aspeed/sdram_ast2500.c @@ -13,6 +13,7 @@ #include <ram.h> #include <regmap.h> #include <reset.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/scu_ast2500.h> #include <asm/arch/sdram_ast2500.h> diff --git a/drivers/ram/aspeed/sdram_ast2600.c b/drivers/ram/aspeed/sdram_ast2600.c index fd4235225a4..9ad398d2415 100644 --- a/drivers/ram/aspeed/sdram_ast2600.c +++ b/drivers/ram/aspeed/sdram_ast2600.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <asm/arch/scu_ast2600.h> #include <asm/arch/sdram_ast2600.h> +#include <asm/global_data.h> #include <linux/err.h> #include <linux/kernel.h> #include <dt-bindings/clock/ast2600-clock.h> diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c index 783834c9f57..a53ff93a6b0 100644 --- a/drivers/ram/mpc83xx_sdram.c +++ b/drivers/ram/mpc83xx_sdram.c @@ -10,6 +10,7 @@ #include <log.h> #include <ram.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <dt-bindings/memory/mpc83xx-sdram.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ram/octeon/octeon_ddr.c b/drivers/ram/octeon/octeon_ddr.c index 6bec68d1dae..1f75dc15fa0 100644 --- a/drivers/ram/octeon/octeon_ddr.c +++ b/drivers/ram/octeon/octeon_ddr.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <ram.h> #include <time.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <linux/io.h> diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c index 66235bd420a..9057ccacd96 100644 --- a/drivers/ram/rockchip/sdram_rk322x.c +++ b/drivers/ram/rockchip/sdram_rk322x.c @@ -11,6 +11,7 @@ #include <ram.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru_rk322x.h> diff --git a/drivers/ram/sandbox_ram.c b/drivers/ram/sandbox_ram.c index be4abed0c02..910dce623e9 100644 --- a/drivers/ram/sandbox_ram.c +++ b/drivers/ram/sandbox_ram.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <ram.h> +#include <asm/global_data.h> #include <asm/test.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ram/sifive/fu540_ddr.c b/drivers/ram/sifive/fu540_ddr.c index 5a7484ce488..c0653bb8974 100644 --- a/drivers/ram/sifive/fu540_ddr.c +++ b/drivers/ram/sifive/fu540_ddr.c @@ -12,6 +12,7 @@ #include <init.h> #include <ram.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk.h> #include <wait_bit.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c index e45a2489c50..8c2310ac906 100644 --- a/drivers/ram/stm32mp1/stm32mp1_interactive.c +++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c @@ -14,6 +14,7 @@ #include <malloc.h> #include <ram.h> #include <reset.h> +#include <asm/global_data.h> #include "stm32mp1_ddr.h" #include "stm32mp1_tests.h" diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c index 1fcc7cfd692..64262f1aa90 100644 --- a/drivers/ram/stm32mp1/stm32mp1_tests.c +++ b/drivers/ram/stm32mp1/stm32mp1_tests.c @@ -11,6 +11,7 @@ #include <log.h> #include <rand.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/log2.h> #include "stm32mp1_tests.h" diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index c2d6a4e0c17..5919c8bb978 100644 --- a/drivers/remoteproc/rproc-uclass.c +++ b/drivers/remoteproc/rproc-uclass.c @@ -10,6 +10,7 @@ #include <log.h> #include <malloc.h> #include <remoteproc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device-internal.h> #include <dm.h> diff --git a/drivers/remoteproc/ti_power_proc.c b/drivers/remoteproc/ti_power_proc.c index 9dbbb44e955..86d544cc854 100644 --- a/drivers/remoteproc/ti_power_proc.c +++ b/drivers/remoteproc/ti_power_proc.c @@ -10,6 +10,7 @@ #include <fdtdec.h> #include <log.h> #include <remoteproc.h> +#include <asm/global_data.h> #include <mach/psc_defs.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c index 8041490630c..9287f28952c 100644 --- a/drivers/reset/sti-reset.c +++ b/drivers/reset/sti-reset.c @@ -13,6 +13,7 @@ #include <reset-uclass.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <dt-bindings/reset/stih407-resets.h> #include <linux/bitops.h> diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 7edec23e648..bd14f3e7819 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -13,6 +13,7 @@ #include <watchdog.h> #include <serial.h> #include <debug_uart.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <linux/delay.h> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 65c6db073ec..b9e99babebb 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -14,6 +14,7 @@ #include <reset.h> #include <serial.h> #include <watchdog.h> +#include <asm/global_data.h> #include <linux/err.h> #include <linux/types.h> #include <asm/io.h> diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index 756738c2d21..5243c955fbf 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -16,6 +16,7 @@ #include <os.h> #include <serial.h> #include <video.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/serial.h> #include <asm/state.h> diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index ead0193ad44..8a87eed6839 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -12,6 +12,7 @@ #include <serial.h> #include <stdio_dev.h> #include <watchdog.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dm/device-internal.h> #include <dm/of_access.h> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 355659ba056..dea25a049c8 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -10,6 +10,7 @@ #include <serial.h> #include <stdio_dev.h> #include <post.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index 445eacc8aac..8f3e4dd44f1 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -10,6 +10,7 @@ #include <common.h> #include <dm.h> #include <serial.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c index c3714e1e1ec..876a4baa9fc 100644 --- a/drivers/serial/serial_linflexuart.c +++ b/drivers/serial/serial_linflexuart.c @@ -7,6 +7,7 @@ #include <dm.h> #include <errno.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <serial.h> #include <linux/compiler.h> diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index a35e5be303f..2b473d70f64 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -10,6 +10,7 @@ #include <fsl_lpuart.h> #include <log.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <serial.h> #include <dm/device_compat.h> diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c index e6e21b2ce8c..bb2afd0d8cd 100644 --- a/drivers/serial/serial_mcf.c +++ b/drivers/serial/serial_mcf.c @@ -17,6 +17,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/platform_data/serial_coldfire.h> #include <serial.h> #include <linux/compiler.h> diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index 50d6e70f177..0978930dcd4 100644 --- a/drivers/serial/serial_mpc8xx.c +++ b/drivers/serial/serial_mpc8xx.c @@ -10,6 +10,7 @@ #include <serial.h> #include <watchdog.h> #include <asm/cpm_8xx.h> +#include <asm/global_data.h> #include <linux/compiler.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index 024c2c956e4..d8c6c2f6b5f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -15,6 +15,7 @@ #include <malloc.h> #include <serial.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/compiler.h> #include <dm/pinctrl.h> diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index 665b2aa3b2c..6d416021dee 100644 --- a/drivers/serial/serial_mtk.c +++ b/drivers/serial/serial_mtk.c @@ -14,6 +14,7 @@ #include <log.h> #include <serial.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/types.h> #include <linux/err.h> diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index e5795da99d9..e4970a169bd 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -9,6 +9,7 @@ #include <watchdog.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> +#include <asm/global_data.h> #include <dm/platform_data/serial_mxc.h> #include <serial.h> #include <linux/compiler.h> diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index b5beca976d3..97b6a4ff40d 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -8,6 +8,7 @@ #include <clock_legacy.h> #include <ns16550.h> #include <serial.h> +#include <asm/global_data.h> #include <linux/compiler.h> #ifndef CONFIG_NS16550_MIN_FUNCTIONS diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c index 5d1dbe7a917..ccdda9f0334 100644 --- a/drivers/serial/serial_pic32.c +++ b/drivers/serial/serial_pic32.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <serial.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <mach/pic32.h> #include <dt-bindings/clock/microchip,clock.h> diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index b21e943d210..4f9de0da767 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -11,6 +11,7 @@ /* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */ #include <common.h> +#include <asm/global_data.h> /* For get_bus_freq() */ #include <clock_legacy.h> #include <dm.h> diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c index 669841ede4d..330fc127ecb 100644 --- a/drivers/serial/serial_pxa.c +++ b/drivers/serial/serial_pxa.c @@ -23,6 +23,7 @@ #include <hang.h> #include <asm/arch/pxa-regs.h> #include <asm/arch/regs-uart.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <dm/platform_data/serial_pxa.h> diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c index 0eac0d53a50..6d09952a5dc 100644 --- a/drivers/serial/serial_s5p.c +++ b/drivers/serial/serial_s5p.c @@ -11,6 +11,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/io.h> #include <asm/arch/clk.h> diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index d74f8902336..e6c23cedff1 100644 --- a/drivers/serial/serial_sh.c +++ b/drivers/serial/serial_sh.c @@ -10,6 +10,7 @@ #include <errno.h> #include <clk.h> #include <dm.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/processor.h> #include <serial.h> diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c index d26fe7e7704..23790707f93 100644 --- a/drivers/serial/serial_sifive.c +++ b/drivers/serial/serial_sifive.c @@ -11,6 +11,7 @@ #include <fdtdec.h> #include <log.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/compiler.h> #include <serial.h> diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c index 5d1a46c6bce..2cada4efbfc 100644 --- a/drivers/serial/serial_sti_asc.c +++ b/drivers/serial/serial_sti_asc.c @@ -10,6 +10,7 @@ #include <dm.h> #include <log.h> #include <serial.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_xen.c b/drivers/serial/serial_xen.c index dbb7b22b51c..e1d5b229bd7 100644 --- a/drivers/serial/serial_xen.c +++ b/drivers/serial/serial_xen.c @@ -8,6 +8,7 @@ #include <dm.h> #include <serial.h> #include <watchdog.h> +#include <asm/global_data.h> #include <linux/bug.h> diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c index 597d425d11f..ff322805bc9 100644 --- a/drivers/smem/msm_smem.c +++ b/drivers/smem/msm_smem.c @@ -8,6 +8,7 @@ #include <common.h> #include <errno.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <dm/of_access.h> diff --git a/drivers/sound/ivybridge_sound.c b/drivers/sound/ivybridge_sound.c index 492a86cafe1..d982219e06d 100644 --- a/drivers/sound/ivybridge_sound.c +++ b/drivers/sound/ivybridge_sound.c @@ -19,6 +19,7 @@ #include <pch.h> #include <sound.h> #include <linux/bitops.h> +#include <asm/global_data.h> static int bd82x6x_azalia_probe(struct udevice *dev) { diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c index 0f05158c84c..634cd565610 100644 --- a/drivers/spi/atcspi200_spi.c +++ b/drivers/spi/atcspi200_spi.c @@ -11,6 +11,7 @@ #include <log.h> #include <malloc.h> #include <spi.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/spi/bcmstb_spi.c b/drivers/spi/bcmstb_spi.c index dc4fdacdc99..503c47a2716 100644 --- a/drivers/spi/bcmstb_spi.c +++ b/drivers/spi/bcmstb_spi.c @@ -5,6 +5,7 @@ * Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> */ +#include <asm/global_data.h> #include <asm/io.h> #include <command.h> #include <config.h> diff --git a/drivers/spi/ca_sflash.c b/drivers/spi/ca_sflash.c index 84569845b74..38bddd38619 100644 --- a/drivers/spi/ca_sflash.c +++ b/drivers/spi/ca_sflash.c @@ -21,6 +21,7 @@ #include <spi.h> #include <spi-mem.h> #include <reset.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c index 298f350ef39..6511c0e0e54 100644 --- a/drivers/spi/cf_spi.c +++ b/drivers/spi/cf_spi.c @@ -16,6 +16,7 @@ #include <common.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <dm/platform_data/spi_coldfire.h> #include <spi.h> #include <malloc.h> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 53a791ea292..15557a62306 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -12,6 +12,7 @@ #include <log.h> #include <spi.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <dm.h> diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index 30b1a77a732..1bcc3ad318d 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -18,6 +18,7 @@ #include <asm/arch/gpio.h> #include <asm/arch/pinmux.h> #include <asm/arch/spi.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index c17a5522bcc..8fe3508c640 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -9,6 +9,7 @@ * Haikun Wang (B53464@freescale.com) */ +#include <asm/global_data.h> #include <linux/math64.h> #include <common.h> #include <dm.h> diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c index abc28e37d2a..387b5471598 100644 --- a/drivers/spi/fsl_espi.c +++ b/drivers/spi/fsl_espi.c @@ -15,6 +15,7 @@ #include <malloc.h> #include <spi.h> +#include <asm/global_data.h> #include <asm/immap_85xx.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index 8bc7038a82a..c27c60674b6 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -29,6 +29,7 @@ #include <log.h> #include <spi.h> #include <spi-mem.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/libfdt.h> diff --git a/drivers/spi/mvebu_a3700_spi.c b/drivers/spi/mvebu_a3700_spi.c index c40d7d17be4..b1dce048ad2 100644 --- a/drivers/spi/mvebu_a3700_spi.c +++ b/drivers/spi/mvebu_a3700_spi.c @@ -12,6 +12,7 @@ #include <spi.h> #include <clk.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index 553a0315df5..bb68eb90e91 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -9,6 +9,7 @@ #include <log.h> #include <malloc.h> #include <spi.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index 74931768c0f..c69f8fee6e5 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -20,6 +20,7 @@ #include <dm.h> #include <spi.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> #include <omap3_spi.h> diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c index 34d7d3e2ac3..45f07f083da 100644 --- a/drivers/spi/pic32_spi.c +++ b/drivers/spi/pic32_spi.c @@ -10,6 +10,7 @@ #include <clk.h> #include <dm.h> #include <log.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/compat.h> #include <malloc.h> diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c index 133363ea7d9..9856a5669ca 100644 --- a/drivers/spi/pl022_spi.c +++ b/drivers/spi/pl022_spi.c @@ -14,6 +14,7 @@ #include <dm.h> #include <dm/platform_data/spi_pl022.h> #include <linux/io.h> +#include <asm/global_data.h> #include <spi.h> #define SSP_CR0 0x000 diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index 105765168e5..26b6aa85c92 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index 3425d9950a8..f3602a25ba3 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -16,6 +16,7 @@ #include <log.h> #include <malloc.h> #include <spi.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index 11453800788..4ca5d3a93ac 100644 --- a/drivers/spi/spi-sunxi.c +++ b/drivers/spi/spi-sunxi.c @@ -27,6 +27,7 @@ #include <fdt_support.h> #include <reset.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 3fe351f8a70..7155d4aebd6 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <spi.h> #include <dm/device_compat.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> #include <dm/lists.h> diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 4384a48ec84..10e38cf839d 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -10,6 +10,7 @@ #include <errno.h> #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index 3057fe1a222..209ba8b0ccf 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -9,6 +9,7 @@ #include <dm.h> #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index b464b9ccb0e..5c8c1859cc9 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -10,6 +10,7 @@ #include <dm.h> #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index 76bc480f433..c542f40c7df 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -9,6 +9,7 @@ #include <cpu_func.h> #include <log.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/omap.h> #include <malloc.h> diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c index e47ed5b221b..fcc1bfe64b6 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -9,6 +9,7 @@ #include <dm.h> #include <log.h> #include <time.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitfield.h> #include <linux/bitops.h> diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index 845f2d2f5f4..3d829bcb73b 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -13,6 +13,7 @@ #include <log.h> #include <malloc.h> #include <spi.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index 2971e55f41b..52b8fbc8744 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -14,6 +14,7 @@ #include <spi.h> #include <time.h> #include <clk.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index efcbd0557fb..f669974af17 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -10,6 +10,7 @@ #include <log.h> #include <asm/arch/sys_proto.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c index 7f21443f6ae..5a335e50aa6 100644 --- a/drivers/spmi/spmi-msm.c +++ b/drivers/spmi/spmi-msm.c @@ -11,6 +11,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <spmi/spmi.h> diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index e69fb2255b6..a9908ebf795 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -21,6 +21,7 @@ #include <dm/root.h> #include <linux/delay.h> #include <linux/err.h> +#include <asm/global_data.h> int sysreset_request(struct udevice *dev, enum sysreset_t type) { diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c index 4e89971840f..81fccf95767 100644 --- a/drivers/sysreset/sysreset_mpc83xx.c +++ b/drivers/sysreset/sysreset_mpc83xx.c @@ -11,6 +11,7 @@ #include <sysreset.h> #include <wait_bit.h> #include <linux/delay.h> +#include <asm/global_data.h> #include "sysreset_mpc83xx.h" diff --git a/drivers/sysreset/sysreset_sti.c b/drivers/sysreset/sysreset_sti.c index 29e88dbcd10..f0f445f22ed 100644 --- a/drivers/sysreset/sysreset_sti.c +++ b/drivers/sysreset/sysreset_sti.c @@ -9,6 +9,7 @@ #include <regmap.h> #include <syscon.h> #include <sysreset.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c index b785be7bd05..e704bcbea86 100644 --- a/drivers/thermal/imx_scu_thermal.c +++ b/drivers/thermal/imx_scu_thermal.c @@ -9,6 +9,7 @@ #include <errno.h> #include <log.h> #include <thermal.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/device.h> #include <asm/arch/sci/sci.h> diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c index 1bd0340410a..02cefecd0d2 100644 --- a/drivers/thermal/imx_tmu.c +++ b/drivers/thermal/imx_tmu.c @@ -6,6 +6,7 @@ #include <config.h> #include <common.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> diff --git a/drivers/timer/arc_timer.c b/drivers/timer/arc_timer.c index 904950457c7..497f8a04155 100644 --- a/drivers/timer/arc_timer.c +++ b/drivers/timer/arc_timer.c @@ -8,6 +8,7 @@ #include <errno.h> #include <timer.h> #include <asm/arcregs.h> +#include <asm/global_data.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/timer/cadence-ttc.c b/drivers/timer/cadence-ttc.c index 3cac2ec4220..2f95d45ecd7 100644 --- a/drivers/timer/cadence-ttc.c +++ b/drivers/timer/cadence-ttc.c @@ -9,6 +9,7 @@ #include <errno.h> #include <init.h> #include <timer.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> #include <linux/err.h> diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index 2f2b8be3dca..f4f6e903873 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -14,6 +14,7 @@ #include <time.h> #include <timer.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <linux/bitops.h> diff --git a/drivers/timer/ostm_timer.c b/drivers/timer/ostm_timer.c index 99bd36f9f25..24813de2653 100644 --- a/drivers/timer/ostm_timer.c +++ b/drivers/timer/ostm_timer.c @@ -7,6 +7,7 @@ #include <common.h> #include <malloc.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <clk.h> diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c index 8d3eceb8d8d..18c61450aff 100644 --- a/drivers/timer/rockchip_timer.c +++ b/drivers/timer/rockchip_timer.c @@ -8,6 +8,7 @@ #include <dm.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <dm/ofnode.h> #include <mapmem.h> #include <asm/arch-rockchip/timer.h> diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index da1a72f0252..6f00a5d0dba 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -7,6 +7,7 @@ #include <clk.h> #include <cpu.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 7d0fc66cc75..7d19a99622b 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -14,6 +14,7 @@ #include <time.h> #include <timer.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/i8254.h> #include <asm/ibmpc.h> diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 5e5c3c3e3dc..2a47f40bbab 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <linux/usb/otg.h> #include <linux/usb/ch9.h> #include <linux/usb/phy.h> diff --git a/drivers/usb/host/dwc3-octeon-glue.c b/drivers/usb/host/dwc3-octeon-glue.c index 742e156cbb9..975f375e15a 100644 --- a/drivers/usb/host/dwc3-octeon-glue.c +++ b/drivers/usb/host/dwc3-octeon-glue.c @@ -12,6 +12,7 @@ #include <dm.h> #include <errno.h> #include <usb.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/device_compat.h> #include <dm/lists.h> diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index 1234399f33b..239b671ac38 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index fda04c49335..c1cdd4b0889 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -10,6 +10,7 @@ #include <dm.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <malloc.h> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 8e79bdd8472..cf1f882441b 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -12,6 +12,7 @@ #include <log.h> #include <pci.h> #include <usb.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> #include <usb/ehci-ci.h> diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c index 3ecbfd032ff..5420bb9772b 100644 --- a/drivers/usb/host/ehci-marvell.c +++ b/drivers/usb/host/ehci-marvell.c @@ -7,6 +7,7 @@ #include <common.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <usb.h> #include <linux/delay.h> diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c index 0af02ba2737..ab863f41b24 100644 --- a/drivers/usb/host/ehci-mx5.c +++ b/drivers/usb/host/ehci-mx5.c @@ -11,6 +11,7 @@ #include <linux/compiler.h> #include <linux/delay.h> #include <usb/ehci-ci.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index ef3a63afa44..aeea5399995 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -9,6 +9,7 @@ #include <usb.h> #include <errno.h> #include <wait_bit.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <linux/delay.h> #include <usb/ehci-ci.h> diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 25f76c9fa91..648e136447d 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -11,6 +11,7 @@ #include <log.h> #include <usb.h> #include <errno.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <asm/io.h> #include <asm-generic/gpio.h> diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index 9893a8cccee..270be934e7f 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -16,6 +16,7 @@ #include <dm.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <malloc.h> diff --git a/drivers/usb/musb-new/da8xx.c b/drivers/usb/musb-new/da8xx.c index f42803533d7..68fc0c36146 100644 --- a/drivers/usb/musb-new/da8xx.c +++ b/drivers/usb/musb-new/da8xx.c @@ -23,6 +23,7 @@ #include <asm/arch/da8xx-usb.h> #include <linux/delay.h> #include <linux/usb/otg.h> +#include <asm/global_data.h> #include <asm/omap_musb.h> #include <generic-phy.h> #include "linux-compat.h" diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index 3fdcaeaa5d0..7d15b94a6c4 100644 --- a/drivers/usb/musb-new/omap2430.c +++ b/drivers/usb/musb-new/omap2430.c @@ -17,6 +17,7 @@ #include <dm/lists.h> #include <linux/err.h> #include <linux/usb/otg.h> +#include <asm/global_data.h> #include <asm/omap_common.h> #include <asm/omap_musb.h> #include <twl4030.h> diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index b833f10f4ba..4ed5e6e90c6 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm.h> +#include <asm/global_data.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index 75cf1811f7a..91042935b07 100644 --- a/drivers/usb/musb-new/ti-musb.c +++ b/drivers/usb/musb-new/ti-musb.c @@ -11,6 +11,7 @@ #include <dm.h> #include <log.h> #include <malloc.h> +#include <asm/global_data.h> #include <linux/usb/otg.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index f1cf9160d56..93caa821a1d 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -6,6 +6,7 @@ #include <common.h> #include <hang.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 0485ae24366..c7b59b71e1d 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -10,6 +10,7 @@ #include <log.h> #include <malloc.h> #include <part.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index f87c0224a1a..c38cac174ab 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -12,6 +12,7 @@ #include <log.h> #include <part.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index 76115b7bc56..c8e105857fd 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <log.h> #include <video_bridge.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <power/regulator.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index cba105c19a4..2551f162e8f 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -14,6 +14,7 @@ #include <vbe.h> #include <video.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/mtrr.h> diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 3f07f4eb297..27ff7163f34 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -74,6 +74,7 @@ #include <version.h> #include <malloc.h> #include <video.h> +#include <asm/global_data.h> #include <linux/compiler.h> #if defined(CONFIG_VIDEO_MXS) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 4984dda8477..462c318126d 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -17,6 +17,7 @@ #include <malloc.h> #include <memalign.h> #include <video_fb.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/list.h> #include <linux/fb.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 63b5b8e61a2..a532d5ae1ab 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -11,6 +11,7 @@ #include <display.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <malloc.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 7b4459ced85..69992b3c2ba 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -13,6 +13,7 @@ #include <dm.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <panel.h> #include <video.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index 042aa9a5b9e..c56eadc8237 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -10,6 +10,7 @@ #include <log.h> #include <malloc.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <dm/devres.h> #include <linux/libfdt.h> #include <linux/compat.h> diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c index 4ea0f124870..dc5b24c98bb 100644 --- a/drivers/video/fsl_dcu_fb.c +++ b/drivers/video/fsl_dcu_fb.c @@ -8,6 +8,7 @@ #include <init.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <dm.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index e7db0cbcef1..1aa5317dd5f 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -12,6 +12,7 @@ #include <pci_rom.h> #include <vbe.h> #include <video.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/mtrr.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index dc4f542256d..ba1ddd64e08 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -13,6 +13,7 @@ #include <display.h> #endif #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/io.h> #include <os.h> #include <fdt_support.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index ca6933a6c54..e39844571f8 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -15,6 +15,7 @@ #include <part.h> #include <linux/sizes.h> #include <asm/arch/mem.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index b43732a77ab..e1fd36a62d6 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -20,6 +20,7 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/mach-imx/dma.h> #include <asm/io.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index 3f6ee744871..44f32bb5fa2 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -11,6 +11,7 @@ #include <regmap.h> #include <syscon.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/grf_rk3288.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index 30e81b88b69..a34b491058f 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -12,6 +12,7 @@ #include <regmap.h> #include <video.h> #include <asm/arch-rockchip/hardware.h> +#include <asm/global_data.h> #include <asm/io.h> #include "rk_vop.h" diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index 03c8257a357..9cf3e3ca768 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -11,6 +11,7 @@ #include <panel.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index 159201a5916..8813220671d 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -11,6 +11,7 @@ #include <log.h> #include <panel.h> #include <regmap.h> +#include <asm/global_data.h> #include "rk_mipi.h" #include <syscon.h> #include <asm/gpio.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index fcb393b906c..145c3330203 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -13,6 +13,7 @@ #include <regmap.h> #include <syscon.h> #include <video.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 12edf9c90c9..5956b59ce49 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -8,6 +8,7 @@ #include <fdtdec.h> #include <log.h> #include <video.h> +#include <asm/global_data.h> #include <asm/sdl.h> #include <asm/state.h> #include <asm/u-boot-sandbox.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index b5fb6f62bb7..fd58426cf5d 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -9,6 +9,7 @@ #include <fdt_support.h> #include <log.h> #include <video.h> +#include <asm/global_data.h> static int simple_video_probe(struct udevice *dev) { diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 635edf6dd3b..7a9eba1ed42 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -16,6 +16,7 @@ #include <asm/arch/clock.h> #include <asm/arch/lcdc.h> #include <asm/arch/gpio.h> +#include <asm/global_data.h> #include <asm/gpio.h> struct sunxi_lcd_priv { diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 08b006b469b..d60132eb773 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -12,6 +12,7 @@ #include <pwm.h> #include <video.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/system.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/ti/am335x-fb.c b/drivers/video/ti/am335x-fb.c index 5fa6f794ecc..8b41dac66d0 100644 --- a/drivers/video/ti/am335x-fb.c +++ b/drivers/video/ti/am335x-fb.c @@ -18,6 +18,7 @@ #include <asm/arch/hardware.h> #include <asm/arch/omap.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 814126af666..90c1edd87e6 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -11,6 +11,7 @@ #include <log.h> #include <panel.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/utils.h> #include "tilcdc.h" diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 91d078a9d5f..96ec6f80af3 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -14,6 +14,7 @@ #include <video.h> #include <video_console.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 89003eea727..ed7373eac84 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -60,6 +60,7 @@ #include <edid.h> #include <env.h> #include <errno.h> +#include <fdtdec.h> #include <linux/ctype.h> #include "videomodes.h" diff --git a/drivers/watchdog/armada-37xx-wdt.c b/drivers/watchdog/armada-37xx-wdt.c index dd97a17a701..6b5e1ab6fc3 100644 --- a/drivers/watchdog/armada-37xx-wdt.c +++ b/drivers/watchdog/armada-37xx-wdt.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <wdt.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/soc.h> diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 9e0d89be62d..647ae325e9a 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -15,6 +15,7 @@ */ #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_wdt.h> #include <common.h> diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c index 8b5ed28ebd3..f7d201b921a 100644 --- a/drivers/watchdog/mt7621_wdt.c +++ b/drivers/watchdog/mt7621_wdt.c @@ -12,6 +12,7 @@ #include <common.h> #include <dm.h> #include <wdt.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/watchdog/octeontx_wdt.c b/drivers/watchdog/octeontx_wdt.c index 5f586ef6837..01b244db807 100644 --- a/drivers/watchdog/octeontx_wdt.c +++ b/drivers/watchdog/octeontx_wdt.c @@ -9,6 +9,7 @@ #include <dm.h> #include <errno.h> #include <wdt.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/bitfield.h> diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 167af904dc2..cebea426fbb 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -17,6 +17,7 @@ #include <clk.h> #include <log.h> #include <wdt.h> +#include <asm/global_data.h> #include <linux/bitops.h> #include <linux/kernel.h> #include <asm/io.h> diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c index b7cb199c923..f43cd3fd2fb 100644 --- a/drivers/watchdog/sbsa_gwdt.c +++ b/drivers/watchdog/sbsa_gwdt.c @@ -5,6 +5,7 @@ * Copyright 2020 NXP */ +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <dm/device.h> diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 291aad75701..bec8827ceb1 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -6,6 +6,7 @@ */ #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <clk.h> diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index e632f077f34..28f7918c467 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -10,6 +10,7 @@ #include <log.h> #include <time.h> #include <wdt.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/xen/gnttab.c b/drivers/xen/gnttab.c index 9bf1091ab32..778729d646e 100644 --- a/drivers/xen/gnttab.c +++ b/drivers/xen/gnttab.c @@ -15,6 +15,7 @@ * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */ #include <common.h> +#include <asm/global_data.h> #include <linux/compiler.h> #include <log.h> #include <malloc.h> diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index 6455dfd5c96..1c5d039ef05 100644 --- a/drivers/xen/pvblock.c +++ b/drivers/xen/pvblock.c @@ -11,6 +11,7 @@ #include <part.h> #include <asm/armv8/mmu.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/xen/system.h> |