diff options
Diffstat (limited to 'drivers/spi')
39 files changed, 39 insertions, 0 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 11d745f53a..3aa7a40b77 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -14,6 +14,7 @@ #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/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 afc7be0f01..f30a8a42bd 100644 --- a/drivers/spi/bcm63xx_hsspi.c +++ b/drivers/spi/bcm63xx_hsspi.c @@ -16,6 +16,7 @@ #include <reset.h> #include <wait_bit.h> #include <asm/io.h> +#include <linux/bitops.h> #define HSSPI_PP 0 diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index 6362869299..f9675f75a4 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/drivers/spi/cadence_qspi_apb.c @@ -29,6 +29,7 @@ #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> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index c00a05af7d..97ac97b1a5 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -16,6 +16,7 @@ #include <asm/arch/hardware.h> #include <dm.h> #include <dm/platform_data/spi_davinci.h> +#include <linux/bitops.h> #include <linux/delay.h> /* SPIGCR0 */ diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 09044bd137..c9b14f9029 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -20,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/fsl_dspi.c b/drivers/spi/fsl_dspi.c index cb3d44cb0f..1cdb233110 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -22,6 +22,7 @@ #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 ba49839107..50d194f614 100644 --- a/drivers/spi/fsl_espi.c +++ b/drivers/spi/fsl_espi.c @@ -8,6 +8,7 @@ #include <common.h> #include <log.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <malloc.h> diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index de93cbda67..e715f9838f 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -26,6 +26,7 @@ #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> diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 9c42755dae..7405062846 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -25,6 +25,7 @@ #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> 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/meson_spifc.c b/drivers/spi/meson_spifc.c index ad15995573..2cdc018682 100644 --- a/drivers/spi/meson_spifc.c +++ b/drivers/spi/meson_spifc.c @@ -16,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/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 8491eacb1b..811b5d44fb 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -14,6 +14,7 @@ #include <asm/mpc8xxx_spi.h> #include <asm-generic/gpio.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> enum { diff --git a/drivers/spi/mscc_bb_spi.c b/drivers/spi/mscc_bb_spi.c index 37327ec508..0454410ee9 100644 --- a/drivers/spi/mscc_bb_spi.c +++ b/drivers/spi/mscc_bb_spi.c @@ -14,6 +14,7 @@ #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 df9d9da1a9..3a0738eb2b 100644 --- a/drivers/spi/mt7621_spi.c +++ b/drivers/spi/mt7621_spi.c @@ -14,6 +14,7 @@ #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 73a3f91efc..2302e62be4 100644 --- a/drivers/spi/mvebu_a3700_spi.c +++ b/drivers/spi/mvebu_a3700_spi.c @@ -14,6 +14,7 @@ #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 e35c6f9b4a..f52ebf4d67 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -9,6 +9,7 @@ #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> diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index 635955e819..0da4a80d71 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -19,6 +19,7 @@ #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 88dc1444e1..52e9eff743 100644 --- a/drivers/spi/pic32_spi.c +++ b/drivers/spi/pic32_spi.c @@ -10,6 +10,7 @@ #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 61ae92d603..3ea59b8fb8 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -12,6 +12,7 @@ #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> 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/soft_spi.c b/drivers/spi/soft_spi.c index e5f9f49caf..e8d7758da0 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -17,6 +17,7 @@ #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-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 85b662bb0a..d2dccd67e5 100644 --- a/drivers/spi/spi-sunxi.c +++ b/drivers/spi/spi-sunxi.c @@ -28,6 +28,7 @@ #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/stm32_qspi.c b/drivers/spi/stm32_qspi.c index 9fc5f6e00e..001f0703e3 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm32_qspi.c @@ -13,6 +13,7 @@ #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> diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index 8071de09eb..4a0833b6fa 100644 --- a/drivers/spi/stm32_spi.c +++ b/drivers/spi/stm32_spi.c @@ -13,6 +13,7 @@ #include <reset.h> #include <spi.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <asm/io.h> diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index bf02bdb1af..0e8198c5a0 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -13,6 +13,7 @@ #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" diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 1461f09427..22a0304bfc 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -17,6 +17,7 @@ #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" diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index dcd0950894..3679cf06a0 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -14,6 +14,7 @@ #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" diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index 96ab6502de..ae16b45dcb 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -15,6 +15,7 @@ #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" diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index f25fc363ac..0db0de8f1b 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -19,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 42ed1ba20b..114bd8abd7 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -11,6 +11,7 @@ #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> diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 4a568cb56d..05768eef72 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -21,6 +21,7 @@ #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 8451f83b70..db473da6ea 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -12,6 +12,7 @@ #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 e3bad5532a..3e66b34ebb 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -13,6 +13,7 @@ #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 f12c6f766d..c3a5b3e301 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -19,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) |