diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-30 21:38:53 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-02 15:33:42 -0500 |
commit | 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 (patch) | |
tree | 0122abb2a3f1ea9837eaccc6150d2dae9570388e /drivers/pci | |
parent | fdcb93e1709ab1a2ebb562455621617c29e2099c (diff) | |
download | u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.gz |
common: Drop asm/global_data.h from common headerWIP/2021-02-02-drop-asm_global_data-when-unused
Move this out of the common header and include it only where needed. In
a number of cases this requires adding "struct udevice;" to avoid adding
another large header or in other cases replacing / adding missing header
files that had been pulled in, very indirectly. Finally, we have a few
cases where we did not need to include <asm/global_data.h> at all, so
remove that include.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/fsl_pci_init.c | 1 | ||||
-rw-r--r-- | drivers/pci/pci-uclass.c | 1 | ||||
-rw-r--r-- | drivers/pci/pci.c | 1 | ||||
-rw-r--r-- | drivers/pci/pci_mvebu.c | 1 | ||||
-rw-r--r-- | drivers/pci/pci_octeontx.c | 1 | ||||
-rw-r--r-- | drivers/pci/pci_rom.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_dw_mvebu.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_dw_rockchip.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_dw_ti.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_ecam_generic.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_fsl.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_intel_fpga.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_layerscape.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_layerscape_ep.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_layerscape_fixup_common.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_layerscape_gen4.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_layerscape_rc.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_phytium.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_rockchip.c | 1 | ||||
-rw-r--r-- | drivers/pci/pcie_xilinx.c | 1 |
20 files changed, 20 insertions, 0 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index 1d09c5ac4f..e72a60c131 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 ba65f47e80..dfd54b339f 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 a7453e5755..d8f9239523 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 374c4aa243..9a440f57d6 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 16932839a5..46855c5cd3 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 4a21813a82..a14a4db3c2 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 7ec149d178..93e57cf0cf 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 15270627b0..77f1a1b48f 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 5e00fcda97..33a5c3cc20 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 7d1f13d637..e83e5aff20 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 b061b31cae..3c2a2a4761 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 b4964757c7..60195cfe1b 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 25b5272d4e..3c7c4ca18e 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 041a526f0b..14983cce4f 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 40f0ef10ac..8b924d404c 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 be9cb6285c..255e73181d 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 517e7b5ceb..b055ed5165 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 03ea04ceaa..752e170321 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 027745e42e..b0c91c0f43 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 00879a2d72..ae9a65b0a9 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> |