diff options
Diffstat (limited to 'drivers/spi')
52 files changed, 110 insertions, 0 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index e24deb4f71..3aa7a40b77 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -9,10 +9,12 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <fdtdec.h> #include <spi.h> #include <asm/io.h> +#include <linux/bitops.h> #define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) #define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c index e0cc323444..328b16c277 100644 --- a/drivers/spi/atcspi200_spi.c +++ b/drivers/spi/atcspi200_spi.c @@ -8,6 +8,7 @@ #include <common.h> #include <clk.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <asm/io.h> diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index a6c3939db5..9320a8be68 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -17,6 +17,7 @@ #include <errno.h> #include <fdtdec.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/io.h> #include <linux/iopoll.h> diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h index 76b8556c98..6167bd164b 100644 --- a/drivers/spi/atmel_spi.h +++ b/drivers/spi/atmel_spi.h @@ -3,6 +3,7 @@ */ /* Register offsets */ +#include <linux/bitops.h> #define ATMEL_SPI_CR 0x0000 #define ATMEL_SPI_MR 0x0004 #define ATMEL_SPI_RDR 0x0008 diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c index f88702df4d..f30a8a42bd 100644 --- a/drivers/spi/bcm63xx_hsspi.c +++ b/drivers/spi/bcm63xx_hsspi.c @@ -10,11 +10,13 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <reset.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #define HSSPI_PP 0 diff --git a/drivers/spi/bcm63xx_spi.c b/drivers/spi/bcm63xx_spi.c index 719f53d08e..acc1a493c4 100644 --- a/drivers/spi/bcm63xx_spi.c +++ b/drivers/spi/bcm63xx_spi.c @@ -10,6 +10,7 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <reset.h> diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index 994a5948f1..1e85749209 100644 --- a/drivers/spi/cadence_qspi.c +++ b/drivers/spi/cadence_qspi.c @@ -6,6 +6,7 @@ #include <common.h> #include <clk.h> +#include <log.h> #include <asm-generic/io.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index 0a5af05614..f9675f75a4 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/drivers/spi/cadence_qspi_apb.c @@ -26,8 +26,11 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> #include <dma.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <wait_bit.h> #include <spi.h> diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c index 923ff6f311..dd9c77281f 100644 --- a/drivers/spi/cf_spi.c +++ b/drivers/spi/cf_spi.c @@ -15,6 +15,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/platform_data/spi_coldfire.h> #include <spi.h> #include <malloc.h> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 4d2c106440..97ac97b1a5 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -9,12 +9,15 @@ */ #include <common.h> +#include <log.h> #include <spi.h> #include <malloc.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <dm.h> #include <dm/platform_data/spi_davinci.h> +#include <linux/bitops.h> +#include <linux/delay.h> /* SPIGCR0 */ #define SPIGCR0_SPIENA_MASK 0x1 diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 2dc16736a3..c9b14f9029 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -10,6 +10,7 @@ */ #include <common.h> +#include <log.h> #include <asm-generic/gpio.h> #include <clk.h> #include <dm.h> @@ -19,6 +20,7 @@ #include <fdtdec.h> #include <reset.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/iopoll.h> #include <asm/io.h> diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index d682a11013..746686a18a 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <fdtdec.h> @@ -18,6 +19,7 @@ #include <asm/arch/pinmux.h> #include <asm/arch/spi.h> #include <asm/io.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index a68a51945e..1cdb233110 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -13,6 +13,7 @@ #include <dm.h> #include <errno.h> #include <common.h> +#include <log.h> #include <spi.h> #include <malloc.h> #include <asm/io.h> @@ -21,6 +22,8 @@ #include <asm/arch/clock.h> #endif #include <fsl_dspi.h> +#include <linux/bitops.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c index 7444ae1a06..50d194f614 100644 --- a/drivers/spi/fsl_espi.c +++ b/drivers/spi/fsl_espi.c @@ -7,6 +7,9 @@ */ #include <common.h> +#include <log.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index ee2c8b67dc..e715f9838f 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -24,7 +24,13 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> +#include <linux/libfdt.h> +#include <linux/sizes.h> +#include <linux/iopoll.h> #include <dm.h> #include <linux/iopoll.h> #include <linux/sizes.h> diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index a9d7715a55..7405062846 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -8,10 +8,12 @@ #define LOG_CATEGORY UCLASS_SPI #include <common.h> +#include <bootstage.h> #include <div64.h> #include <dm.h> #include <dt-structs.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <pch.h> #include <pci.h> @@ -23,6 +25,8 @@ #include <asm/fast_spi.h> #include <asm/io.h> #include <asm/mtrr.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/sizes.h> #include "ich.h" diff --git a/drivers/spi/ich.h b/drivers/spi/ich.h index d7f1ffdf37..23c7827740 100644 --- a/drivers/spi/ich.h +++ b/drivers/spi/ich.h @@ -8,6 +8,7 @@ #ifndef _ICH_H_ #define _ICH_H_ +#include <linux/bitops.h> struct ich7_spi_regs { uint16_t spis; uint16_t spic; diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c index 38fe4143f5..01fcf6bef5 100644 --- a/drivers/spi/kirkwood_spi.c +++ b/drivers/spi/kirkwood_spi.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <asm/io.h> diff --git a/drivers/spi/meson_spifc.c b/drivers/spi/meson_spifc.c index 3d551694cb..2cdc018682 100644 --- a/drivers/spi/meson_spifc.c +++ b/drivers/spi/meson_spifc.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <log.h> #include <spi.h> #include <clk.h> #include <dm.h> @@ -15,6 +16,7 @@ #include <errno.h> #include <asm/io.h> #include <linux/bitfield.h> +#include <linux/bitops.h> /* register map */ #define REG_CMD 0x00 diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index b020ce2b9d..0026ad23e3 100644 --- a/drivers/spi/mpc8xx_spi.c +++ b/drivers/spi/mpc8xx_spi.c @@ -20,6 +20,7 @@ #include <dm.h> #include <mpc8xx.h> #include <spi.h> +#include <linux/delay.h> #include <asm/cpm_8xx.h> #include <asm/io.h> diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index e48debb045..811b5d44fb 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -8,11 +8,14 @@ #include <clk.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <asm/mpc8xxx_spi.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> +#include <linux/bitops.h> +#include <linux/delay.h> enum { SPI_EV_NE = BIT(31 - 22), /* Receiver Not Empty */ diff --git a/drivers/spi/mscc_bb_spi.c b/drivers/spi/mscc_bb_spi.c index c3c7b80426..0454410ee9 100644 --- a/drivers/spi/mscc_bb_spi.c +++ b/drivers/spi/mscc_bb_spi.c @@ -8,11 +8,13 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> struct mscc_bb_priv { diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c index 90e85c6b44..3a0738eb2b 100644 --- a/drivers/spi/mt7621_spi.c +++ b/drivers/spi/mt7621_spi.c @@ -11,8 +11,10 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <log.h> #include <spi.h> #include <wait_bit.h> +#include <linux/bitops.h> #include <linux/io.h> #define MT7621_RX_FIFO_LEN 32 diff --git a/drivers/spi/mvebu_a3700_spi.c b/drivers/spi/mvebu_a3700_spi.c index 1469771619..2302e62be4 100644 --- a/drivers/spi/mvebu_a3700_spi.c +++ b/drivers/spi/mvebu_a3700_spi.c @@ -7,12 +7,14 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <clk.h> #include <wait_bit.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index 4d1317c364..f52ebf4d67 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -5,9 +5,12 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <dm/device_compat.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index 3ca30887fb..0da4a80d71 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -14,9 +14,12 @@ #include <common.h> #include <cpu_func.h> +#include <log.h> #include <malloc.h> #include <memalign.h> #include <spi.h> +#include <asm/cache.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index 22a5c0e3c7..c507437f2e 100644 --- a/drivers/spi/nxp_fspi.c +++ b/drivers/spi/nxp_fspi.c @@ -40,6 +40,7 @@ #include <spi-mem.h> #include <dm.h> #include <clk.h> +#include <linux/bitops.h> #include <linux/kernel.h> #include <linux/sizes.h> #include <linux/iopoll.h> diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index ff4c700645..6a615d1498 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -21,6 +21,7 @@ #include <spi.h> #include <malloc.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c index 4ec6683de1..52e9eff743 100644 --- a/drivers/spi/pic32_spi.c +++ b/drivers/spi/pic32_spi.c @@ -9,6 +9,8 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <log.h> +#include <linux/bitops.h> #include <linux/compat.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index bb2e7748fe..3ea59b8fb8 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -12,6 +12,8 @@ #include <dm/of_access.h> #include <dt-structs.h> #include <errno.h> +#include <linux/bitops.h> +#include <linux/bug.h> #include <linux/errno.h> #include <spi.h> #include <wait_bit.h> diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index 95eeb8307a..833cb04922 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -15,8 +15,10 @@ #include <dm.h> #include <dt-structs.h> #include <errno.h> +#include <log.h> #include <spi.h> #include <time.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 6b610ff823..b0a46c8868 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -12,6 +12,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <spi_flash.h> diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c index 5ae203d8d4..2839dd1ceb 100644 --- a/drivers/spi/sh_qspi.c +++ b/drivers/spi/sh_qspi.c @@ -13,6 +13,7 @@ #include <wait_bit.h> #include <asm/arch/rmobile.h> #include <asm/io.h> +#include <linux/bitops.h> /* SH QSPI register bit masks <REG>_<BIT> */ #define SPCR_MSTR 0x08 diff --git a/drivers/spi/sh_spi.c b/drivers/spi/sh_spi.c index c58fd0ebc4..4ecfe60115 100644 --- a/drivers/spi/sh_spi.c +++ b/drivers/spi/sh_spi.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <spi.h> #include <asm/io.h> +#include <linux/delay.h> #include "sh_spi.h" static void sh_spi_write(unsigned long data, unsigned long *reg) diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index b80f810bd1..e8d7758da0 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -13,9 +13,12 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <asm/gpio.h> +#include <linux/bitops.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/spi-mem-nodm.c b/drivers/spi/spi-mem-nodm.c index 83dde4806e..765f05fe54 100644 --- a/drivers/spi/spi-mem-nodm.c +++ b/drivers/spi/spi-mem-nodm.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ */ +#include <log.h> #include <malloc.h> #include <spi.h> #include <spi-mem.h> diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index ffbe20c5b1..d344701aeb 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -7,6 +7,7 @@ */ #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/dmaengine.h> #include <linux/pm_runtime.h> diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index 4cab0391f7..0e0ce25abb 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c @@ -13,6 +13,7 @@ #include <spi-mem.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/log2.h> #include <clk.h> diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index c59fee10a8..d2dccd67e5 100644 --- a/drivers/spi/spi-sunxi.c +++ b/drivers/spi/spi-sunxi.c @@ -21,12 +21,14 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <log.h> #include <spi.h> #include <errno.h> #include <fdt_support.h> #include <reset.h> #include <wait_bit.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <asm/bitops.h> #include <asm/gpio.h> diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 4a02d95a34..cffd9cf0b0 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <dm/device-internal.h> diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c index 6857a87dc5..001f0703e3 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm32_qspi.c @@ -9,9 +9,12 @@ #include <common.h> #include <clk.h> +#include <log.h> #include <reset.h> #include <spi-mem.h> #include <dm/device_compat.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/iopoll.h> #include <linux/ioport.h> #include <linux/sizes.h> diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index ebf2b98fcd..4a0833b6fa 100644 --- a/drivers/spi/stm32_spi.c +++ b/drivers/spi/stm32_spi.c @@ -8,10 +8,13 @@ #include <clk.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <reset.h> #include <spi.h> #include <dm/device_compat.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index bb34b20f54..0e8198c5a0 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -7,11 +7,14 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> #include <spi.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include "tegra_spi.h" /* COMMAND1 */ diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 0e68d33be6..22a0304bfc 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <time.h> #include <asm/io.h> #include <asm/gpio.h> @@ -16,6 +17,8 @@ #include <asm/arch-tegra/clk_rst.h> #include <spi.h> #include <fdtdec.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include "tegra_spi.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index ae2fc3e76d..3679cf06a0 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -7,12 +7,15 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> #include <spi.h> #include <fdtdec.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include "tegra_spi.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index 6e540e97df..ae16b45dcb 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -8,12 +8,15 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> #include <spi.h> #include <fdtdec.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include "tegra_spi.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index e3750b0b17..0db0de8f1b 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -7,6 +7,8 @@ #include <common.h> #include <cpu_func.h> +#include <log.h> +#include <asm/cache.h> #include <asm/io.h> #include <asm/arch/omap.h> #include <malloc.h> @@ -17,6 +19,7 @@ #include <asm/omap_gpio.h> #include <asm/omap_common.h> #include <asm/ti-common/ti-edma3.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/kernel.h> #include <regmap.h> diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c index 153fbb2889..114bd8abd7 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -7,9 +7,12 @@ #include <clk.h> #include <common.h> #include <dm.h> +#include <log.h> #include <time.h> #include <dm/device_compat.h> #include <linux/bitfield.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/io.h> #include <spi.h> #include <wait_bit.h> diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 2b5f2cf548..05768eef72 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -16,10 +16,12 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <asm/io.h> #include <wait_bit.h> +#include <linux/bitops.h> /* * [0]: http://www.xilinx.com/support/documentation diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index 9ad1927a5d..db473da6ea 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -8,9 +8,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <asm/io.h> +#include <linux/bitops.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index 0b2b2f4810..3e66b34ebb 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -8,10 +8,13 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <spi.h> #include <time.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 02b78df843..c3a5b3e301 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -7,7 +7,9 @@ #include <common.h> #include <cpu_func.h> +#include <log.h> #include <asm/arch/sys_proto.h> +#include <asm/cache.h> #include <asm/io.h> #include <clk.h> #include <dm.h> @@ -17,6 +19,7 @@ #include <ubi_uboot.h> #include <wait_bit.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/err.h> #define GQSPI_GFIFO_STRT_MODE_MASK BIT(29) |