mirror of https://gitee.com/openkylin/linux.git
mtd: rawnand: add Reed-Solomon error correction algorithm
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
16c4fba03a
commit
f308d7353d
|
@ -25,7 +25,7 @@ Optional NAND chip properties:
|
|||
Deprecated values:
|
||||
"soft_bch": use "soft" and nand-ecc-algo instead
|
||||
- nand-ecc-algo: string, algorithm of NAND ECC.
|
||||
Supported values are: "hamming", "bch".
|
||||
Valid values are: "hamming", "bch", "rs".
|
||||
- nand-bus-width : 8 or 16 bus width if not present 8
|
||||
- nand-on-flash-bbt: boolean to enable on flash bbt option if not present false
|
||||
|
||||
|
|
|
@ -5777,6 +5777,7 @@ static int of_get_nand_ecc_mode(struct device_node *np)
|
|||
static const char * const nand_ecc_algos[] = {
|
||||
[NAND_ECC_HAMMING] = "hamming",
|
||||
[NAND_ECC_BCH] = "bch",
|
||||
[NAND_ECC_RS] = "rs",
|
||||
};
|
||||
|
||||
static int of_get_nand_ecc_algo(struct device_node *np)
|
||||
|
|
|
@ -121,6 +121,7 @@ enum nand_ecc_algo {
|
|||
NAND_ECC_UNKNOWN,
|
||||
NAND_ECC_HAMMING,
|
||||
NAND_ECC_BCH,
|
||||
NAND_ECC_RS,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue