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 /arch/powerpc/cpu/mpc83xx | |
| parent | fdcb93e1709ab1a2ebb562455621617c29e2099c (diff) | |
| download | u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.gz u-boot-401d1c4f5d2d29c4bc4beaec95402ca23eb63295.tar.xz 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 'arch/powerpc/cpu/mpc83xx')
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/cpu.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/cpu_init.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/fdt.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/interrupts.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/pci.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/pcie.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/spd_sdram.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/speed.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/spl_minimal.c | 1 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/traps.c | 1 |
10 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/cpu.c b/arch/powerpc/cpu/mpc83xx/cpu.c index 843f2df649..8d531898bd 100644 --- a/arch/powerpc/cpu/mpc83xx/cpu.c +++ b/arch/powerpc/cpu/mpc83xx/cpu.c @@ -18,6 +18,7 @@ #include <watchdog.h> #include <command.h> #include <mpc83xx.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <linux/delay.h> #include <linux/libfdt.h> diff --git a/arch/powerpc/cpu/mpc83xx/cpu_init.c b/arch/powerpc/cpu/mpc83xx/cpu_init.c index 840f907acb..e6dcb8a335 100644 --- a/arch/powerpc/cpu/mpc83xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc83xx/cpu_init.c @@ -7,6 +7,7 @@ #include <asm-offsets.h> #include <mpc83xx.h> #include <ioports.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/processor.h> #include <fsl_qe.h> diff --git a/arch/powerpc/cpu/mpc83xx/fdt.c b/arch/powerpc/cpu/mpc83xx/fdt.c index 4ea7b27ef4..3393ad562e 100644 --- a/arch/powerpc/cpu/mpc83xx/fdt.c +++ b/arch/powerpc/cpu/mpc83xx/fdt.c @@ -8,6 +8,7 @@ #include <common.h> #include <clock_legacy.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> diff --git a/arch/powerpc/cpu/mpc83xx/interrupts.c b/arch/powerpc/cpu/mpc83xx/interrupts.c index 05380674dc..f9486678af 100644 --- a/arch/powerpc/cpu/mpc83xx/interrupts.c +++ b/arch/powerpc/cpu/mpc83xx/interrupts.c @@ -10,6 +10,7 @@ #include <command.h> #include <irq_func.h> #include <mpc83xx.h> +#include <asm/global_data.h> #include <asm/processor.h> #include <asm/ptrace.h> diff --git a/arch/powerpc/cpu/mpc83xx/pci.c b/arch/powerpc/cpu/mpc83xx/pci.c index d057cd6351..5c289d0022 100644 --- a/arch/powerpc/cpu/mpc83xx/pci.c +++ b/arch/powerpc/cpu/mpc83xx/pci.c @@ -10,6 +10,7 @@ #include <init.h> #include <pci.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <linux/delay.h> #if defined(CONFIG_OF_LIBFDT) diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c index 785d4805a4..84797c871c 100644 --- a/arch/powerpc/cpu/mpc83xx/pcie.c +++ b/arch/powerpc/cpu/mpc83xx/pcie.c @@ -10,6 +10,7 @@ #include <common.h> #include <pci.h> #include <mpc83xx.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c index aeff007fb0..a861e8dd2d 100644 --- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c +++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c @@ -24,6 +24,7 @@ #include <asm/mmu.h> #include <spd_sdram.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c index 5c14aa1f32..58e197f120 100644 --- a/arch/powerpc/cpu/mpc83xx/speed.c +++ b/arch/powerpc/cpu/mpc83xx/speed.c @@ -13,6 +13,7 @@ #include <mpc83xx.h> #include <command.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/processor.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/arch/powerpc/cpu/mpc83xx/spl_minimal.c b/arch/powerpc/cpu/mpc83xx/spl_minimal.c index 2c61f2b81d..00cb2bd044 100644 --- a/arch/powerpc/cpu/mpc83xx/spl_minimal.c +++ b/arch/powerpc/cpu/mpc83xx/spl_minimal.c @@ -8,6 +8,7 @@ #include <clock_legacy.h> #include <mpc83xx.h> #include <time.h> +#include <asm/global_data.h> #include "lblaw/lblaw.h" #include "elbc/elbc.h" diff --git a/arch/powerpc/cpu/mpc83xx/traps.c b/arch/powerpc/cpu/mpc83xx/traps.c index ea8bc6c152..22e451c58d 100644 --- a/arch/powerpc/cpu/mpc83xx/traps.c +++ b/arch/powerpc/cpu/mpc83xx/traps.c @@ -12,6 +12,7 @@ */ #include <common.h> +#include <asm/global_data.h> #include <asm/ptrace.h> #include <command.h> #include <kgdb.h> |
