mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Chris Bostic <[email protected]> Signed-off-by: Joel Stanley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
414c102631
commit
0cbaa44841
4 changed files with 63 additions and 0 deletions
|
|
@ -158,6 +158,14 @@ config CRC32_BIT
|
|||
|
||||
endchoice
|
||||
|
||||
config CRC4
|
||||
tristate "CRC4 functions"
|
||||
help
|
||||
This option is provided for the case where no in-kernel-tree
|
||||
modules require CRC4 functions, but a module built outside
|
||||
the kernel tree does. Such modules that use library CRC4
|
||||
functions require M here.
|
||||
|
||||
config CRC7
|
||||
tristate "CRC7 functions"
|
||||
help
|
||||
|
|
|
|||
Loading…
Reference in a new issue