[PATCH] mtd: nand: fsmc: Add BCH4 SW ECC support for SPEAr600

Viresh Kumar viresh.kumar at linaro.org
Wed Sep 2 04:12:06 PDT 2015


On 02-09-15, 11:53, Stefan Roese wrote:
> This patch adds support for 4-bit ECC BCH4 for the SPEAr600 SoC. This can
> be used by boards equipped with a NAND chip that requires 4-bit ECC
> strength. The SPEAr600 HW ECC only supports 1-bit ECC strength.
> 
> To enable SW BCH4, you need to specify this in your nand controller
> DT node:
> 
> 	nand-ecc-mode = "soft_bch";
> 
> Tested on a custom SPEAr600 board.
> 
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Viresh Kumar <viresh.kumar at linaro.org>
> Cc: Brian Norris <computersforpeace at gmail.com>
> ---
>  drivers/mtd/nand/fsmc_nand.c | 72 ++++++++++++++++++++++++++++++++------------
>  include/linux/mtd/fsmc.h     |  2 ++
>  2 files changed, 54 insertions(+), 20 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar at linaro.org>

-- 
viresh



More information about the linux-mtd mailing list