mirror of
https://github.com/torvalds/linux
synced 2024-10-19 01:39:28 +00:00
mtd: rawnand: Make use of the ECC framework
Just enable the ECC framework with raw NAND so that we can drop, one by one, all the unnecessary/redundant definitions. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-17-miquel.raynal@bootlin.com
This commit is contained in:
parent
93ef92f6f4
commit
c441bcd312
|
@ -13,6 +13,7 @@ config MTD_NAND_ECC_SW_HAMMING_SMC
|
||||||
menuconfig MTD_RAW_NAND
|
menuconfig MTD_RAW_NAND
|
||||||
tristate "Raw/Parallel NAND Device Support"
|
tristate "Raw/Parallel NAND Device Support"
|
||||||
select MTD_NAND_CORE
|
select MTD_NAND_CORE
|
||||||
|
select MTD_NAND_ECC
|
||||||
select MTD_NAND_ECC_SW_HAMMING
|
select MTD_NAND_ECC_SW_HAMMING
|
||||||
help
|
help
|
||||||
This enables support for accessing all type of raw/parallel
|
This enables support for accessing all type of raw/parallel
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
|
#include <linux/mtd/nand.h>
|
||||||
#include <linux/mtd/nand_ecc.h>
|
#include <linux/mtd/nand_ecc.h>
|
||||||
#include <linux/mtd/nand_bch.h>
|
#include <linux/mtd/nand_bch.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
|
|
Loading…
Reference in a new issue