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/atmel | |
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 'board/atmel')
20 files changed, 20 insertions, 0 deletions
diff --git a/board/atmel/at91rm9200ek/at91rm9200ek.c b/board/atmel/at91rm9200ek/at91rm9200ek.c index 8844bc7541..a314ced5e4 100644 --- a/board/atmel/at91rm9200ek/at91rm9200ek.c +++ b/board/atmel/at91rm9200ek/at91rm9200ek.c @@ -13,6 +13,7 @@ #include <init.h> #include <net.h> #include <netdev.h> +#include <asm/global_data.h> #include <asm/mach-types.h> #include <asm/arch/hardware.h> #include <asm/arch/at91_pio.h> diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c index 42fa762772..38f97bce20 100644 --- a/board/atmel/at91sam9260ek/at91sam9260ek.c +++ b/board/atmel/at91sam9260ek/at91sam9260ek.c @@ -9,6 +9,7 @@ #include <debug_uart.h> #include <init.h> #include <net.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91sam9260_matrix.h> #include <asm/arch/at91sam9_smc.h> diff --git a/board/atmel/at91sam9261ek/at91sam9261ek.c b/board/atmel/at91sam9261ek/at91sam9261ek.c index f467a4f566..0318eeaa94 100644 --- a/board/atmel/at91sam9261ek/at91sam9261ek.c +++ b/board/atmel/at91sam9261ek/at91sam9261ek.c @@ -9,6 +9,7 @@ #include <debug_uart.h> #include <init.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91sam9261.h> #include <asm/arch/at91sam9261_matrix.h> diff --git a/board/atmel/at91sam9263ek/at91sam9263ek.c b/board/atmel/at91sam9263ek/at91sam9263ek.c index be132bc185..3218e14e86 100644 --- a/board/atmel/at91sam9263ek/at91sam9263ek.c +++ b/board/atmel/at91sam9263ek/at91sam9263ek.c @@ -11,6 +11,7 @@ #include <init.h> #include <net.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <linux/sizes.h> #include <asm/arch/at91sam9263.h> #include <asm/arch/at91sam9_smc.h> diff --git a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c index 8aabc55951..8cb2808e05 100644 --- a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +++ b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c @@ -10,6 +10,7 @@ #include <init.h> #include <net.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clk.h> #include <asm/arch/at91sam9g45_matrix.h> diff --git a/board/atmel/at91sam9n12ek/at91sam9n12ek.c b/board/atmel/at91sam9n12ek/at91sam9n12ek.c index d7ff2e1335..a3fc55bbc3 100644 --- a/board/atmel/at91sam9n12ek/at91sam9n12ek.c +++ b/board/atmel/at91sam9n12ek/at91sam9n12ek.c @@ -8,6 +8,7 @@ #include <init.h> #include <net.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91sam9x5_matrix.h> #include <asm/arch/at91sam9_smc.h> diff --git a/board/atmel/at91sam9rlek/at91sam9rlek.c b/board/atmel/at91sam9rlek/at91sam9rlek.c index f81dccc9cc..f427ee658b 100644 --- a/board/atmel/at91sam9rlek/at91sam9rlek.c +++ b/board/atmel/at91sam9rlek/at91sam9rlek.c @@ -9,6 +9,7 @@ #include <debug_uart.h> #include <init.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/mach-types.h> #include <asm/arch/at91sam9rl.h> diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c index 2c071075ba..e0abe4aeb0 100644 --- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c +++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c @@ -5,6 +5,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91sam9x5_matrix.h> #include <asm/arch/at91sam9_smc.h> diff --git a/board/atmel/common/video_display.c b/board/atmel/common/video_display.c index 2666b0b3cd..a5049f4aad 100644 --- a/board/atmel/common/video_display.c +++ b/board/atmel/common/video_display.c @@ -13,6 +13,7 @@ #include <video.h> #include <video_console.h> #include <vsprintf.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clk.h> diff --git a/board/atmel/sam9x60ek/sam9x60ek.c b/board/atmel/sam9x60ek/sam9x60ek.c index fbd05c78a9..32e5a2bf23 100644 --- a/board/atmel/sam9x60ek/sam9x60ek.c +++ b/board/atmel/sam9x60ek/sam9x60ek.c @@ -7,6 +7,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91sam9_smc.h> #include <asm/arch/at91_common.h> diff --git a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c index 376562cd0e..1b7d946b50 100644 --- a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c +++ b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c @@ -7,6 +7,7 @@ #include <common.h> #include <debug_uart.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/atmel_pio4.h> diff --git a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c index c8c2e95816..32d51bba7d 100644 --- a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c +++ b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c @@ -8,6 +8,7 @@ #include <common.h> #include <debug_uart.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/atmel_pio4.h> diff --git a/board/atmel/sama5d2_icp/sama5d2_icp.c b/board/atmel/sama5d2_icp/sama5d2_icp.c index 7c34df48b8..3f33fcfc46 100644 --- a/board/atmel/sama5d2_icp/sama5d2_icp.c +++ b/board/atmel/sama5d2_icp/sama5d2_icp.c @@ -7,6 +7,7 @@ #include <common.h> #include <debug_uart.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/atmel_pio4.h> diff --git a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c index b0a23b02db..a6937e7d52 100644 --- a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c +++ b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c @@ -11,6 +11,7 @@ #include <init.h> #include <nand.h> #include <version.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/atmel_pio4.h> diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/board/atmel/sama5d2_xplained/sama5d2_xplained.c index 01636fb73d..5110ec8969 100644 --- a/board/atmel/sama5d2_xplained/sama5d2_xplained.c +++ b/board/atmel/sama5d2_xplained/sama5d2_xplained.c @@ -7,6 +7,7 @@ #include <common.h> #include <debug_uart.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/atmel_pio4.h> diff --git a/board/atmel/sama5d3_xplained/sama5d3_xplained.c b/board/atmel/sama5d3_xplained/sama5d3_xplained.c index 84c561be6f..db9603f584 100644 --- a/board/atmel/sama5d3_xplained/sama5d3_xplained.c +++ b/board/atmel/sama5d3_xplained/sama5d3_xplained.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/sama5d3_smc.h> #include <asm/arch/at91_common.h> diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c index 7f6a319859..b6f8dcd91d 100644 --- a/board/atmel/sama5d3xek/sama5d3xek.c +++ b/board/atmel/sama5d3xek/sama5d3xek.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/sama5d3_smc.h> #include <asm/arch/at91_common.h> diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board/atmel/sama5d4_xplained/sama5d4_xplained.c index 93cc183a5b..2088b48b7e 100644 --- a/board/atmel/sama5d4_xplained/sama5d4_xplained.c +++ b/board/atmel/sama5d4_xplained/sama5d4_xplained.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/at91_rstc.h> diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index 4b3883e20f..46ec1eb324 100644 --- a/board/atmel/sama5d4ek/sama5d4ek.c +++ b/board/atmel/sama5d4ek/sama5d4ek.c @@ -6,6 +6,7 @@ #include <common.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/at91_rstc.h> diff --git a/board/atmel/sama7g5ek/sama7g5ek.c b/board/atmel/sama7g5ek/sama7g5ek.c index b5cece08ac..4df43d81f8 100644 --- a/board/atmel/sama7g5ek/sama7g5ek.c +++ b/board/atmel/sama7g5ek/sama7g5ek.c @@ -7,6 +7,7 @@ #include <common.h> #include <debug_uart.h> #include <init.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_common.h> #include <asm/arch/atmel_pio4.h> |