diff options
| author | Simon Glass <[email protected]> | 2020-10-30 21:38:53 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-02-02 15:33:42 -0500 |
| commit | 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 (patch) | |
| tree | 0122abb2a3f1ea9837eaccc6150d2dae9570388e /board/st | |
| parent | fdcb93e1709ab1a2ebb562455621617c29e2099c (diff) | |
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 <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
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 71a0b449adf..69eb10844d4 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 e06f05bfa48..cd3a7dc51a2 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 ee6a90c9fdd..9d8fc9f5a2e 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 22a193d8fc3..96b4c257263 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 4ad4ee69c7c..742fd67b98e 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 0f728fd9f9e..40450ca914b 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 0b5afa05ac7..405836aba39 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 0b5afa05ac7..405836aba39 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 78362d24a28..ab85d8ba683 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 95e203ff0ea..3b0de82db28 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> |
