[PATCH 0/4] NXP IFC nand driver

Renaud Barbier renaud.barbier at abaco.com
Wed Jul 28 05:47:04 PDT 2021


These patches add the NXP IFC nand driver and enables it for the
Layescape SOC. Tested on the ls1046ardb evaluation board with UBI/UBIFS.

The driver makes use of the ls10146ardb DTS to probe the device.
Originally, adapted for our NXP P1014 based platforms(not upstream), it
allows to pass the chip select number using platform data.

Additional I/O operations and atomic 64-bit counters are added to support
the 64-bit platform, driver and UBIFS.

Renaud Barbier (4):
  ARM: atomic.h: add 64-bit counter support
  arm: 64-bit device specific operation
  nand: add NXP IFC nand driver
  ls1046ardb: enable IFC NAND.

 arch/arm/boards/ls1046ardb/board.c            |   26 +
 arch/arm/configs/layerscape_defconfig         |   12 +
 arch/arm/lib64/Makefile                       |    2 +-
 arch/arm/lib64/io.c                           |   98 ++
 .../mach-layerscape/include/mach/fsl_ifc.h    |   16 +
 .../mach-layerscape/include/mach/layerscape.h |    3 +
 drivers/mtd/nand/Kconfig                      |    6 +
 drivers/mtd/nand/Makefile                     |    1 +
 drivers/mtd/nand/fsl_ifc.h                    |  116 ++
 drivers/mtd/nand/nand_fsl_ifc.c               | 1037 +++++++++++++++++
 include/asm-generic/atomic-long.h             |    3 +-
 include/asm-generic/atomic.h                  |   49 +
 include/linux/fsl_ifc.h                       |  306 +++++
 13 files changed, 1673 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/lib64/io.c
 create mode 100644 arch/arm/mach-layerscape/include/mach/fsl_ifc.h
 create mode 100644 drivers/mtd/nand/fsl_ifc.h
 create mode 100644 drivers/mtd/nand/nand_fsl_ifc.c
 create mode 100644 include/linux/fsl_ifc.h

-- 
2.27.0




More information about the barebox mailing list