This is a series of patches to enable nand read functionality on sunxi
devices. It uses DMA and is able to read from syndrome partitions and
normal ones. Additionaly mksunxiboot tool is patched to be able to
format resulting binary to be able to read from BROM, so NAND SPL builds
are now possible. a20_nandread command is added for conveniance.

Afaik DMA controller doesn't vary between a10 and a20, so this should
work on a10 devices, but due to no a10 hardware it wasn't tested.

Daniel Kochmański (4):
  sunxi: nand: add minimal nand driver (reading flash only).
  sunxi: mksunxiboot: increase block size, so checksum is correct on
    nand
  sunxi: nand: add nand spl boot option
  sunxi: nand: add a20_nandread command

 arch/arm/cpu/armv7/sunxi/board.c |   4 +
 board/sunxi/Makefile             |   1 +
 board/sunxi/nand.c               | 252 +++++++++++++++++++++++++++++++++++++++
 common/Makefile                  |   1 +
 common/cmd_a20_nandread.c        |  26 ++++
 common/spl/spl_nand.c            |  23 +++-
 include/configs/sunxi-common.h   |  25 ++--
 tools/mksunxiboot.c              |   2 +-
 8 files changed, 322 insertions(+), 12 deletions(-)
 create mode 100644 board/sunxi/nand.c
 create mode 100644 common/cmd_a20_nandread.c

-- 
2.2.1

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to