diff options
-rw-r--r-- | src/drivers/intel/gma/Kconfig | 33 | ||||
-rw-r--r-- | src/drivers/intel/gma/Makefile.inc | 2 |
2 files changed, 34 insertions, 1 deletions
diff --git a/src/drivers/intel/gma/Kconfig b/src/drivers/intel/gma/Kconfig index e6704f07bd..47f7617c34 100644 --- a/src/drivers/intel/gma/Kconfig +++ b/src/drivers/intel/gma/Kconfig @@ -63,6 +63,39 @@ config VBT_DATA_SIZE_KB int default 8 +config VBT_CBFS_COMPRESSION_DEFAULT_LZ4 + def_bool n + help + Set LZ4 VBT compression. + +config VBT_CBFS_COMPRESSION_DEFAULT_NONE + def_bool n + help + Disable VBT compression. + +choice + prompt "VBT Compression algorithm" + default VBT_CBFS_COMPRESSION_LZ4 if VBT_CBFS_COMPRESSION_DEFAULT_LZ4 + default VBT_CBFS_COMPRESSION_NONE if VBT_CBFS_COMPRESSION_DEFAULT_NONE + default VBT_CBFS_COMPRESSION_LZMA + +config VBT_CBFS_COMPRESSION_LZMA + bool "Compress VBT with LZMA algorithm" + +config VBT_CBFS_COMPRESSION_LZ4 + bool "Compress VBT with LZ4 algorithm" + +config VBT_CBFS_COMPRESSION_NONE + bool "Do not compress VBT" + +endchoice + +config VBT_CBFS_COMPRESSION_ALGORITHM + string + default "lzma" if VBT_CBFS_COMPRESSION_LZMA + default "lz4" if VBT_CBFS_COMPRESSION_LZ4 + default "none" if VBT_CBFS_COMPRESSION_NONE + config GFX_GMA_ANALOG_I2C_HDMI_B bool diff --git a/src/drivers/intel/gma/Makefile.inc b/src/drivers/intel/gma/Makefile.inc index 82535f63f1..269ef5aeb0 100644 --- a/src/drivers/intel/gma/Makefile.inc +++ b/src/drivers/intel/gma/Makefile.inc @@ -15,7 +15,7 @@ add_vbt_to_cbfs= \ $(eval cbfs-files-y += $1) \ $(eval $1-file := $2) \ $(eval $1-type := raw) \ - $(eval $1-compression := lzma) + $(eval $1-compression := $(call strip_quotes,$(CONFIG_VBT_CBFS_COMPRESSION_ALGORITHM))) endif $(call add_vbt_to_cbfs, vbt.bin, $(call strip_quotes,$(CONFIG_INTEL_GMA_VBT_FILE))) |