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/usb | |
parent | fdcb93e1709ab1a2ebb562455621617c29e2099c (diff) | |
download | u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.zip u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.gz u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.bz2 |
common: Drop asm/global_data.h from common header
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/usb')
-rw-r--r-- | drivers/usb/common/common.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/dwc3-octeon-glue.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/dwc3-sti-glue.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-exynos.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-fsl.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-marvell.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-mx5.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-mx6.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-vf.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/xhci-exynos5.c | 1 | ||||
-rw-r--r-- | drivers/usb/musb-new/da8xx.c | 1 | ||||
-rw-r--r-- | drivers/usb/musb-new/omap2430.c | 1 | ||||
-rw-r--r-- | drivers/usb/musb-new/pic32.c | 1 | ||||
-rw-r--r-- | drivers/usb/musb-new/ti-musb.c | 1 | ||||
-rw-r--r-- | drivers/usb/phy/rockchip_usb2_phy.c | 1 |
15 files changed, 15 insertions, 0 deletions
diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 5e5c3c3..2a47f40 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 742e156..975f375 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 1234399..239b671 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 fda04c4..c1cdd4b 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 8e79bdd..cf1f882 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 3ecbfd0..5420bb9 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 0af02ba..ab863f4 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 ef3a63a..aeea539 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 25f76c9..648e136 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 9893a8c..270be93 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 f428035..68fc0c3 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 3fdcaea..7d15b94 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 b833f10..4ed5e6e 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 75cf181..9104293 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 f1cf916..93caa82 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> |