[U-Boot] [PATCH 5/5] nand: sunxi: And a20_nandread command utilizing spl nand read driver

Scott Wood scottwood at freescale.com
Tue May 19 01:52:06 CEST 2015


On Wed, 2015-04-29 at 17:03 +0200, Daniel Kochmański wrote:
> This patch adds a20_nandread command. It is simple function utilizing
> function from SPL nand driver `nand_spl_load_image`.
> 
> Usage: a20_nandread <address> <offset> <bytes>
> 
> Signed-off-by: Daniel Kochmański <dkochmanski at turtle-solutions.eu>
> Cc: Ian Campbell <ijc at hellion.org.uk>
> Cc: Hans De Goede <hdegoede at redhat.com>
> ---
> 
>  common/Kconfig            |  7 +++++++
>  common/Makefile           |  1 +
>  common/cmd_a20_nandread.c | 27 +++++++++++++++++++++++++++
>  3 files changed, 35 insertions(+)
>  create mode 100644 common/cmd_a20_nandread.c

Obviously a real NAND driver would be preferred (even if some
functionality is missing at first), but if for some reason we do need to
support simple read-only access using SPL code in the main U-Boot, what
is a20-specific about this file beyond the use case?

-Scott




More information about the U-Boot mailing list