arm: spear: Add command to switch between 1-bit HW ECC and SW BCH4
authorStefan Roese <sr@denx.de>
Wed, 2 Sep 2015 09:10:58 +0000 (11:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Sep 2015 21:15:14 +0000 (17:15 -0400)
commitda53ba0219c65c11a673ec11c0c2ad371c74251f
treebca5a97096f86a1777519e0c592f924b49c344f6
parent1a103c6caa0b27fcd3798267b980444f5459860f
arm: spear: Add command to switch between 1-bit HW ECC and SW BCH4

This patch adds the "nandecc" command to switch between the SPEAr600 internal
1-bit HW ECC and the 4-bit SW BCH4 ECC. This can be needed to support NAND
chips with a stronger ECC than 1-bit, as on the x600. And to dynamically
switch between both ECC schemes for backwards compatibility.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
arch/arm/cpu/arm926ejs/spear/cpu.c
arch/arm/include/asm/arch-spear/spr_misc.h