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 /board/st | |
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 'board/st')
-rw-r--r-- | board/st/common/stm32mp_mtdparts.c | 1 | ||||
-rw-r--r-- | board/st/stih410-b2260/board.c | 1 | ||||
-rw-r--r-- | board/st/stm32f429-discovery/stm32f429-discovery.c | 1 | ||||
-rw-r--r-- | board/st/stm32f429-evaluation/stm32f429-evaluation.c | 1 | ||||
-rw-r--r-- | board/st/stm32f469-discovery/stm32f469-discovery.c | 1 | ||||
-rw-r--r-- | board/st/stm32f746-disco/stm32f746-disco.c | 1 | ||||
-rw-r--r-- | board/st/stm32h743-disco/stm32h743-disco.c | 1 | ||||
-rw-r--r-- | board/st/stm32h743-eval/stm32h743-eval.c | 1 | ||||
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 1 | ||||
-rw-r--r-- | board/st/stv0991/stv0991.c | 1 |
10 files changed, 10 insertions, 0 deletions
diff --git a/board/st/common/stm32mp_mtdparts.c b/board/st/common/stm32mp_mtdparts.c index 71a0b449ad..69eb10844d 100644 --- a/board/st/common/stm32mp_mtdparts.c +++ b/board/st/common/stm32mp_mtdparts.c @@ -14,6 +14,7 @@ #include <tee.h> #include <asm/arch/stm32prog.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #define MTDPARTS_LEN 256 #define MTDIDS_LEN 128 diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c index e06f05bfa4..cd3a7dc51a 100644 --- a/board/st/stih410-b2260/board.c +++ b/board/st/stih410-b2260/board.c @@ -8,6 +8,7 @@ #include <cpu_func.h> #include <init.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <linux/usb/otg.h> #include <dwc3-sti-glue.h> #include <dwc3-uboot.h> diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c index ee6a90c9fd..9d8fc9f5a2 100644 --- a/board/st/stm32f429-discovery/stm32f429-discovery.c +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c @@ -15,6 +15,7 @@ #include <env.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/stm32.h> diff --git a/board/st/stm32f429-evaluation/stm32f429-evaluation.c b/board/st/stm32f429-evaluation/stm32f429-evaluation.c index 22a193d8fc..96b4c25726 100644 --- a/board/st/stm32f429-evaluation/stm32f429-evaluation.c +++ b/board/st/stm32f429-evaluation/stm32f429-evaluation.c @@ -9,6 +9,7 @@ #include <env.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/stm32.h> diff --git a/board/st/stm32f469-discovery/stm32f469-discovery.c b/board/st/stm32f469-discovery/stm32f469-discovery.c index 4ad4ee69c7..742fd67b98 100644 --- a/board/st/stm32f469-discovery/stm32f469-discovery.c +++ b/board/st/stm32f469-discovery/stm32f469-discovery.c @@ -9,6 +9,7 @@ #include <env.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/stm32.h> diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c index 0f728fd9f9..40450ca914 100644 --- a/board/st/stm32f746-disco/stm32f746-disco.c +++ b/board/st/stm32f746-disco/stm32f746-disco.c @@ -17,6 +17,7 @@ #include <splash.h> #include <st_logo_data.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/armv7m.h> #include <asm/arch/stm32.h> diff --git a/board/st/stm32h743-disco/stm32h743-disco.c b/board/st/stm32h743-disco/stm32h743-disco.c index 0b5afa05ac..405836aba3 100644 --- a/board/st/stm32h743-disco/stm32h743-disco.c +++ b/board/st/stm32h743-disco/stm32h743-disco.c @@ -8,6 +8,7 @@ #include <dm.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c index 0b5afa05ac..405836aba3 100644 --- a/board/st/stm32h743-eval/stm32h743-eval.c +++ b/board/st/stm32h743-eval/stm32h743-eval.c @@ -8,6 +8,7 @@ #include <dm.h> #include <init.h> #include <log.h> +#include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 78362d24a2..ab85d8ba68 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -32,6 +32,7 @@ #include <syscon.h> #include <usb.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/stm32.h> diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c index 95e203ff0e..3b0de82db2 100644 --- a/board/st/stv0991/stv0991.c +++ b/board/st/stv0991/stv0991.c @@ -15,6 +15,7 @@ #include <asm/arch/hardware.h> #include <asm/arch/gpio.h> #include <netdev.h> +#include <asm/global_data.h> #include <asm/io.h> #include <dm/platform_data/serial_pl01x.h> |