mtd: get the ECC info from the parameter page for ONFI nand
authorHuang Shijie <b32955@freescale.com>
Fri, 17 May 2013 03:17:26 +0000 (11:17 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:34:38 +0000 (21:34 +0100)
commit10c86babfb21a07272495a968114f677313bea51
tree590b265a004de4e6c6a3ea872812aa41c4f20155
parent4cfeca2d58de8292f45351f84e84f657222a4611
mtd: get the ECC info from the parameter page for ONFI nand

From the ONFI spec, we can just get the ECC info from the @ecc_bits field of
the parameter page.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Reviewed-and-tested-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c