]> git.baikalelectronics.ru Git - kernel.git/commit
lib: Add crc4 module
authorJeremy Kerr <jk@ozlabs.org>
Tue, 6 Jun 2017 21:08:39 +0000 (16:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:52:07 +0000 (11:52 +0200)
commit7c18e7981cad8c3091ac58979c6c1c9b791e19f2
treec400ed524386505865c81fe8f11396f98e529c48
parent28b0de059f97db35c3773760d9d4bb19dd46a9a9
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>
include/linux/crc4.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/crc4.c [new file with mode: 0644]