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/gpio | |
parent | fdcb93e1709ab1a2ebb562455621617c29e2099c (diff) | |
download | u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.gz u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.bz2 u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.zip |
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/gpio')
-rw-r--r-- | drivers/gpio/74x164_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/altera_pio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/atmel_pio4.c | 1 | ||||
-rw-r--r-- | drivers/gpio/da8xx_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-rcar.c | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-rza1.c | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-uclass.c | 1 | ||||
-rw-r--r-- | drivers/gpio/intel_broadwell_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/intel_ich6_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/msm_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/mxs_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/nx_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/omap_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/pcf8575_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/pic32_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/s5p_gpio.c | 1 | ||||
-rw-r--r-- | drivers/gpio/vybrid_gpio.c | 1 |
17 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 0c06301a81..7a7cfe8611 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 f4582b1467..edc5a8093b 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 e7b8f231cc..f615fce32e 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 9a52a5e414..d106e9846d 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 beae34f233..daaac5e784 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 ee7de4c17e..f14be871e8 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 bad6b71e0c..4a9b74e1ca 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 68d72eedc5..20af35de2c 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 11d4be04f5..63a07b9592 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 af6c8383aa..e1ff84c1c0 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 4b2b18fdb5..5775a22abd 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 52851e58b6..e2565d7095 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 336ece4778..316a28efa6 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 6d38646ef6..359646266c 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 253a9ba2f8..975a2af3cc 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 796fe3e110..76f35ac5d9 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 fcce90c53c..339392dcd3 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> |