diff options
Diffstat (limited to 'drivers/mtd/nand')
39 files changed, 71 insertions, 0 deletions
diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c index 133670cb19..84d60b8652 100644 --- a/drivers/mtd/nand/bbt.c +++ b/drivers/mtd/nand/bbt.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/mtd/nand.h> #ifndef __UBOOT__ #include <linux/slab.h> diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index bc0accf8c6..6fbd24ba74 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -14,6 +14,7 @@ #include <linux/compat.h> #include <linux/module.h> #endif +#include <linux/bitops.h> #include <linux/mtd/nand.h> /** diff --git a/drivers/mtd/nand/raw/am335x_spl_bch.c b/drivers/mtd/nand/raw/am335x_spl_bch.c index ba2f33a96e..b6fc5f29c7 100644 --- a/drivers/mtd/nand/raw/am335x_spl_bch.c +++ b/drivers/mtd/nand/raw/am335x_spl_bch.c @@ -12,6 +12,7 @@ #include <common.h> #include <nand.h> #include <asm/io.h> +#include <linux/delay.h> #include <linux/mtd/nand_ecc.h> static int nand_ecc_pos[] = CONFIG_SYS_NAND_ECCPOS; diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index 110c32b396..6c1d64054c 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -8,6 +8,7 @@ #include <common.h> #include <malloc.h> #include <asm/io.h> +#include <linux/delay.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atmel_nand.c index 996d3dbb71..5e95901e27 100644 --- a/drivers/mtd/nand/raw/atmel_nand.c +++ b/drivers/mtd/nand/raw/atmel_nand.c @@ -11,10 +11,14 @@ */ #include <common.h> +#include <log.h> #include <asm/gpio.h> #include <asm/arch/gpio.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> +#include <linux/bug.h> +#include <linux/delay.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c index ea7c65a1f6..6313403cd6 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c index e2f5452c27..cd4b24a51a 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c index 0f1a28e476..aa042bef15 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/errno.h> #include <linux/io.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c index 3a136155dd..0788455090 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c index 6aca011db2..818eae8a7c 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c @@ -4,6 +4,7 @@ #include <asm/io.h> #include <memalign.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/errno.h> #include <linux/io.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 7bdebf5869..48c0ca69de 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -19,6 +19,8 @@ #include <clk.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> +#include <linux/bug.h> #include <linux/err.h> #include <linux/ioport.h> #include <linux/completion.h> diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index 724bbee752..4416b8fa1e 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -29,6 +29,7 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> #include <nand.h> #include <dm/uclass.h> diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index b525b1be54..5bae7f1197 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -5,12 +5,18 @@ * Copyright (C) 2009-2010, Intel Corporation and its suppliers. */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <nand.h> +#include <asm/cache.h> +#include <asm/dma-mapping.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/bitfield.h> +#include <linux/bitops.h> +#include <linux/delay.h> +#include <linux/dma-direction.h> #include <linux/dma-mapping.h> #include <linux/err.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/denali_dt.c b/drivers/mtd/nand/raw/denali_dt.c index 41b93e660a..2728e8098f 100644 --- a/drivers/mtd/nand/raw/denali_dt.c +++ b/drivers/mtd/nand/raw/denali_dt.c @@ -7,6 +7,8 @@ #include <clk.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bug.h> +#include <linux/delay.h> #include <linux/io.h> #include <linux/ioport.h> #include <linux/printk.h> diff --git a/drivers/mtd/nand/raw/denali_spl.c b/drivers/mtd/nand/raw/denali_spl.c index b8b29812aa..f72142817e 100644 --- a/drivers/mtd/nand/raw/denali_spl.c +++ b/drivers/mtd/nand/raw/denali_spl.c @@ -5,8 +5,10 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> #include <asm/unaligned.h> +#include <linux/delay.h> #include <linux/mtd/rawnand.h> #include "denali.h" diff --git a/drivers/mtd/nand/raw/fsl_ifc_spl.c b/drivers/mtd/nand/raw/fsl_ifc_spl.c index 0983fbced3..b7e37416a4 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_spl.c +++ b/drivers/mtd/nand/raw/fsl_ifc_spl.c @@ -10,6 +10,7 @@ #include <cpu_func.h> #include <asm/io.h> #include <fsl_ifc.h> +#include <part.h> #include <linux/mtd/rawnand.h> #ifdef CONFIG_CHAIN_OF_TRUST #include <fsl_validate.h> diff --git a/drivers/mtd/nand/raw/fsl_upm.c b/drivers/mtd/nand/raw/fsl_upm.c index dfbdbca3ae..6c86a7e767 100644 --- a/drivers/mtd/nand/raw/fsl_upm.c +++ b/drivers/mtd/nand/raw/fsl_upm.c @@ -8,7 +8,9 @@ #include <config.h> #include <common.h> +#include <log.h> #include <asm/io.h> +#include <linux/delay.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> #include <linux/mtd/fsl_upm.h> diff --git a/drivers/mtd/nand/raw/kmeter1_nand.c b/drivers/mtd/nand/raw/kmeter1_nand.c index 7103300060..cf33f2863e 100644 --- a/drivers/mtd/nand/raw/kmeter1_nand.c +++ b/drivers/mtd/nand/raw/kmeter1_nand.c @@ -7,6 +7,7 @@ #include <common.h> #include <nand.h> #include <asm/io.h> +#include <linux/delay.h> #define CONFIG_NAND_MODE_REG (void *)(CONFIG_SYS_NAND_BASE + 0x20000) #define CONFIG_NAND_DATA_REG (void *)(CONFIG_SYS_NAND_BASE + 0x30000) diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c index 79d1489dc7..b3232ed59d 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c @@ -21,6 +21,7 @@ #include <common.h> #include <nand.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c index 8615b112a2..9cca3c55cc 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c @@ -11,7 +11,9 @@ */ #include <common.h> +#include <log.h> #include <nand.h> +#include <linux/bug.h> #include <linux/mtd/nand_ecc.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c index cf97e0f74f..59cef20575 100644 --- a/drivers/mtd/nand/raw/mxc_nand.c +++ b/drivers/mtd/nand/raw/mxc_nand.c @@ -6,7 +6,9 @@ */ #include <common.h> +#include <log.h> #include <nand.h> +#include <linux/delay.h> #include <linux/err.h> #include <asm/io.h> #if defined(CONFIG_MX25) || defined(CONFIG_MX27) || defined(CONFIG_MX35) || \ diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c index e3516cd141..a7852a841c 100644 --- a/drivers/mtd/nand/raw/mxs_nand.c +++ b/drivers/mtd/nand/raw/mxs_nand.c @@ -16,6 +16,7 @@ #include <common.h> #include <cpu_func.h> #include <dm.h> +#include <asm/cache.h> #include <linux/mtd/rawnand.h> #include <linux/sizes.h> #include <linux/types.h> diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index ae50cc37b5..46dc29df36 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -5,9 +5,13 @@ * Author: Tim Harvey <tharvey@gateworks.com> */ #include <common.h> +#include <log.h> #include <nand.h> #include <malloc.h> #include <mxs_nand.h> +#include <asm/cache.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/err.h> static struct mtd_info *mtd; diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 49d5e261b5..698968bc11 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -32,9 +32,13 @@ #if CONFIG_IS_ENABLED(OF_CONTROL) #include <fdtdec.h> #endif +#include <log.h> #include <malloc.h> #include <watchdog.h> #include <dm/devres.h> +#include <linux/bitops.h> +#include <linux/bug.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c index a6e6e0ef6d..911472e91e 100644 --- a/drivers/mtd/nand/raw/nand_bbt.c +++ b/drivers/mtd/nand/raw/nand_bbt.c @@ -58,8 +58,10 @@ */ #include <common.h> +#include <log.h> #include <malloc.h> #include <dm/devres.h> +#include <linux/bug.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> #include <linux/mtd/bbm.h> diff --git a/drivers/mtd/nand/raw/nand_bch.c b/drivers/mtd/nand/raw/nand_bch.c index 11a22e021d..734d1c6204 100644 --- a/drivers/mtd/nand/raw/nand_bch.c +++ b/drivers/mtd/nand/raw/nand_bch.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <log.h> #include <dm/devres.h> /*#include <asm/io.h>*/ #include <linux/types.h> diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c index f3c8f7f2cb..5b74ef0dfd 100644 --- a/drivers/mtd/nand/raw/nand_util.c +++ b/drivers/mtd/nand/raw/nand_util.c @@ -20,10 +20,12 @@ #include <common.h> #include <command.h> +#include <log.h> #include <watchdog.h> #include <malloc.h> #include <memalign.h> #include <div64.h> +#include <asm/cache.h> #include <dm/devres.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c index 6a050501b0..97fd5690f5 100644 --- a/drivers/mtd/nand/raw/omap_gpmc.c +++ b/drivers/mtd/nand/raw/omap_gpmc.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/mem.h> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 7e3346dfcc..a30e82166b 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -12,6 +12,9 @@ #include <nand.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> +#include <linux/bug.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c index 1c212daa1d..3306bd8ac9 100644 --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c @@ -7,8 +7,11 @@ #include <common.h> #include <clk.h> #include <dm.h> +#include <log.h> #include <nand.h> #include <reset.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/iopoll.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index 9b99be10e6..004b6f17a5 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -31,6 +31,8 @@ #include <nand.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/kernel.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c index 6cde9814c4..85d8013b1a 100644 --- a/drivers/mtd/nand/raw/sunxi_nand_spl.c +++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c @@ -9,7 +9,9 @@ #include <common.h> #include <config.h> #include <nand.h> +#include <linux/bitops.h> #include <linux/ctype.h> +#include <linux/delay.h> /* registers */ #define NFC_CTL 0x00000000 diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index ae699d1da5..b9f5bdd953 100644 --- a/drivers/mtd/nand/raw/tegra_nand.c +++ b/drivers/mtd/nand/raw/tegra_nand.c @@ -7,6 +7,7 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> @@ -14,6 +15,8 @@ #include <asm/arch/funcmux.h> #include <asm/arch-tegra/clk_rst.h> #include <dm/device_compat.h> +#include <linux/bug.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/gpio.h> #include <fdtdec.h> diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c index 3941297418..fa59455210 100644 --- a/drivers/mtd/nand/raw/zynq_nand.c +++ b/drivers/mtd/nand/raw/zynq_nand.c @@ -7,8 +7,10 @@ */ #include <common.h> +#include <log.h> #include <malloc.h> #include <asm/io.h> +#include <linux/delay.h> #include <linux/errno.h> #include <nand.h> #include <linux/ioport.h> diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 397dfa4178..93371fdde0 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -26,6 +26,8 @@ #include <spi-mem.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> +#include <linux/bug.h> #include <linux/mtd/spinand.h> #endif diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c index 67d092be2c..215f09acc3 100644 --- a/drivers/mtd/nand/spi/macronix.c +++ b/drivers/mtd/nand/spi/macronix.c @@ -10,6 +10,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <linux/bug.h> #include <linux/mtd/spinand.h> #define SPINAND_MFR_MACRONIX 0xC2 diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c index 687306e33e..04de51cb46 100644 --- a/drivers/mtd/nand/spi/micron.c +++ b/drivers/mtd/nand/spi/micron.c @@ -11,6 +11,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <linux/bitops.h> #include <linux/mtd/spinand.h> #define SPINAND_MFR_MICRON 0x2c diff --git a/drivers/mtd/nand/spi/toshiba.c b/drivers/mtd/nand/spi/toshiba.c index 77c25398fc..c4beefa617 100644 --- a/drivers/mtd/nand/spi/toshiba.c +++ b/drivers/mtd/nand/spi/toshiba.c @@ -11,6 +11,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <linux/bug.h> #include <linux/mtd/spinand.h> #define SPINAND_MFR_TOSHIBA 0x98 diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index 6ede98c85d..c119486efb 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -12,6 +12,7 @@ #include <linux/device.h> #include <linux/kernel.h> #endif +#include <linux/bitops.h> #include <linux/mtd/spinand.h> #define SPINAND_MFR_WINBOND 0xEF |