Kconfig: sandbox: enable cmd_avb and dependencies
[oweals/u-boot.git] / drivers / fastboot / Kconfig
index 9bbc5c661d4376a05ca21423063af89b8f0346fb..d63ecdd27e4bb6d3a6187c3b36c8e3180889112f 100644 (file)
@@ -14,6 +14,13 @@ config USB_FUNCTION_FASTBOOT
        help
          This enables the USB part of the fastboot gadget.
 
+config UDP_FUNCTION_FASTBOOT
+       depends on NET
+       select FASTBOOT
+       bool "Enable fastboot protocol over UDP"
+       help
+         This enables the fastboot protocol over UDP.
+
 if FASTBOOT
 
 config FASTBOOT_BUF_ADDR
@@ -28,6 +35,7 @@ config FASTBOOT_BUF_ADDR
                                ROCKCHIP_RK3399
        default 0x280000 if ROCKCHIP_RK3368
        default 0x100000 if ARCH_ZYNQMP
+       default 0 if SANDBOX
        help
          The fastboot protocol requires a large memory buffer for
          downloads. Define this to the starting RAM address to use for
@@ -38,6 +46,7 @@ config FASTBOOT_BUF_SIZE
        default 0x8000000 if ARCH_ROCKCHIP
        default 0x6000000 if ARCH_ZYNQMP
        default 0x2000000 if ARCH_SUNXI
+       default 0x8192 if SANDBOX
        default 0x7000000
        help
          The fastboot protocol requires a large memory buffer for
@@ -57,6 +66,7 @@ config FASTBOOT_FLASH
        bool "Enable FASTBOOT FLASH command"
        default y if ARCH_SUNXI
        depends on MMC || (NAND && CMD_MTDPARTS)
+       select IMAGE_SPARSE
        help
          The fastboot protocol includes a "flash" command for writing
          the downloaded image to a non-volatile storage device. Define
@@ -86,6 +96,13 @@ 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_TRIMFFS
+       bool "Skip empty pages when flashing NAND"
+       depends on FASTBOOT_FLASH_NAND
+       help
+         When flashing NAND enable the DROP_FFS flag to drop trailing all-0xff
+         pages.
+
 config FASTBOOT_GPT_NAME
        string "Target name for updating GPT"
        depends on FASTBOOT_FLASH_MMC && EFI_PARTITION
@@ -109,6 +126,14 @@ config FASTBOOT_MBR_NAME
          specified on the "fastboot flash" command line matches the value
          defined here. The default target name for updating MBR is "mbr".
 
+config FASTBOOT_CMD_OEM_FORMAT
+       bool "Enable the 'oem format' command"
+       depends on FASTBOOT_FLASH_MMC && CMD_GPT
+       help
+         Add support for the "oem format" command from a client. This
+         relies on the env variable partitions to contain the list of
+         partitions as required by the gpt command.
+
 endif # FASTBOOT
 
 endmenu