fastboot: Implement NAND backend

So far the fastboot code was only supporting MMC-backed devices for its
flashing operations (flash and erase).

Add a storage backend for NAND-backed devices.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Maxime Ripard
2015-11-12 13:18:58 -05:00
committed by Tom Rini
parent 1f8690aa95
commit bf8940d35b
4 changed files with 223 additions and 1 deletions
+6 -1
View File
@@ -276,10 +276,15 @@ obj-y += memsize.o
obj-y += stdio.o
# This option is not just y/n - it can have a numeric value
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
ifdef CONFIG_FASTBOOT_FLASH
obj-y += aboot.o
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
obj-y += fb_mmc.o
endif
ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
obj-y += fb_nand.o
endif
endif
obj-$(CONFIG_CMD_BLOB) += cmd_blob.o