summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorBenjamin Young <benjaminzyoung@gmail.com>2017-10-13 14:29:20 -0700
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-10-25 10:05:06 +0200
commit7dec673ea949fd7278993b76e33a05f561294e43 (patch)
treeea93235cde612044e816c6077a0169b08900c64d /cmd
parentc96f598be7dd075bd0c6bda73b7819c1a6a2016a (diff)
cmd: fastboot: Enable FASTBOOT_FLASH_NAND for SUNXI_NAND devices
Encountered an issue where fastboot can't write to NAND on a CHIP_pro, the symbol was neither present in the board's config header, nor the Kconfig, this patch puts it in the Kconfig and defaults on when SUNXI_NAND is selected. Signed-off-by: Ben Young <computermouth@crunchbangplusplus.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/fastboot/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/fastboot/Kconfig b/cmd/fastboot/Kconfig
index 214bbc23fc..4ce7a775e2 100644
--- a/cmd/fastboot/Kconfig
+++ b/cmd/fastboot/Kconfig
@@ -81,6 +81,16 @@ config FASTBOOT_FLASH_MMC_DEV
regarding the non-volatile storage device. Define this to
the eMMC device that fastboot should use to store the image.
+config FASTBOOT_FLASH_NAND_DEV
+ int "Define FASTBOOT NAND FLASH default device"
+ depends on FASTBOOT_FLASH && NAND
+ depends on CMD_MTDPARTS
+ default 0 if ARCH_SUNXI && NAND_SUNXI
+ help
+ The fastboot "flash" command requires additional information
+ regarding the non-volatile storage device. Define this to
+ the NAND device that fastboot should use to store the image.
+
config FASTBOOT_GPT_NAME
string "Target name for updating GPT"
depends on FASTBOOT_FLASH