mtd: nand: raw: Add support for DT property nand-ecc-algo=bch
authorPali Rohár <pali@kernel.org>
Mon, 4 Apr 2022 16:17:21 +0000 (18:17 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
commit06ef911447fce6c3321e303e968dbb1945b23d38
tree9f8afda05d937765bf63ef5456b728c8bd9b597f
parentc9ea9019c5aaeac474d2a243dc1482e1db2b7c6d
mtd: nand: raw: Add support for DT property nand-ecc-algo=bch

According to Linux kernel DT schema nand-controller.yaml, using DT property
nand-ecc-algo=bch is the correct way for specifying BCH as ECC algorithm.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/mtd/nand/raw/nand_base.c