[U-Boot] [PATCH v2 0/9] mtd: nand: mxs_nand: add device tree support

Stefano Babic sbabic at denx.de
Wed Jun 27 07:41:14 UTC 2018


On 22/06/2018 18:06, Stefan Agner wrote:
> From: Stefan Agner <stefan.agner at toradex.com>
> 
> This patchset adds device tree support to the MXS NAND driver.
> This also allows to use fixed ECC strenght usingt he device
> tree properties nand-ecc-strength/nand-ecc-step-size and aligns
> behavior with the Linux GPMI NAND driver.
> 
> This is based on the "mtd: nand: mxs_nand: improve ECC support"
> patchset:
> https://patchwork.ozlabs.org/cover/897263/
> 
> Support for nand-ecc-strength/nand-ecc-step-size has recently
> been added in Linux, see:
> https://patchwork.kernel.org/patch/10257829/
> 
> This patchset has been tested with various ECC configurations
> on a Colibri iMX7.
> 
> This second version is rebased onto v4 of the "improve ECC support"
> patchset.
> 
> --
> Stefan
> 
> Changes in v2:
> - Set base registers also in SPL init
> - Update function name also in SPL init
> - Move free of nand_info to board_nand_init
> - Rename patch title since there is already a header file
> 
> Stefan Agner (9):
>   mtd: nand: mxs_nand: move register structs to driver data
>   mtd: nand: mxs_nand: use more precise function name
>   mtd: nand: mxs_nand: separate board/controller init
>   mtd: nand: mxs_nand: add use_minimum_ecc to struct
>   mtd: nand: mxs_nand: move structs into header file
>   mtd: nand: mxs_nand: add device tree support
>   mtd: nand: mxs_nand: add support for specific ECC strength
>   arm: dts: imx7: sync with Linux
>   arm: dts: imx7: colibri: add raw NAND support
> 
>  arch/arm/dts/imx7-colibri.dts           |  28 ++
>  arch/arm/dts/imx7s.dtsi                 | 491 +++++++++++++++---------
>  drivers/mtd/nand/Kconfig                |   7 +
>  drivers/mtd/nand/Makefile               |   1 +
>  drivers/mtd/nand/mxs_nand.c             | 218 +++++------
>  drivers/mtd/nand/mxs_nand.h             |  62 +++
>  drivers/mtd/nand/mxs_nand_dt.c          |  86 +++++
>  include/dt-bindings/clock/imx7d-clock.h |  15 +-
>  include/dt-bindings/power/imx7-power.h  |  16 +
>  9 files changed, 625 insertions(+), 299 deletions(-)
>  create mode 100644 drivers/mtd/nand/mxs_nand_dt.c
>  create mode 100644 include/dt-bindings/power/imx7-power.h
> 

As discussed previously: applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list