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 /drivers/video | |
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 'drivers/video')
27 files changed, 27 insertions, 0 deletions
diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 0485ae2436..c7b59b71e1 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -10,6 +10,7 @@ #include <log.h> #include <malloc.h> #include <part.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index f87c0224a1..c38cac174a 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -12,6 +12,7 @@ #include <log.h> #include <part.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index 76115b7bc5..c8e105857f 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -10,6 +10,7 @@ #include <i2c.h> #include <log.h> #include <video_bridge.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <power/regulator.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index cba105c19a..2551f162e8 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -14,6 +14,7 @@ #include <vbe.h> #include <video.h> #include <asm/cpu.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/mtrr.h> diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 3f07f4eb29..27ff7163f3 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -74,6 +74,7 @@ #include <version.h> #include <malloc.h> #include <video.h> +#include <asm/global_data.h> #include <linux/compiler.h> #if defined(CONFIG_VIDEO_MXS) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 4984dda847..462c318126 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -17,6 +17,7 @@ #include <malloc.h> #include <memalign.h> #include <video_fb.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/list.h> #include <linux/fb.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 63b5b8e61a..a532d5ae1a 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -11,6 +11,7 @@ #include <display.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/delay.h> #include <linux/libfdt.h> #include <malloc.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 7b4459ced8..69992b3c2b 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -13,6 +13,7 @@ #include <dm.h> #include <fdtdec.h> #include <log.h> +#include <asm/global_data.h> #include <linux/libfdt.h> #include <panel.h> #include <video.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index 042aa9a5b9..c56eadc823 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -10,6 +10,7 @@ #include <log.h> #include <malloc.h> #include <fdtdec.h> +#include <asm/global_data.h> #include <dm/devres.h> #include <linux/libfdt.h> #include <linux/compat.h> diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c index 4ea0f12487..dc5b24c98b 100644 --- a/drivers/video/fsl_dcu_fb.c +++ b/drivers/video/fsl_dcu_fb.c @@ -8,6 +8,7 @@ #include <init.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/io.h> #include <common.h> #include <dm.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index e7db0cbcef..1aa5317dd5 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -12,6 +12,7 @@ #include <pci_rom.h> #include <vbe.h> #include <video.h> +#include <asm/global_data.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/mtrr.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index dc4f542256..ba1ddd64e0 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -13,6 +13,7 @@ #include <display.h> #endif #include <fdtdec.h> +#include <asm/global_data.h> #include <asm/io.h> #include <os.h> #include <fdt_support.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index ca6933a6c5..e39844571f 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -15,6 +15,7 @@ #include <part.h> #include <linux/sizes.h> #include <asm/arch/mem.h> +#include <asm/global_data.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index b43732a77a..e1fd36a62d 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -20,6 +20,7 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/mach-imx/dma.h> #include <asm/io.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index 3f6ee74487..44f32bb5fa 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -11,6 +11,7 @@ #include <regmap.h> #include <syscon.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/grf_rk3288.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index 30e81b88b6..a34b491058 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -12,6 +12,7 @@ #include <regmap.h> #include <video.h> #include <asm/arch-rockchip/hardware.h> +#include <asm/global_data.h> #include <asm/io.h> #include "rk_vop.h" diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index 03c8257a35..9cf3e3ca76 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -11,6 +11,7 @@ #include <panel.h> #include <regmap.h> #include <syscon.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index 159201a591..8813220671 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -11,6 +11,7 @@ #include <log.h> #include <panel.h> #include <regmap.h> +#include <asm/global_data.h> #include "rk_mipi.h" #include <syscon.h> #include <asm/gpio.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index fcb393b906..145c333020 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -13,6 +13,7 @@ #include <regmap.h> #include <syscon.h> #include <video.h> +#include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 12edf9c90c..5956b59ce4 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -8,6 +8,7 @@ #include <fdtdec.h> #include <log.h> #include <video.h> +#include <asm/global_data.h> #include <asm/sdl.h> #include <asm/state.h> #include <asm/u-boot-sandbox.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index b5fb6f62bb..fd58426cf5 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -9,6 +9,7 @@ #include <fdt_support.h> #include <log.h> #include <video.h> +#include <asm/global_data.h> static int simple_video_probe(struct udevice *dev) { diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 635edf6dd3..7a9eba1ed4 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -16,6 +16,7 @@ #include <asm/arch/clock.h> #include <asm/arch/lcdc.h> #include <asm/arch/gpio.h> +#include <asm/global_data.h> #include <asm/gpio.h> struct sunxi_lcd_priv { diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 08b006b469..d60132eb77 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -12,6 +12,7 @@ #include <pwm.h> #include <video.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <asm/system.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/ti/am335x-fb.c b/drivers/video/ti/am335x-fb.c index 5fa6f794ec..8b41dac66d 100644 --- a/drivers/video/ti/am335x-fb.c +++ b/drivers/video/ti/am335x-fb.c @@ -18,6 +18,7 @@ #include <asm/arch/hardware.h> #include <asm/arch/omap.h> #include <asm/arch/sys_proto.h> +#include <asm/global_data.h> #include <asm/io.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 814126af66..90c1edd87e 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -11,6 +11,7 @@ #include <log.h> #include <panel.h> #include <video.h> +#include <asm/global_data.h> #include <asm/io.h> #include <asm/utils.h> #include "tilcdc.h" diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 91d078a9d5..96ec6f80af 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -14,6 +14,7 @@ #include <video.h> #include <video_console.h> #include <asm/cache.h> +#include <asm/global_data.h> #include <dm/lists.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index 89003eea72..ed7373eac8 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -60,6 +60,7 @@ #include <edid.h> #include <env.h> #include <errno.h> +#include <fdtdec.h> #include <linux/ctype.h> #include "videomodes.h" |