From 4bb6650632a3e36185f689c56ea31f189ce39325 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Sun, 5 Apr 2015 01:48:31 +0200 Subject: common/armflash: Support for ARM flash images The ARM reference designs all use a special flash image format that stores a footer (two versions exist) at the end of the last erase block of the image in flash memory. Version one of the footer is indicated by the magic number 0xA0FFFF9F at 12 bytes before the end of the flash block and version two is indicated by the magic number 0x464F4F54 0x464C5348 (ASCII for "FLSHFOOT") in the very last 8 bytes of the erase block. This command driver implements support for both versions of the AFS images (the name comes from the Linux driver in drivers/mtd/afs.c) and makes it possible to list images and load an image by name into the memory with these commands: afs - lists flash contents afs load - loads image to address indicated in the image afs load - loads image to a specified address This image scheme is used on the ARM Integrator family, ARM Versatile family, ARM RealView family (not yet supported in U-Boot) and ARM Versatile Express family up to and including the new Juno board for 64 bit development. Reviewed-by: Tom Rini Signed-off-by: Linus Walleij --- common/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/Kconfig') diff --git a/common/Kconfig b/common/Kconfig index e662774304..4cde4b0048 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -193,6 +193,12 @@ config CMD_FLASH erase - FLASH memory protect - enable or disable FLASH write protection +config CMD_ARMFLASH + depends on FLASH_CFI_DRIVER + bool "armflash" + help + ARM Ltd reference designs flash partition access + config CMD_NAND bool "nand" help -- cgit v1.2.1