diff options
Diffstat (limited to 'drivers/video')
85 files changed, 148 insertions, 8 deletions
diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c index 0f066df451..2707ff59c7 100644 --- a/drivers/video/am335x-fb.c +++ b/drivers/video/am335x-fb.c @@ -14,6 +14,7 @@ #include <common.h> #include <dm.h> #include <lcd.h> +#include <log.h> #include <video.h> #include <asm/arch/clock.h> #include <asm/arch/hardware.h> @@ -21,6 +22,7 @@ #include <asm/arch/sys_proto.h> #include <asm/io.h> #include <asm/utils.h> +#include <linux/delay.h> #include <linux/err.h> #include "am335x-fb.h" diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c index fc2f431b9c..b050c4292f 100644 --- a/drivers/video/anx9804.c +++ b/drivers/video/anx9804.c @@ -11,6 +11,7 @@ #include <common.h> #include <i2c.h> +#include <linux/delay.h> #include "anx98xx-edp.h" #include "anx9804.h" diff --git a/drivers/video/anx98xx-edp.h b/drivers/video/anx98xx-edp.h index 64269c30bd..ece36d41ee 100644 --- a/drivers/video/anx98xx-edp.h +++ b/drivers/video/anx98xx-edp.h @@ -6,6 +6,7 @@ /* Registers at i2c address 0x38 */ +#include <linux/bitops.h> #define ANX9804_HDCP_CONTROL_0_REG 0x01 #define ANX9804_SYS_CTRL1_REG 0x80 diff --git a/drivers/video/ati_radeon_fb.c b/drivers/video/ati_radeon_fb.c index 6fce033636..c4da2e3ae7 100644 --- a/drivers/video/ati_radeon_fb.c +++ b/drivers/video/ati_radeon_fb.c @@ -16,6 +16,7 @@ */ #include <common.h> +#include <linux/delay.h> #include <command.h> #include <bios_emul.h> diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 62acccedf3..35a56a8eab 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -7,7 +7,9 @@ #include <common.h> #include <cpu_func.h> +#include <log.h> #include <malloc.h> +#include <part.h> #include <asm/io.h> #include <asm/arch/gpio.h> #include <asm/arch/clk.h> @@ -18,6 +20,7 @@ #include <video.h> #include <wait_bit.h> #include <atmel_hlcdc.h> +#include <linux/bug.h> #if defined(CONFIG_LCD_LOGO) #include <bmp_logo.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index bd2e9c0c9b..ae8ec26468 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -9,6 +9,8 @@ #include <atmel_lcd.h> #include <dm.h> #include <fdtdec.h> +#include <log.h> +#include <part.h> #include <video.h> #include <asm/io.h> #include <asm/arch/gpio.h> @@ -16,6 +18,7 @@ #include <lcd.h> #include <bmp_layout.h> #include <atmel_lcdc.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c index fb1525b478..67fed7f224 100644 --- a/drivers/video/backlight_gpio.c +++ b/drivers/video/backlight_gpio.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> #include <backlight.h> +#include <log.h> #include <asm/gpio.h> struct gpio_backlight_priv { diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 1d2eda084c..0888cb0019 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <video.h> #include <asm/arch/mbox.h> #include <asm/arch/msg.h> +#include <asm/cache.h> static int bcm2835_video_probe(struct udevice *dev) { diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c index 3e3f0e2ce6..1c5270ff05 100644 --- a/drivers/video/bridge/anx6345.c +++ b/drivers/video/bridge/anx6345.c @@ -8,7 +8,9 @@ #include <errno.h> #include <i2c.h> #include <edid.h> +#include <log.h> #include <video_bridge.h> +#include <linux/delay.h> #include "../anx98xx-edp.h" #define DP_MAX_LINK_RATE 0x001 diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index 3c5bf7b659..8399c6f74c 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -8,7 +8,9 @@ #include <dm.h> #include <errno.h> #include <i2c.h> +#include <log.h> #include <video_bridge.h> +#include <linux/delay.h> #include <power/regulator.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 59f0649646..4760f04108 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <video_bridge.h> static int ptn3460_attach(struct udevice *dev) diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index 5fecb4cfd5..389b02cdcb 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -8,7 +8,9 @@ #include <dm.h> #include <errno.h> #include <edid.h> +#include <log.h> #include <video_bridge.h> +#include <linux/delay.h> int video_bridge_set_backlight(struct udevice *dev, int percent) { diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index c23421d25b..8e8fe9d9b3 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -7,8 +7,10 @@ #include <common.h> #include <bios_emul.h> +#include <bootstage.h> #include <dm.h> #include <init.h> +#include <log.h> #include <vbe.h> #include <video.h> #include <asm/cpu.h> @@ -18,6 +20,7 @@ #include <asm/arch/cpu.h> #include <asm/arch/iomap.h> #include <asm/arch/pch.h> +#include <linux/delay.h> #include "i915_reg.h" struct broadwell_igd_priv { diff --git a/drivers/video/bus_vcxk.c b/drivers/video/bus_vcxk.c index e87c66d515..2a72d23eb8 100644 --- a/drivers/video/bus_vcxk.c +++ b/drivers/video/bus_vcxk.c @@ -6,6 +6,7 @@ #include <common.h> #include <bmp_layout.h> +#include <log.h> #include <asm/io.h> vu_char *vcxk_bws = ((vu_char *) (CONFIG_SYS_VCXK_BASE)); diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 5442bac4c6..6495e22b1a 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -65,10 +65,12 @@ */ #include <common.h> +#include <command.h> #include <cpu_func.h> #include <env.h> #include <fdtdec.h> #include <gzip.h> +#include <log.h> #include <version.h> #include <malloc.h> #include <video.h> @@ -1710,7 +1712,8 @@ static void logo_black(void) 1); } -static int do_clrlogo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +static int do_clrlogo(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { if (argc != 1) return cmd_usage(cmdtp); diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 6d7661db89..5f7f03904b 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <video.h> #include <video_console.h> diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 5fb68865ef..4984dda847 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -13,9 +13,11 @@ */ #include <common.h> +#include <log.h> #include <malloc.h> #include <memalign.h> #include <video_fb.h> +#include <linux/delay.h> #include <linux/list.h> #include <linux/fb.h> diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index bf74d6adf2..c4fbb18294 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -7,9 +7,11 @@ #include <common.h> #include <fdtdec.h> +#include <log.h> #include <asm/io.h> #include <i2c.h> #include <media_bus_format.h> +#include <linux/delay.h> #include "dw_hdmi.h" struct tmds_n_cts { diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index 5dd75e7ec8..b7bfbb5e50 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -20,6 +20,8 @@ #include <asm/arch/gpio.h> #include <dm/device-internal.h> #include <dm/device_compat.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/iopoll.h> #include <video_bridge.h> diff --git a/drivers/video/efi.c b/drivers/video/efi.c index 653cb47265..47441a35a6 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <efi_api.h> +#include <log.h> #include <vbe.h> #include <video.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 2781f6f55b..749bde862e 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -10,6 +10,8 @@ #include <common.h> #include <display.h> #include <fdtdec.h> +#include <log.h> +#include <linux/delay.h> #include <linux/libfdt.h> #include <malloc.h> #include <video_bridge.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index 802703750f..ae500a7028 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -7,6 +7,8 @@ #include <config.h> #include <common.h> +#include <log.h> +#include <linux/delay.h> #include <linux/err.h> #include <asm/arch/cpu.h> #include <asm/arch/dp_info.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 8a8c846262..d5b13a6723 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -12,6 +12,7 @@ #include <div64.h> #include <dm.h> #include <fdtdec.h> +#include <log.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 ad5ef93e01..042aa9a5b9 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <log.h> #include <malloc.h> #include <fdtdec.h> #include <dm/devres.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index adf3d968b6..ab7d61afc8 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -8,6 +8,8 @@ #include <common.h> #include <lcd.h> +#include <log.h> +#include <linux/delay.h> #include <linux/err.h> #include <asm/arch/dsim.h> #include <asm/arch/mipi_dsim.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c index 1b6e71dfaf..8111acd9a0 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c @@ -11,6 +11,7 @@ #include <asm/arch/mipi_dsim.h> #include <asm/arch/power.h> #include <asm/arch/cpu.h> +#include <linux/delay.h> #include "exynos_mipi_dsi_lowlevel.h" #include "exynos_mipi_dsi_common.h" diff --git a/drivers/video/formike.c b/drivers/video/formike.c index 7bc4bc6041..5cbe50d4cb 100644 --- a/drivers/video/formike.c +++ b/drivers/video/formike.c @@ -7,7 +7,9 @@ */ #include <common.h> #include <errno.h> +#include <log.h> #include <spi.h> +#include <linux/delay.h> #define TAG_READ 0x80 #define TAG_WRITE 0x00 diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c index 076e9ea019..e9d05c9394 100644 --- a/drivers/video/fsl_dcu_fb.c +++ b/drivers/video/fsl_dcu_fb.c @@ -7,6 +7,7 @@ */ #include <init.h> +#include <asm/cache.h> #include <asm/io.h> #include <common.h> #include <dm.h> diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c index a57abd23f7..c6c8df6a96 100644 --- a/drivers/video/hitachi_tx18d42vm_lcd.c +++ b/drivers/video/hitachi_tx18d42vm_lcd.c @@ -7,6 +7,7 @@ #include <common.h> #include <malloc.h> +#include <linux/delay.h> #include <asm/gpio.h> #include <errno.h> diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c index 0af7c2bf44..f02fd13d28 100644 --- a/drivers/video/ihs_video_out.c +++ b/drivers/video/ihs_video_out.c @@ -12,6 +12,7 @@ #include <common.h> #include <display.h> #include <dm.h> +#include <log.h> #include <regmap.h> #include <video_osd.h> #include <asm/gpio.h> diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c index cbe1984e4f..5908b23acc 100644 --- a/drivers/video/imx/ipu_common.c +++ b/drivers/video/imx/ipu_common.c @@ -12,6 +12,8 @@ /* #define DEBUG */ #include <common.h> +#include <log.h> +#include <linux/delay.h> #include <linux/types.h> #include <linux/err.h> #include <asm/io.h> diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c index 5c7722962d..c2f00bff18 100644 --- a/drivers/video/imx/ipu_disp.c +++ b/drivers/video/imx/ipu_disp.c @@ -13,6 +13,8 @@ /* #define DEBUG */ #include <common.h> +#include <log.h> +#include <linux/delay.h> #include <linux/types.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index c64be38e49..4044473f99 100644 --- a/drivers/video/imx/mxc_ipuv3_fb.c +++ b/drivers/video/imx/mxc_ipuv3_fb.c @@ -11,6 +11,9 @@ */ #include <common.h> +#include <log.h> +#include <part.h> +#include <asm/cache.h> #include <linux/errno.h> #include <asm/global_data.h> #include <linux/string.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index 6b986e9358..4c57e311d1 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -8,6 +8,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <log.h> #include <pci_rom.h> #include <vbe.h> #include <asm/intel_regs.h> @@ -16,6 +17,7 @@ #include <asm/pci.h> #include <asm/arch/pch.h> #include <asm/arch/sandybridge.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/ld9040.c b/drivers/video/ld9040.c index 93aea05ff8..a36bc2f06c 100644 --- a/drivers/video/ld9040.c +++ b/drivers/video/ld9040.c @@ -8,6 +8,7 @@ #include <common.h> #include <spi.h> +#include <linux/delay.h> static const unsigned char SEQ_USER_SETTING[] = { 0xF0, 0x5A, 0x5A diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c index 997e854ef8..45df9c1347 100644 --- a/drivers/video/lg4573.c +++ b/drivers/video/lg4573.c @@ -6,13 +6,16 @@ */ #include <common.h> #include <backlight.h> +#include <command.h> #include <display.h> #include <dm.h> +#include <log.h> #include <dm/read.h> #include <dm/uclass-internal.h> #include <errno.h> #include <spi.h> #include <asm/gpio.h> +#include <linux/delay.h> #define PWR_ON_DELAY_MSECS 120 @@ -208,8 +211,8 @@ static int lg4573_spi_startup(struct spi_slave *slave) return 0; } -static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_lgset(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { struct spi_slave *slave; struct udevice *dev; diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c index 84fafe4341..9bc4bbb85d 100644 --- a/drivers/video/logicore_dp_tx.c +++ b/drivers/video/logicore_dp_tx.c @@ -14,6 +14,7 @@ #include <display.h> #include <dm.h> #include <errno.h> +#include <linux/delay.h> #include "axi.h" #include "logicore_dp_dpcd.h" diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index 87a75a9ca2..1e6da0e1e2 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -18,6 +18,7 @@ #include <fdt_support.h> #include <clk.h> #include <dm/device_compat.h> +#include <linux/delay.h> #include <linux/sizes.h> #define MALIDP_CORE_ID 0x0018 diff --git a/drivers/video/mb862xx.c b/drivers/video/mb862xx.c index 301c1f0df1..04e435f913 100644 --- a/drivers/video/mb862xx.c +++ b/drivers/video/mb862xx.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <linux/delay.h> #include <asm/io.h> #include <env.h> @@ -79,7 +80,7 @@ static void gdc_sw_reset (void) GraphicDevice *dev = &mb862xx; HOST_WR_REG (GC_SRST, 0x1); - udelay (500); + udelay(500); video_hw_init (); } @@ -222,9 +223,9 @@ unsigned int pci_video_init (void) /* Setup clocks and memory mode for Coral-P(A) */ HOST_WR_REG(GC_CCF, CONFIG_SYS_MB862xx_CCF); - udelay (200); + udelay(200); HOST_WR_REG(GC_MMR, CONFIG_SYS_MB862xx_MMR); - udelay (100); + udelay(100); return dev->frameAdrs; } diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index ae2e6288f3..7b2ff94eba 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -8,10 +8,12 @@ #include <display.h> #include <dm.h> #include <edid.h> +#include <log.h> #include <asm/io.h> #include <dw_hdmi.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include <power/regulator.h> #include <clk.h> #include <linux/delay.h> diff --git a/drivers/video/meson/meson_dw_hdmi.h b/drivers/video/meson/meson_dw_hdmi.h index b13beb1f75..d507e59c06 100644 --- a/drivers/video/meson/meson_dw_hdmi.h +++ b/drivers/video/meson/meson_dw_hdmi.h @@ -24,6 +24,7 @@ * Bit 0 RW sw_reset_core: connects to IP's ~irstz. 1=Apply reset; * 0=Release from reset. Default 1. */ +#include <linux/bitops.h> #define HDMITX_TOP_SW_RESET (0x000) /* diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index 8edf451f13..b367276f23 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -10,6 +10,7 @@ #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> +#include <linux/bitops.h> #include "meson_vpu.h" diff --git a/drivers/video/meson/meson_registers.h b/drivers/video/meson/meson_registers.h index 39e8ec8639..f6a5d1ac8c 100644 --- a/drivers/video/meson/meson_registers.h +++ b/drivers/video/meson/meson_registers.h @@ -7,6 +7,7 @@ #define __MESON_REGISTERS_H /* Shift all registers by 2 */ +#include <linux/bitops.h> #define _REG(reg) ((reg) << 2) #define writel_bits(mask, val, addr) \ diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index 01bfa4bcb8..cd1e69040f 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -9,7 +9,9 @@ #include <common.h> #include <dm.h> #include <edid.h> +#include <linux/bitops.h> #include "meson_vpu.h" +#include <log.h> #include <linux/iopoll.h> #include <linux/math64.h> diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c index 89e859b02a..e7366dd2fd 100644 --- a/drivers/video/meson/meson_venc.c +++ b/drivers/video/meson/meson_venc.c @@ -10,6 +10,7 @@ #include <dm.h> #include <edid.h> #include <fdtdec.h> +#include <log.h> #include <asm/io.h> #include "meson_vpu.h" diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index ed47192bf6..4868839ff7 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -11,6 +11,8 @@ #include <dm.h> #include <efi_loader.h> #include <fdt_support.h> +#include <log.h> +#include <part.h> #include <linux/sizes.h> #include <asm/arch/mem.h> #include <dm/device-internal.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index 8408c59eaa..c9808e1c63 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm.h> #include <asm/io.h> +#include <linux/bitops.h> #include "meson_vpu.h" diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c index 3ff5b28ae2..f3cb2bfb48 100644 --- a/drivers/video/mvebu_lcd.c +++ b/drivers/video/mvebu_lcd.c @@ -7,8 +7,11 @@ #include <common.h> #include <dm.h> +#include <part.h> #include <video.h> +#include <asm/cache.h> #include <dm/device_compat.h> +#include <linux/delay.h> #include <linux/mbus.h> #include <asm/io.h> #include <asm/arch/cpu.h> diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c index a984443ef9..9b42ca8d03 100644 --- a/drivers/video/mx3fb.c +++ b/drivers/video/mx3fb.c @@ -7,8 +7,10 @@ */ #include <common.h> #include <env.h> +#include <log.h> #include <malloc.h> #include <video_fb.h> +#include <linux/delay.h> #include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 12d00b4689..6589a2a09d 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -8,7 +8,10 @@ #include <clk.h> #include <dm.h> #include <env.h> +#include <log.h> +#include <asm/cache.h> #include <dm/device_compat.h> +#include <linux/delay.h> #include <linux/errno.h> #include <malloc.h> #include <video.h> diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index 650ed07239..b1f2dd403e 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -14,6 +14,7 @@ #include <panel.h> #include <asm/gpio.h> #include <dm/device_compat.h> +#include <linux/delay.h> #include <power/regulator.h> #define OTM8009A_BACKLIGHT_DEFAULT 240 diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index 742579aba7..468a5703bd 100644 --- a/drivers/video/pwm_backlight.c +++ b/drivers/video/pwm_backlight.c @@ -9,9 +9,11 @@ #include <common.h> #include <dm.h> #include <backlight.h> +#include <log.h> #include <malloc.h> #include <pwm.h> #include <asm/gpio.h> +#include <linux/delay.h> #include <power/regulator.h> /** diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 92d6e3d467..67f5266164 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa_lcd.c @@ -11,6 +11,7 @@ /************************************************************************/ #include <common.h> +#include <log.h> #include <asm/arch/pxa-regs.h> #include <asm/io.h> #include <lcd.h> diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index 853dbc52d6..9169280fb8 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -14,6 +14,7 @@ #include <panel.h> #include <asm/gpio.h> #include <dm/device_compat.h> +#include <linux/delay.h> #include <power/regulator.h> /*** Manufacturer Command Set ***/ diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c index 51eb41540b..f835f4d517 100644 --- a/drivers/video/rockchip/rk3288_hdmi.c +++ b/drivers/video/rockchip/rk3288_hdmi.c @@ -9,6 +9,7 @@ #include <dm.h> #include <dw_hdmi.h> #include <edid.h> +#include <log.h> #include <malloc.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 71d3faf169..b232ff0b76 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++ b/drivers/video/rockchip/rk3288_mipi.c @@ -8,6 +8,7 @@ #include <clk.h> #include <display.h> #include <dm.h> +#include <log.h> #include <panel.h> #include <regmap.h> #include "rk_mipi.h" diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index 0f91dab1f2..25ef25b870 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -15,6 +15,7 @@ #include <asm/arch-rockchip/clock.h> #include <asm/arch-rockchip/grf_rk3288.h> #include <asm/arch-rockchip/hardware.h> +#include <linux/delay.h> #include "rk_vop.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index cfaa37797e..113708d97e 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -8,6 +8,7 @@ #include <clk.h> #include <display.h> #include <dm.h> +#include <log.h> #include <panel.h> #include <regmap.h> #include "rk_mipi.h" diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index 1d5b3931a6..d5a7aa8ac1 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -8,6 +8,7 @@ #include <common.h> #include <display.h> #include <dm.h> +#include <log.h> #include <regmap.h> #include <video.h> #include <asm/arch-rockchip/hardware.h> diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c index 99b16cd95e..92188be927 100644 --- a/drivers/video/rockchip/rk_edp.c +++ b/drivers/video/rockchip/rk_edp.c @@ -9,6 +9,7 @@ #include <display.h> #include <dm.h> #include <edid.h> +#include <log.h> #include <malloc.h> #include <panel.h> #include <regmap.h> @@ -20,6 +21,7 @@ #include <asm/arch-rockchip/grf_rk3288.h> #include <asm/arch-rockchip/hardware.h> #include <dt-bindings/clock/rk3288-cru.h> +#include <linux/delay.h> #define MAX_CR_LOOP 5 #define MAX_EQ_LOOP 5 diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index 5b44a7e8c9..f27cdf8ed4 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -11,6 +11,7 @@ #include <dm.h> #include <dw_hdmi.h> #include <edid.h> +#include <log.h> #include <regmap.h> #include <syscon.h> #include <asm/gpio.h> diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index c92c2e3c6c..04f795a213 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -7,6 +7,7 @@ #include <display.h> #include <dm.h> #include <edid.h> +#include <log.h> #include <panel.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index f1c21bb8d7..f811913ce5 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -8,6 +8,7 @@ #include <clk.h> #include <display.h> #include <dm.h> +#include <log.h> #include <panel.h> #include <regmap.h> #include "rk_mipi.h" diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index e1bd656bee..9032eb430e 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -9,6 +9,7 @@ #include <display.h> #include <dm.h> #include <edid.h> +#include <log.h> #include <regmap.h> #include <syscon.h> #include <video.h> @@ -19,6 +20,7 @@ #include <asm/arch-rockchip/vop_rk3288.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include <linux/err.h> #include <power/regulator.h> #include "rk_vop.h" diff --git a/drivers/video/s6e8ax0.c b/drivers/video/s6e8ax0.c index 9c7b5f6ab3..497258f3de 100644 --- a/drivers/video/s6e8ax0.c +++ b/drivers/video/s6e8ax0.c @@ -7,6 +7,7 @@ #include <common.h> #include <asm/arch/mipi_dsim.h> +#include <linux/delay.h> #include "exynos/exynos_mipi_dsi_lowlevel.h" #include "exynos/exynos_mipi_dsi_common.h" diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 1196e6c671..20248e6607 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> +#include <log.h> #include <video.h> #include <asm/sdl.h> #include <asm/state.h> diff --git a/drivers/video/scf0403_lcd.c b/drivers/video/scf0403_lcd.c index 60075a6cf3..54f0f88b4c 100644 --- a/drivers/video/scf0403_lcd.c +++ b/drivers/video/scf0403_lcd.c @@ -17,6 +17,7 @@ #include <malloc.h> #include <asm/gpio.h> #include <spi.h> +#include <linux/delay.h> struct scf0403_cmd { u16 cmd; diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index 5722811117..6c624c3769 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -7,6 +7,7 @@ #include <common.h> #include <backlight.h> #include <dm.h> +#include <log.h> #include <panel.h> #include <asm/gpio.h> #include <power/regulator.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 1679d20002..0c5b40c30b 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -7,6 +7,7 @@ #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> +#include <log.h> #include <video.h> static int simple_video_probe(struct udevice *dev) diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c index 83566bc6d6..4cdcbe7755 100644 --- a/drivers/video/ssd2828.c +++ b/drivers/video/ssd2828.c @@ -14,6 +14,7 @@ #include <mipi_display.h> #include <asm/arch/gpio.h> #include <asm/gpio.h> +#include <linux/delay.h> #include "videomodes.h" #include "ssd2828.h" diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index ded03b109c..04796435f1 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -12,6 +12,7 @@ #include <clk.h> #include <dm.h> #include <dsi_host.h> +#include <log.h> #include <mipi_dsi.h> #include <panel.h> #include <reset.h> @@ -22,6 +23,7 @@ #include <dm/device-internal.h> #include <dm/device_compat.h> #include <dm/lists.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <power/regulator.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index be7e9bff01..2f3427a32e 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -9,6 +9,7 @@ #include <clk.h> #include <display.h> #include <dm.h> +#include <log.h> #include <panel.h> #include <reset.h> #include <video.h> @@ -17,6 +18,7 @@ #include <asm/arch/gpio.h> #include <dm/device-internal.h> #include <dm/device_compat.h> +#include <linux/bitops.h> struct stm32_ltdc_priv { void __iomem *regs; diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index 4cf3a0eb75..73033c3b85 100644 --- a/drivers/video/sunxi/lcdc.c +++ b/drivers/video/sunxi/lcdc.c @@ -8,6 +8,8 @@ */ #include <common.h> +#include <log.h> +#include <linux/delay.h> #include <asm/arch/clock.h> #include <asm/arch/lcdc.h> diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index c6e7a35338..b657e163f0 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -12,6 +12,8 @@ #include <efi_loader.h> #include <fdtdec.h> #include <fdt_support.h> +#include <log.h> +#include <part.h> #include <video.h> #include <asm/global_data.h> #include <asm/io.h> @@ -19,6 +21,7 @@ #include <asm/arch/display2.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <linux/bitops.h> #include "simplefb_common.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index c4c1d1b8d3..f52aba4d21 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -11,6 +11,7 @@ #include <efi_loader.h> #include <init.h> #include <time.h> +#include <linux/delay.h> #include <asm/arch/clock.h> #include <asm/arch/display.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index c87c919a52..01d4b7a11c 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -10,10 +10,13 @@ #include <dm.h> #include <dw_hdmi.h> #include <edid.h> +#include <log.h> #include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/lcdc.h> +#include <linux/bitops.h> +#include <linux/delay.h> struct sunxi_dw_hdmi_priv { struct dw_hdmi hdmi; diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 619f5892f5..49bf083a8d 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -7,6 +7,7 @@ #include <common.h> #include <display.h> +#include <log.h> #include <video_bridge.h> #include <backlight.h> #include <dm.h> diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index 01ed6193ea..191cda3ce7 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -9,6 +9,8 @@ #include <dm.h> #include <display.h> #include <i2c.h> +#include <linux/bitops.h> +#include <linux/delay.h> /* * TDA19988 uses paged registers. We encode the page# in the upper diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index f4bae9fc36..1208d91286 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -6,9 +6,12 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> +#include <log.h> #include <panel.h> +#include <part.h> #include <pwm.h> #include <video.h> +#include <asm/cache.h> #include <asm/system.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c index f08f117cf8..6c27932263 100644 --- a/drivers/video/tegra124/display.c +++ b/drivers/video/tegra124/display.c @@ -6,12 +6,15 @@ */ #include <common.h> +#include <bootstage.h> #include <dm.h> #include <edid.h> #include <errno.h> #include <display.h> #include <edid.h> #include <lcd.h> +#include <log.h> +#include <part.h> #include <video.h> #include <asm/gpio.h> #include <asm/io.h> @@ -19,6 +22,7 @@ #include <asm/arch/pwm.h> #include <asm/arch-tegra/dc.h> #include <dm/uclass-internal.h> +#include <linux/delay.h> #include "displayport.h" /* return in 1000ths of a Hertz */ diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index 73e0651fb9..59758eb936 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -9,9 +9,11 @@ #include <dm.h> #include <div64.h> #include <errno.h> +#include <log.h> #include <video_bridge.h> #include <asm/io.h> #include <asm/arch-tegra/dc.h> +#include <linux/delay.h> #include "display.h" #include "edid.h" #include "sor.h" diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 8dc3df61aa..49f33c15b5 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <panel.h> #include <syscon.h> @@ -13,6 +14,7 @@ #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/dc.h> +#include <linux/delay.h> #include "displayport.h" #include "sor.h" #include <linux/err.h> diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index 8e0fc7f3ec..d30e6db6f6 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -8,6 +8,8 @@ */ #include <common.h> +#include <command.h> +#include <log.h> #include <linux/ctype.h> #include <dm.h> #include <video.h> @@ -623,7 +625,7 @@ void vidconsole_position_cursor(struct udevice *dev, unsigned col, unsigned row) priv->ycur = min_t(short, row, vid_priv->ysize - 1); } -static int do_video_setcursor(cmd_tbl_t *cmdtp, int flag, int argc, +static int do_video_setcursor(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { unsigned int col, row; @@ -641,7 +643,7 @@ static int do_video_setcursor(cmd_tbl_t *cmdtp, int flag, int argc, return 0; } -static int do_video_puts(cmd_tbl_t *cmdtp, int flag, int argc, +static int do_video_puts(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct udevice *dev; diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 3d658e61d7..bf396d1091 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -6,11 +6,13 @@ #include <common.h> #include <cpu_func.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <mapmem.h> #include <stdio_dev.h> #include <video.h> #include <video_console.h> +#include <asm/cache.h> #include <dm/lists.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c index 8768228029..eb9636541d 100644 --- a/drivers/video/video_bmp.c +++ b/drivers/video/video_bmp.c @@ -6,6 +6,7 @@ #include <common.h> #include <bmp_layout.h> #include <dm.h> +#include <log.h> #include <mapmem.h> #include <splash.h> #include <video.h> |