[U-Boot] [PATCH v2 0/3] sunxi: nand: Basic NAND driver for SPL

Piotr Zierhoffer pzierhoffer at antmicro.com
Mon Jul 20 14:37:24 CEST 2015


This is a basic driver for the sunxi NAND controller for Allwinner A20.
It supports only SPL.

The driver uses DMA for data transfers. It does not support writing.

Changes in v2:
- removed traces of non-SPL-specific code
- moved the driver from boards/sunxi to drivers/mtd/nand
- moved magic values to defines (whenever possible)
- removed unnecesary late initialisation code
- code style changes as suggested for the first patch set:
  - changed visibility of some symbols
  - renamed unclear variables
  - renamed header protector
  - changed types of pointer variables
  - other minor changes
- renamed defines to be more relevant
- moved Kconfig entry for the driver to drivers/mtd/nand
- reworded Kconfig entry help

Piotr Zierhoffer (3):
  sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support
  sunxi: nand: Add board configuration options
  sunxi: nand: Add information to sunxi that it was run from NAND in SPL

 arch/arm/cpu/armv7/sunxi/board.c |   4 +
 drivers/mtd/nand/Kconfig         |   7 +
 drivers/mtd/nand/Makefile        |   1 +
 drivers/mtd/nand/sunxi_nand.c    | 289 +++++++++++++++++++++++++++++++++++++++
 drivers/mtd/nand/sunxi_nand.h    | 151 ++++++++++++++++++++
 include/configs/sunxi-common.h   |  11 ++
 6 files changed, 463 insertions(+)
 create mode 100644 drivers/mtd/nand/sunxi_nand.c
 create mode 100644 drivers/mtd/nand/sunxi_nand.h

-- 
2.3.6



More information about the U-Boot mailing list