public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL
@ 2015-07-23 12:33 Piotr Zierhoffer
  2015-07-23 12:33 ` [U-Boot] [PATCH v3 1/4] sunxi: nand: Add pinmux and clock settings for NAND support Piotr Zierhoffer
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Piotr Zierhoffer @ 2015-07-23 12:33 UTC (permalink / raw)
  To: u-boot


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 v3:
- moved pinmux and clock to board level
- code cleanup with significant size reduction
- renamed the driver file
- renamed constants to match Kconfig convention
- moved defines from .h to .c, and renamed them to be consistent with
  each other
- removed more magic values
- changed ecc_errors from static to local variable
- other minor changes
- added new options in Kconfig to support different chips
- changed descriptions to comply with patman rules

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
- removed traces of non-SPL specific code
- renamed defines to be more relevant
- moved Kconfig entry for the driver to drivers/mtd/nand
- reworded Kconfig entry help

Karol Gugala (1):
  sunxi: nand: Add pinmux and clock settings for NAND support

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 +
 arch/arm/include/asm/arch-sunxi/clock_sun4i.h |   2 +
 arch/arm/include/asm/arch-sunxi/gpio.h        |   1 +
 board/sunxi/board.c                           |  27 ++
 drivers/mtd/nand/Kconfig                      |  40 +++
 drivers/mtd/nand/Makefile                     |   1 +
 drivers/mtd/nand/sunxi_nand_spl.c             | 353 ++++++++++++++++++++++++++
 include/configs/sunxi-common.h                |  10 +
 8 files changed, 438 insertions(+)
 create mode 100644 drivers/mtd/nand/sunxi_nand_spl.c

-- 
2.3.6

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2015-08-27 10:10 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 12:33 [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL Piotr Zierhoffer
2015-07-23 12:33 ` [U-Boot] [PATCH v3 1/4] sunxi: nand: Add pinmux and clock settings for NAND support Piotr Zierhoffer
2015-07-23 12:33 ` [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support Piotr Zierhoffer
2015-07-31  0:47   ` Scott Wood
2015-07-31  8:36     ` Hans de Goede
2015-07-31  9:24       ` Boris Brezillon
2015-07-31 14:25         ` Michal Suchanek
2015-07-31 14:27           ` Hans de Goede
2015-07-31 14:41           ` Boris Brezillon
2015-07-31 15:27             ` Michal Suchanek
2015-07-31 16:57             ` Scott Wood
2015-07-23 12:33 ` [U-Boot] [PATCH v3 3/4] sunxi: nand: Add board configuration options Piotr Zierhoffer
2015-07-23 12:33 ` [U-Boot] [PATCH v3 4/4] sunxi: nand: Add information to sunxi that it was run from NAND in SPL Piotr Zierhoffer
2015-07-23 14:04 ` [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL Marek Vasut
2015-07-23 14:59   ` Piotr Zierhoffer
2015-07-23 15:57     ` Marek Vasut
2015-08-01 12:15 ` Hans de Goede
2015-08-01 12:30   ` Boris Brezillon
2015-08-01 19:22     ` Scott Wood
2015-08-02 12:56       ` Hans de Goede
2015-08-06  7:55         ` Piotr Zierhoffer
2015-08-20 12:37           ` Stefan Roese
2015-08-20 13:42             ` Hans de Goede
2015-08-20 14:49               ` Stefan Roese
2015-08-27 10:06                 ` Stefan Roese
2015-08-27 10:10                   ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox