[PATCH v2 16/18] lib: Allow crc8 in TPL and VPL
Simon Glass
sjg at chromium.org
Fri Sep 20 10:12:55 CEST 2024
Provide options to enable the CRC8 feature in TPL and VPL builds.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Fix 'depends on SPL' to depend on TPL
lib/Kconfig | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/lib/Kconfig b/lib/Kconfig
index 4f754c255e8..eca5f8ecb39 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -699,6 +699,24 @@ config SPL_CRC8
checksum with feedback to produce an 8-bit result. The code is small
and it does not require a lookup table (unlike CRC32).
+config TPL_CRC8
+ bool "Support CRC8 in TPL"
+ depends on TPL
+ help
+ Enables CRC8 support in TPL. This is not normally required. CRC8 is
+ a simple and fast checksumming algorithm which does a bytewise
+ checksum with feedback to produce an 8-bit result. The code is small
+ and it does not require a lookup table (unlike CRC32).
+
+config VPL_CRC8
+ bool "Support CRC8 in VPL"
+ depends on VPL
+ help
+ Enables CRC8 support in VPL. This is not normally required. CRC8 is
+ a simple and fast checksumming algorithm which does a bytewise
+ checksum with feedback to produce an 8-bit result. The code is small
+ and it does not require a lookup table (unlike CRC32).
+
config SPL_CRC16
bool "Support CRC16 in SPL"
depends on SPL
--
2.43.0
More information about the U-Boot
mailing list