summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2017-06-06 17:08:39 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-09 05:52:07 -0400
commit0cbaa44841db3d06d2a21ae4ab679882033f3dbe (patch)
treec400ed524386505865c81fe8f11396f98e529c48 /lib/Kconfig
parent414c1026319bc10796a868c1fa0ba312c4ca9e67 (diff)
lib: Add crc4 module
Add a little helper for crc4 calculations. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Chris Bostic <cbostic@linux.vnet.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r--lib/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 0c8b78a9ae2e..d2fd2623721e 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -158,6 +158,14 @@ config CRC32_BIT
158 158
159endchoice 159endchoice
160 160
161config CRC4
162 tristate "CRC4 functions"
163 help
164 This option is provided for the case where no in-kernel-tree
165 modules require CRC4 functions, but a module built outside
166 the kernel tree does. Such modules that use library CRC4
167 functions require M here.
168
161config CRC7 169config CRC7
162 tristate "CRC7 functions" 170 tristate "CRC7 functions"
163 help 171 help