Merge tag 'xilinx-for-v2021.10' of https://source.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / drivers / dfu / Kconfig
index 174fb58..b505474 100644 (file)
@@ -14,8 +14,13 @@ config DFU_OVER_TFTP
        depends on NET
 
 if DFU
+config DFU_WRITE_ALT
+       bool
+       default n
+
 config DFU_TFTP
        bool "DFU via TFTP"
+       select UPDATE_COMMON
        select DFU_OVER_TFTP
        help
          This option allows performing update of DFU-managed medium with data
@@ -71,6 +76,7 @@ config DFU_SF_PART
 config DFU_MTD
        bool "MTD back end for DFU"
        depends on DM_MTD
+       depends on CMD_MTDPARTS
        help
          This option enables using DFU to read and write to on any MTD device.
 
@@ -81,5 +87,30 @@ config DFU_VIRT
          used at board level to manage specific behavior
          (OTP update for example).
 
+config SET_DFU_ALT_INFO
+       bool "Dynamic set of DFU alternate information"
+       help
+         This option allows to call the function set_dfu_alt_info to
+         dynamically build dfu_alt_info in board.
+
+config SYS_DFU_DATA_BUF_SIZE
+       hex "Size of buffer to be allocated for transfer to raw storage device"
+       default 0x800000
+       help
+         DFU transfer uses a buffer before writing data to the
+         raw storage device. This value can be used for setting the
+         size of this buffer. The size of the buffer is also configurable
+         through the "dfu_bufsiz" environment variable. If both are
+         given the size of the buffer is set to "dfu_bufsize".
+
+config SYS_DFU_MAX_FILE_SIZE
+       hex "Size of the buffer to be allocated for transferring files"
+       default SYS_DFU_DATA_BUF_SIZE
+       help
+         When updating files rather than the raw storage device,
+         we use a static buffer to copy the file into and then write
+         the buffer once we've been given the whole file.  Define
+         this to the maximum filesize (in bytes) for the buffer.
+         If undefined it defaults to the CONFIG_SYS_DFU_DATA_BUF_SIZE.
 endif
 endmenu