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 /drivers/ram | |
| 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 'drivers/ram')
| -rw-r--r-- | drivers/ram/aspeed/sdram_ast2500.c | 1 | ||||
| -rw-r--r-- | drivers/ram/aspeed/sdram_ast2600.c | 1 | ||||
| -rw-r--r-- | drivers/ram/mpc83xx_sdram.c | 1 | ||||
| -rw-r--r-- | drivers/ram/octeon/octeon_ddr.c | 1 | ||||
| -rw-r--r-- | drivers/ram/rockchip/sdram_rk322x.c | 1 | ||||
| -rw-r--r-- | drivers/ram/sandbox_ram.c | 1 | ||||
| -rw-r--r-- | drivers/ram/sifive/fu540_ddr.c | 1 | ||||
| -rw-r--r-- | drivers/ram/stm32mp1/stm32mp1_interactive.c | 1 | ||||
| -rw-r--r-- | drivers/ram/stm32mp1/stm32mp1_tests.c | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ram/aspeed/sdram_ast2500.c b/drivers/ram/aspeed/sdram_ast2500.c index 905ef304e25..141b19b57ac 100644 --- a/drivers/ram/aspeed/sdram_ast2500.c +++ b/drivers/ram/aspeed/sdram_ast2500.c @@ -13,6 +13,7 @@ #include <ram.h> #include <regmap.h> #include <reset.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/scu_ast2500.h> #include <asm/arch/sdram_ast2500.h> diff --git a/drivers/ram/aspeed/sdram_ast2600.c b/drivers/ram/aspeed/sdram_ast2600.c index fd4235225a4..9ad398d2415 100644 --- a/drivers/ram/aspeed/sdram_ast2600.c +++ b/drivers/ram/aspeed/sdram_ast2600.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <asm/arch/scu_ast2600.h> #include <asm/arch/sdram_ast2600.h> +#include <asm/global_data.h> #include <linux/err.h> #include <linux/kernel.h> #include <dt-bindings/clock/ast2600-clock.h> diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c index 783834c9f57..a53ff93a6b0 100644 --- a/drivers/ram/mpc83xx_sdram.c +++ b/drivers/ram/mpc83xx_sdram.c @@ -10,6 +10,7 @@ #include <log.h> #include <ram.h> #include <asm/bitops.h> +#include <asm/global_data.h> #include <dt-bindings/memory/mpc83xx-sdram.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ram/octeon/octeon_ddr.c b/drivers/ram/octeon/octeon_ddr.c index 6bec68d1dae..1f75dc15fa0 100644 --- a/drivers/ram/octeon/octeon_ddr.c +++ b/drivers/ram/octeon/octeon_ddr.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <ram.h> #include <time.h> +#include <asm/global_data.h> #include <asm/sections.h> #include <linux/io.h> diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c index 66235bd420a..9057ccacd96 100644 --- a/drivers/ram/rockchip/sdram_rk322x.c +++ b/drivers/ram/rockchip/sdram_rk322x.c @@ -11,6 +11,7 @@ #include <ram.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/cru_rk322x.h> diff --git a/drivers/ram/sandbox_ram.c b/drivers/ram/sandbox_ram.c index be4abed0c02..910dce623e9 100644 --- a/drivers/ram/sandbox_ram.c +++ b/drivers/ram/sandbox_ram.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <ram.h> +#include <asm/global_data.h> #include <asm/test.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/ram/sifive/fu540_ddr.c b/drivers/ram/sifive/fu540_ddr.c index 5a7484ce488..c0653bb8974 100644 --- a/drivers/ram/sifive/fu540_ddr.c +++ b/drivers/ram/sifive/fu540_ddr.c @@ -12,6 +12,7 @@ #include <init.h> #include <ram.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/io.h> #include <clk.h> #include <wait_bit.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c index e45a2489c50..8c2310ac906 100644 --- a/drivers/ram/stm32mp1/stm32mp1_interactive.c +++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c @@ -14,6 +14,7 @@ #include <malloc.h> #include <ram.h> #include <reset.h> +#include <asm/global_data.h> #include "stm32mp1_ddr.h" #include "stm32mp1_tests.h" diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c index 1fcc7cfd692..64262f1aa90 100644 --- a/drivers/ram/stm32mp1/stm32mp1_tests.c +++ b/drivers/ram/stm32mp1/stm32mp1_tests.c @@ -11,6 +11,7 @@ #include <log.h> #include <rand.h> #include <watchdog.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/log2.h> #include "stm32mp1_tests.h" |
