All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform
Date: Thu, 29 Aug 2013 11:01:55 -0400	[thread overview]
Message-ID: <20130829150155.GS17898@bill-the-cat> (raw)
In-Reply-To: <1377773805-8751-2-git-send-email-pekon@ti.com>

On Thu, Aug 29, 2013 at 04:26:41PM +0530, Pekon Gupta wrote:

> BCH8_ECC scheme implemented in omap_gpmc.c driver has following favours
> +-----------------------------------+-----------------+-----------------+
> |ECC Scheme                         | ECC Calculation | Error Detection |
> +-----------------------------------+-----------------+-----------------+
> |OMAP_ECC_BCH8_CODE_HW              |GPMC             |ELM H/W engine   |
> |OMAP_ECC_BCH8_CODE_HW_DETECTION_SW |GPMC             |S/W BCH library  |
> +-----------------------------------+-----------------+-----------------+
> 
> Current implementation limits the BCH8_CODE_HW only for AM33xx device family.
> (using CONFIG_AM33XX). However, other SoC families (like TI81xx) also have
> ELM hardware module, and can support ECC error detection using ELM.
> 
> This patch
> - removes CONFIG_AM33xx
> 	Thus this driver can be reused by all devices having ELM h/w engine.
> - adds omap_select_ecc_scheme()
> 	A common function to handle ecc-scheme related configurations. This
> 	can be used both during device-probe and via user-space u-boot commads
> 	to change ecc-scheme.
> - adds CONFIG_BCH
> 	S/W library (lib/bch.c) required by OMAP_ECC_BCH8_CODE_HW_DETECTION_SW
>   	is enabled by CONFIG_BCH.
> - adds CONFIG_SYS_NAND_ECCSCHEME (new)
> 	user specified CONFIG to determine ecc-scheme used during boot
> - adds CONFIG_SYS_NAND_ONFI_DETECTION
> 	enable auto-detection of ONFI compliant devices
> 
> Signed-off-by: Pekon Gupta <pekon@ti.com>
> ---
>  arch/arm/include/asm/arch-am33xx/omap_gpmc.h |  48 +----
>  doc/README.nand                              |  13 ++
>  drivers/mtd/nand/omap_gpmc.c                 | 291 ++++++++++++++++-----------
>  include/configs/am335x_evm.h                 |   2 +
>  4 files changed, 195 insertions(+), 159 deletions(-)

For the am33xx related parts:
Reviewed-by: Tom Rini <trini@ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130829/9f5f899b/attachment.pgp>

  reply	other threads:[~2013-08-29 15:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 10:56 [U-Boot] [PATCH v3 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform Pekon Gupta
2013-08-29 15:01   ` Tom Rini [this message]
2013-08-29 10:56 ` [U-Boot] [PATCH v3 2/5] mtd: nand: omap: optimize chip->ecc.hwctl() for H/W ECC schemes Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 3/5] mtd: nand: omap: optimize chip->ecc.calculate() " Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 4/5] mtd: nand: omap: optimized chip->ecc.correct() " Pekon Gupta
2013-08-29 10:56 ` [U-Boot] [PATCH v3 5/5] board/ti/am335x/README: update for NAND boot Pekon Gupta
2013-08-29 12:56   ` Tom Rini
     [not found]     ` <20980858CB6D3A4BAE95CA194937D5E73EA05DA1@DBDE04.ent.ti.com>
2013-08-29 13:08       ` Tom Rini
2013-08-29 16:06 ` [U-Boot] [PATCH v3 0/5] mtd: nand: omap: optimize and clean-up of OMAP NAND driver Tom Rini
     [not found]   ` <20980858CB6D3A4BAE95CA194937D5E73EA07FF2@DBDE04.ent.ti.com>
2013-08-29 17:47     ` Tom Rini
     [not found]       ` <20980858CB6D3A4BAE95CA194937D5E73EA0AA07@DBDE04.ent.ti.com>
2013-09-04 12:51         ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130829150155.GS17898@bill-the-cat \
    --to=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.