Support loading of a LZ4 encoded initial ramdisk or cpio buffer
          If unsure, say N.
 
+config RD_ZSTD
+       bool "Support initial ramdisk/ramfs compressed using ZSTD"
+       default y
+       depends on BLK_DEV_INITRD
+       select DECOMPRESS_ZSTD
+       help
+         Support loading of a ZSTD encoded initial ramdisk or cpio buffer.
+         If unsure, say N.
+
 choice
        prompt "Built-in initramfs compression mode"
        depends on INITRAMFS_SOURCE != ""
          If you choose this, keep in mind that most distros don't provide lz4
          by default which could cause a build failure.
 
+config INITRAMFS_COMPRESSION_ZSTD
+       bool "ZSTD"
+       depends on RD_ZSTD
+       help
+         ZSTD is a compression algorithm targeting intermediate compression
+         with fast decompression speed. It will compress better than GZIP and
+         decompress around the same speed as LZO, but slower than LZ4.
+
+         If you choose this, keep in mind that you may need to install the zstd
+         tool to be able to compress the initram.
+
 config INITRAMFS_COMPRESSION_NONE
        bool "None"
        help
 
 compress-$(CONFIG_INITRAMFS_COMPRESSION_XZ)    := xzmisc
 compress-$(CONFIG_INITRAMFS_COMPRESSION_LZO)   := lzo
 compress-$(CONFIG_INITRAMFS_COMPRESSION_LZ4)   := lz4
+compress-$(CONFIG_INITRAMFS_COMPRESSION_ZSTD)  := zstd
 
 obj-$(CONFIG_BLK_DEV_INITRD) := initramfs_data.o