[U-Boot] [PATCH v2 8/8] nand: make 1-bit software ECC configurable

Scott Wood scottwood at freescale.com
Tue Nov 1 23:09:49 CET 2011


On 11/01/2011 05:08 PM, Scott Wood wrote:
> On 11/01/2011 05:04 PM, Scott Wood wrote:
>> On Wed, Oct 12, 2011 at 09:32:06AM +0200, Christian Hitz wrote:
>>> The software ECC algorithm is not necessary when hardware ECC
>>> is available and can be left out for a smaller image size.
>>> Enable with CONFIG_MTD_ECC_SOFT.
>>>
>>> Signed-off-by: Christian Hitz <christian.hitz at aizo.com>
>>> Cc: Scott Wood <scottwood at freescale.com>
>>> ---
>>>
>>> Saves 2312 bytes of image size when software ECC is not used.
>>>
>>> Changes since v1:
>>> 	- new option to disable software ECC
>>>
>>>  drivers/mtd/nand/Makefile    |    2 +-
>>>  drivers/mtd/nand/nand_base.c |    4 ++++
>>>  include/linux/mtd/nand_ecc.h |   25 +++++++++++++++++++++++++
>>>  3 files changed, 30 insertions(+), 1 deletions(-)
>>
>> Please check which boards select drivers which may use soft ECC,
>> and have them #define CONFIG_MTD_ECC_SOFT.
> 
> Also document the option in doc/README.nand, and it should probably be
> CONFIG_SYS_NAND_ECC_SOFT.

Ignore me on the CONFIG_SYS bit, not sure what I was thinking.

-Scott



More information about the U-Boot mailing list