[RESEND PATCH v4 10/10] mtd: nand: add initial ecc engine support

Simon Glass sjg at chromium.org
Sat Aug 17 17:58:16 CEST 2024


Hi Mikhail,

On Wed, 14 Aug 2024 at 04:20, Mikhail Kshevetskiy
<mikhail.kshevetskiy at iopsys.eu> wrote:
>
> only spinand on_die ecc is supported for a moment
>
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> ---
>  drivers/mtd/nand/Makefile       |   2 +-
>  drivers/mtd/nand/core.c         | 130 +++++++++++++++-
>  drivers/mtd/nand/ecc.c          | 249 ++++++++++++++++++++++++++++++
>  drivers/mtd/nand/spi/core.c     | 207 ++++++++++++++++++++-----
>  drivers/mtd/nand/spi/foresee.c  |   2 +-
>  drivers/mtd/nand/spi/macronix.c |   7 +-
>  drivers/mtd/nand/spi/micron.c   |   2 +-
>  drivers/mtd/nand/spi/toshiba.c  |  10 +-
>  drivers/mtd/nand/spi/winbond.c  |  10 +-
>  include/linux/mtd/nand.h        | 261 ++++++++++++++++++++++++++++++--
>  include/linux/mtd/spinand.h     |  13 +-
>  include/spi-mem.h               |   2 +
>  12 files changed, 830 insertions(+), 65 deletions(-)
>  create mode 100644 drivers/mtd/nand/ecc.c

Somehow this should use driver model (along with a suitable API) for
the ECC acceleration.

Regards,
Simon


More information about the U-Boot mailing list