diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2015-02-03 11:58:15 -0600 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-03-30 23:24:39 -0500 |
commit | 073adf987e8251ad934fcac4fd1bf20d4f34f96e (patch) | |
tree | 119c31a7837186ee411da308b04be28d511ad81a /drivers/mtd/nand/ndfc.c | |
parent | 9ac71f112eb3cffc42e012fcdf5009e5b3b01a1d (diff) | |
download | u-boot-imx-073adf987e8251ad934fcac4fd1bf20d4f34f96e.zip u-boot-imx-073adf987e8251ad934fcac4fd1bf20d4f34f96e.tar.gz u-boot-imx-073adf987e8251ad934fcac4fd1bf20d4f34f96e.tar.bz2 |
nand: Remove CONFIG_MTD_NAND_VERIFY_WRITE
The CONFIG_MTD_NAND_VERIFY_WRITE has been removed from Linux for some
time and a more generic method of NAND verification now exists in U-Boot.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/mtd/nand/ndfc.c')
-rw-r--r-- | drivers/mtd/nand/ndfc.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 2659595..8a68cb0 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -118,21 +118,6 @@ static void ndfc_write_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len out_be32((u32 *)(base + NDFC_DATA), *p++); } -#if defined(CONFIG_MTD_NAND_VERIFY_WRITE) -static int ndfc_verify_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len) -{ - struct nand_chip *this = mtdinfo->priv; - ulong base = (ulong) this->IO_ADDR_W & 0xffffff00; - uint32_t *p = (uint32_t *) buf; - - for (; len > 0; len -= 4) - if (*p++ != in_be32((u32 *)(base + NDFC_DATA))) - return -1; - - return 0; -} -#endif - /* * Read a byte from the NDFC. */ @@ -207,9 +192,6 @@ int board_nand_init(struct nand_chip *nand) #endif nand->write_buf = ndfc_write_buf; -#if defined(CONFIG_MTD_NAND_VERIFY_WRITE) - nand->verify_buf = ndfc_verify_buf; -#endif nand->read_byte = ndfc_read_byte; chip++; |